Saltar al contenido principal
POST
/
v1
/
production
/
workstations
/
{workstationReference}
/
capabilities
/
{typeReference}
Add a capability to this workstation
curl --request POST \
  --url https://api.bold-factory.com/v1/production/workstations/{workstationReference}/capabilities/{typeReference} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "efficiency": 123
}
'
{
  "operationTypeId": "<string>",
  "operationType": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "description": "<string>",
    "possibleWorkstations": 123,
    "skillCount": 123,
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "workstationId": "<string>",
  "workstation": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "description": "<string>",
    "areaId": "<string>",
    "area": {
      "id": "<string>",
      "externalReference": "<string>",
      "name": "<string>",
      "description": "<string>",
      "parentId": "<string>",
      "parent": null,
      "deletedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "autocompleteOperations": true,
    "infiniteCapacity": true,
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "efficiency": 123
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

workstationReference
string
requerido
typeReference
string
requerido

Cuerpo

application/json
efficiency
number<double>
requerido
role
enum<string>
Opciones disponibles:
Primary,
Auxiliary

Respuesta

Created

operationTypeId
string
requerido
operationType
object
requerido
workstationId
string
requerido
workstation
object
requerido
efficiency
number<double>
requerido
role
enum<string>
requerido
Opciones disponibles:
Primary,
Auxiliary