Share via

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 Document Intelligence in Foundry Tools
0 comments No comments

Answer accepted by question author

Rohit Mungi 49,131 Reputation points Microsoft Employee Moderator
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!!

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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