How to use v2.1 compose custom model method with REST URI

ihwan 41 Reputation points
2020-09-23T00:54:01.587+00:00

I want to use compose custom model method with REST URI, not labeling tool website.

I tried to follow "Form Recognizer API (v2.1-preview.1)" guide.
https://eastasia.dev.cognitive.microsoft.com/docs/services/form-recognizer-api-v2-1-preview-1/operations/Compose

But I could not find any parameters for body section.

26663-compose-body.png

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,676 questions
0 comments No comments
{count} votes

Accepted answer
  1. romungi-MSFT 46,141 Reputation points Microsoft Employee
    2020-09-23T07:27:45.217+00:00

    @ihwan You can use the following in the body to create a compose model

    {  
        "description": "Request contract for compose operation.",  
        "modelIds": ["model_guid","model_guid"],  
        "modelName": "Rohit123"  
    }  
    

    The response for a successful compose should be 201 created. Use the model id in the location field of your response in the GetCustomModel API to check the details of your composed model

    26841-image.png

    GetCustomModel:

    26832-image.png

    Please accept this response as answer if it helped you in resolving your issue. Thanks!!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.