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

Update a catalogue model

Requires the model file URL to be downloadable by the AMFG servers (see POST /catalogue-model for where to source it), even when re-sending the stored configuration.

PUT/catalogue-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
namestringrequired

Catalogue model name.

customIdstring

Custom catalogue model id.

modelEndpointobject

Where management-service downloads the model file from.

Show properties
urlstringrequired

Downloadable model file URL.

headersobjectrequired

Headers sent with the download request.

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).

configurationsobject[]required

Production parameter sets the model can be ordered with.

Show properties
Array of object
quantityintegerrequired

Number of units.

productionParametersobjectrequired

Production parameters keyed by parameter name.

productionParameterIdsobjectrequired

Production parameter ids keyed by parameter name.

Responses
200

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

idinteger | stringrequired

Id of the updated Catalogue Model (Part Catalogue).

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/catalogue-model/string' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "customId": "string",
  "modelEndpoint": {
    "url": "string",
    "headers": {},
    "fileName": "string"
  },
  "configurations": [
    {
      "quantity": 0,
      "productionParameters": {},
      "productionParameterIds": {}
    }
  ]
}'
Response
{
  "id": 0
}