Saltar al contenido principal
POST
/
v1
/
production
/
operations
/
{operationReference}
/
inspectionSteps
Create a new inspection step
curl --request POST \
  --url https://api.bold-factory.com/v1/production/operations/{operationReference}/inspectionSteps \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "frequency": 123,
  "minutesDuration": 123,
  "notes": "<string>",
  "externalReference": "<string>"
}
'
{
  "orderId": "<string>",
  "operationId": "<string>",
  "id": "<string>",
  "externalReference": "<string>",
  "name": "<string>",
  "notes": "<string>",
  "minutesDuration": 123,
  "frequency": 123,
  "inspections": [
    {
      "id": "<string>",
      "result": "<string>",
      "relatedUnit": 123,
      "completedAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "operation": {
    "id": "<string>",
    "externalReference": "<string>",
    "orderId": "<string>",
    "order": {
      "id": "<string>",
      "externalReference": "<string>",
      "code": "<string>",
      "skuId": "<string>",
      "sku": {
        "id": "<string>",
        "externalReference": "<string>",
        "code": "<string>",
        "name": "<string>",
        "status": "<string>",
        "productId": "<string>",
        "managesLots": true,
        "unit": {
          "id": "<string>",
          "code": "<string>",
          "name": "<string>"
        },
        "displayDecimalPlaces": 123
      },
      "requestId": "<string>",
      "relatedId": "<string>",
      "requester": "<string>",
      "recipeId": "<string>",
      "recipe": {
        "id": "<string>",
        "externalReference": "<string>",
        "name": "<string>",
        "recipeId": "<string>",
        "productId": "<string>",
        "recipe": {
          "id": "<string>",
          "externalReference": "<string>",
          "name": "<string>",
          "productId": "<string>",
          "product": {
            "id": "<string>",
            "code": "<string>",
            "name": "<string>",
            "externalReference": "<string>"
          },
          "conditionFormula": "<string>",
          "createdAt": "2023-11-07T05:31:56Z",
          "createdBy": "<string>",
          "lastModifiedAt": "2023-11-07T05:31:56Z",
          "lastModifiedBy": "<string>"
        },
        "createdAt": "2023-11-07T05:31:56Z",
        "createdBy": "<string>",
        "lastModifiedAt": "2023-11-07T05:31:56Z",
        "lastModifiedBy": "<string>"
      },
      "obsoleteRecipe": true,
      "plannedQuantity": 123,
      "completedQuantity": 123,
      "rejectedQuantity": 123,
      "notes": "<string>",
      "requiredAvailability": {
        "time": "2023-11-07T05:31:56Z"
      },
      "plannedAt": "2023-11-07T05:31:56Z",
      "startedAt": "2023-11-07T05:31:56Z",
      "cancelledAt": "2023-11-07T05:31:56Z",
      "finishedAt": "2023-11-07T05:31:56Z",
      "targetedAt": "2023-11-07T05:31:56Z",
      "stockExpectedAt": "2023-11-07T05:31:56Z",
      "plannedDurationSeconds": 123,
      "plannedManpowerSeconds": 123,
      "completedWorkloadSeconds": 123,
      "completedDurationSeconds": 123,
      "netScheduledSeconds": 123,
      "netOperatingSeconds": 123,
      "realManpowerSeconds": 123,
      "completionPercent": 123,
      "availability": 123,
      "efficiency": 123,
      "productivity": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "name": "<string>",
    "orderCode": "<string>",
    "isFinalOperation": true,
    "skuId": "<string>",
    "sku": {
      "id": "<string>",
      "externalReference": "<string>",
      "code": "<string>",
      "name": "<string>",
      "status": "<string>",
      "productId": "<string>",
      "managesLots": true,
      "unit": {
        "id": "<string>",
        "code": "<string>",
        "name": "<string>"
      },
      "displayDecimalPlaces": 123
    },
    "positionX": 123,
    "positionY": 123,
    "restrictedBy": [
      {
        "id": "<string>",
        "fromId": "<string>",
        "from": null,
        "toId": "<string>",
        "to": null
      }
    ],
    "requiredCharacteristicId": "<string>",
    "requiredCharacteristic": {
      "id": "<string>",
      "name": "<string>",
      "toolsCount": 123,
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "toolId": "<string>",
    "tool": {
      "id": "<string>",
      "name": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "typeId": "<string>",
    "type": {
      "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>"
    },
    "operationsGroupId": "<string>",
    "stockExpectedAt": "2023-11-07T05:31:56Z",
    "requiredEmployees": 123,
    "plannedQuantity": 123,
    "completedQuantity": 123,
    "rejectedQuantity": 123,
    "plannedDurationSeconds": 123,
    "plannedManpowerSeconds": 123,
    "completedManpowerSeconds": 123,
    "completedDurationSeconds": 123,
    "elapsedSeconds": 123,
    "netScheduledSeconds": 123,
    "netOperatingSeconds": 123,
    "realManpowerSeconds": 123,
    "completionPercent": 123,
    "availability": 123,
    "efficiency": 123,
    "productivity": 123,
    "requiredAvailability": {
      "time": "2023-11-07T05:31:56Z"
    },
    "startedAt": "2023-11-07T05:31:56Z",
    "finishedAt": "2023-11-07T05:31:56Z",
    "targetedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  }
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de ruta

operationReference
string
requerido

Cuerpo

application/json
name
string
requerido
inspectionType
enum<string>
requerido
Opciones disponibles:
Simple,
Boolean,
Decimal,
Text,
Photo,
File
when
enum<string>
Opciones disponibles:
OnceBeginning,
PerUnit,
OnceEnd
frequency
null | number<double>
minutesDuration
number<double>
notes
null | string
externalReference
null | string

Respuesta

Created

orderId
string
requerido
operationId
string
requerido
id
string
requerido
externalReference
null | string
requerido
name
string
requerido
when
enum<string>
requerido
Opciones disponibles:
OnceBeginning,
PerUnit,
OnceEnd
type
enum<string>
requerido
Opciones disponibles:
Action,
Inspection
inspectionType
enum<string>
requerido
Opciones disponibles:
Simple,
Boolean,
Decimal,
Text,
Photo,
File
notes
null | string
requerido
minutesDuration
number<double>
requerido
frequency
null | number<double>
requerido
inspections
object[]
requerido
operation
object