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

Create a ticket model

modelEndpoint.url must be downloadable by the AMFG servers (see POST /catalogue-model for where to source it). If the url does not end in a clean file name (download endpoints, long pre-signed urls), set modelEndpoint.fileName explicitly. Either modelEndpoint or catalogueModelConfigurationId is required. productionParameterIds is keyed by quotation-form parameter name; the value ids come from GET /production-parameter-field?technologyId=....

POST/ticket-model
Authorization
AuthorizationAPI key · headerrequired

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

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.

ticketIdstringrequired

Id of the ticket the part is added to.

modelEndpointobject

The 3D model file to create the part from; either this or catalogueModelConfigurationId must be provided.

Show properties
urlstringrequired

URL of the model file; must be downloadable by the platform.

headersobject

HTTP headers to send when downloading the file.

fileNamestring

Explicit name for the downloaded file, e.g. "bracket.stl". Takes precedence over the name derived from the url — set it when the url does not end in a clean file name (download endpoints, long pre-signed urls).

modelParametersobject

Model geometry parameters (dimensions, volume, surface, ...).

catalogueModelConfigurationIdstring

Id of a catalogue model configuration to base the part on; alternative to modelEndpoint.

quoteProductionNotestring

Production note shown on the quote.

productionNotestring

Internal production note.

Responses
200

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

idinteger | stringrequired

Id of the created 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
Bodyapplication/json
Request
curl -X POST 'https://next.amfg.ai/engine-service/public-api/v1/ticket-model' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "ticketId": "1726",
  "statusName": "New",
  "shippingDeadline": "2026-09-01T12:00:00.000Z",
  "quantity": 1,
  "modelEndpoint": {
    "url": "https://your-file-host.example/bracket.stl",
    "headers": {}
  },
  "productionParameterIds": {
    "Technology": 103227,
    "Material": 114581,
    "Colour": 104083,
    "Production Time": 31319,
    "Layer Thickness": 102132,
    "Machine": 105877
  }
}'
Response
{
  "id": 0
}