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

Create a machine group

POST/machine-group
Authorization
AuthorizationAPI key · headerrequired

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

Request body
application/json
namestringrequired

Machine group name.

descriptionstringrequired

Description.

customIdstring

Custom id.

technologyIdintegerrequired

Id of the technology.

sizeobjectrequired

Build volume, e.g. {"x": 100, "y": 100, "z": 100}.

propertiesobjectrequired

Machine group properties.

customFieldsobject[]

Custom fields as [{"id": 1, "label": "...", "value": "..."}] (up to 5).

Responses
200

Created. Returns only the id — fetch the full Machine Group with the corresponding GET.

idinteger | stringrequired

Id of the created Machine Group.

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/machine-group' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "description": "string",
  "customId": "string",
  "technologyId": 0,
  "size": {},
  "properties": {},
  "customFields": [
    {}
  ]
}'
Response
{
  "id": 0
}