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

Create an item

Existing items plus quantity may not exceed the part quantity — creating more first requires raising the part quantity via PUT /ticket-model/{id}, otherwise the call fails with 400 “Items can’t be created…”.

POST/item
Authorization
AuthorizationAPI key · headerrequired

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

Request body
application/json
ticketModelIdstringrequired

Id of the part the item belongs to, as a string.

shippingDeadlinestringrequired

Shipping deadline as an ISO date.

quantityintegerrequired

Number of items to create.

Responses
200

Created.

Array of object
object
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/item' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "ticketModelId": "4846",
  "shippingDeadline": "2026-09-01T12:00:00.000Z",
  "quantity": 1
}'
Response
[
  {}
]