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

Update a ticket model

Changing quantity also requires the production parameters.

PUT/ticket-model/{id}
Authorization
AuthorizationAPI key · headerrequired

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

Path parameters
idstringrequired
Request body
application/json
statusNamestringrequired

Name of the part status to set.

shippingDeadlinestringrequired

Shipping deadline as an ISO date.

quantityinteger

Number of units to produce.

productionCenterstring

Name of the production center manufacturing the part.

productionParametersobject

Production parameter values keyed by parameter name, e.g. {"Colour": "Red"}.

productionParameterIdsobject

Production parameter value ids keyed by parameter name.

customPartIdstring

Custom id of the part.

pricenumber

Manual price of the part.

Responses
200

OK. Returns only the id — fetch the full Ticket Model (Part) with the corresponding GET.

idinteger | stringrequired

Id of the updated Ticket Model (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
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://next.amfg.ai/engine-service/public-api/v1/ticket-model/string' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "statusName": "string",
  "shippingDeadline": "string",
  "quantity": 0,
  "productionCenter": "string",
  "productionParameters": {},
  "productionParameterIds": {},
  "customPartId": "string",
  "price": 0
}'
Response
{
  "id": 0
}