Skip to content
Public API
Esc
↑↓navigate↵open⌘Jpreview

Create parts from a catalogue

Takes a catalogue project id (from POST /catalogue), not a catalogue-model id.

POST/ticket-model/from-catalogue
Authorization
AuthorizationAPI key · headerrequired

The Incoming Secret value (<secretId>.<random>), with or without a Bearer prefix.

Request body
application/json
ticketIdstringrequired

Id of the ticket the parts are added to.

catalogueIdstring

Id of the catalogue project.

quantityinteger

Number of units.

Responses
200

Created.

Array of object
idinteger | stringrequired

Id of a created part.

Show properties
One of:
integer
integer
string
string
401

Authentication failed. All causes return this identical response.

codeinteger
messagestring
typestring
default

Downstream errors pass through verbatim; x-error-source names the failing service.

codeinteger
messagestring
typestring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://next.amfg.ai/engine-service/public-api/v1/ticket-model/from-catalogue' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "ticketId": "string",
  "catalogueId": "string",
  "quantity": 0
}'
Response
[
  {
    "id": 0
  }
]