Miridia
Portal
Manufacturing

Production processes

The production processes operations of the Core API.

Base URL: https://api.miridia.io. Read Authentication and Conventions before you call these operations.

MethodPathOperation
GET/api/v1/processes/{processId}Get production process
PUT/api/v1/processes/{processId}Update production process
DELETE/api/v1/processes/{processId}Delete production process
POST/api/v1/processesCreate production process
POST/api/v1/processes/{processId}/activateActivate production process

Get production process

GET/api/v1/processes/{processId}

Access. Send a bearer token or an API key. The caller needs the Products view permission.

Parameters

NameInTypeRequiredDescription
processIdpathstring (uuid)Yes

Response

200. Returns a SingleResult envelope. The data field is ProductionProcessResponse.

Request
curl -X GET "https://api.miridia.io/api/v1/processes/{processId}" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID"
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productTitle": "string",
    "productCode": "string",
    "title": "string",
    "description": "string",
    "status": "Draft",
    "revisionNumber": 0,
    "effectiveDate": "2026-09-29T08:00:00Z",
    "expiryDate": "2026-09-29T08:00:00Z",
    "steps": [
      {}
    ]
  },
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Update production process

PUT/api/v1/processes/{processId}

Access. Send a bearer token or an API key. The caller needs the Products modify permission.

Parameters

NameInTypeRequiredDescription
processIdpathstring (uuid)Yes

Request body

Send JSON with the shape UpdateProductionProcessCommand.

FieldTypeRequiredDescription
idstring (uuid)No
productIdstring (uuid)No
titlestringNo
descriptionstringNo
statusenum ProcessStatusNoOne of: Draft, Active, Blocked, Superseded.
revisionNumberinteger (int32)No
effectiveDatestring (date-time)No
expiryDatestring (date-time)No
stepsProcessStepRequest[]No

Response

200. Returns a SingleResult envelope. The data field is ProductionProcessResponse.

Request
curl -X PUT "https://api.miridia.io/api/v1/processes/{processId}" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "title": "string",
  "description": "string",
  "status": "Draft",
  "revisionNumber": 0,
  "effectiveDate": "2026-09-29T08:00:00Z",
  "expiryDate": "2026-09-29T08:00:00Z",
  "steps": [
    {
      "stepNumber": 0,
      "title": "string",
      "instructions": "string",
      "expectedDurationMinutes": 0,
      "equipmentRequired": "string",
      "sortOrder": 0,
      "consumes": [
        {}
      ]
    }
  ]
}'
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productTitle": "string",
    "productCode": "string",
    "title": "string",
    "description": "string",
    "status": "Draft",
    "revisionNumber": 0,
    "effectiveDate": "2026-09-29T08:00:00Z",
    "expiryDate": "2026-09-29T08:00:00Z",
    "steps": [
      {}
    ]
  },
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Delete production process

DELETE/api/v1/processes/{processId}

Access. Send a bearer token or an API key. The caller needs the Products delete permission.

Parameters

NameInTypeRequiredDescription
processIdpathstring (uuid)Yes

Response

200. Returns a SingleResult envelope. The data field is boolean.

Request
curl -X DELETE "https://api.miridia.io/api/v1/processes/{processId}" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID"
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": true,
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Create production process

POST/api/v1/processes

Access. Send a bearer token or an API key. The caller needs the Products modify permission.

Request body

Send JSON with the shape CreateProductionProcessCommand.

FieldTypeRequiredDescription
productIdstring (uuid)No
titlestringNo
descriptionstringNo
statusenum ProcessStatusNoOne of: Draft, Active, Blocked, Superseded.
revisionNumberinteger (int32)No
effectiveDatestring (date-time)No
expiryDatestring (date-time)No
stepsProcessStepRequest[]No

Response

200. Returns a SingleResult envelope. The data field is ProductionProcessResponse.

Request
curl -X POST "https://api.miridia.io/api/v1/processes" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "title": "string",
  "description": "string",
  "status": "Draft",
  "revisionNumber": 0,
  "effectiveDate": "2026-09-29T08:00:00Z",
  "expiryDate": "2026-09-29T08:00:00Z",
  "steps": [
    {
      "stepNumber": 0,
      "title": "string",
      "instructions": "string",
      "expectedDurationMinutes": 0,
      "equipmentRequired": "string",
      "sortOrder": 0,
      "consumes": [
        {}
      ]
    }
  ]
}'
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productTitle": "string",
    "productCode": "string",
    "title": "string",
    "description": "string",
    "status": "Draft",
    "revisionNumber": 0,
    "effectiveDate": "2026-09-29T08:00:00Z",
    "expiryDate": "2026-09-29T08:00:00Z",
    "steps": [
      {}
    ]
  },
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Activate production process

POST/api/v1/processes/{processId}/activate

Access. Send a bearer token or an API key. The caller needs the Products modify permission.

Parameters

NameInTypeRequiredDescription
processIdpathstring (uuid)Yes

Response

200. Returns a SingleResult envelope. The data field is ProductionProcessResponse.

Request
curl -X POST "https://api.miridia.io/api/v1/processes/{processId}/activate" \
  -H "Authorization: Bearer $MIRIDIA_TOKEN" \
  -H "X-Business-Id: $MIRIDIA_BUSINESS_ID"
Response
{
  "message": "string",
  "messages": [
    {
      "title": "string",
      "message": "string",
      "level": "Standard",
      "icon": "SyncAlert",
      "code": "string"
    }
  ],
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "productTitle": "string",
    "productCode": "string",
    "title": "string",
    "description": "string",
    "status": "Draft",
    "revisionNumber": 0,
    "effectiveDate": "2026-09-29T08:00:00Z",
    "expiryDate": "2026-09-29T08:00:00Z",
    "steps": [
      {}
    ]
  },
  "statusCode": "OK",
  "canRead": true,
  "canEdit": true,
  "canDelete": true
}

Models

The operations on this page use these object types. Select a type to see its fields.

ProcessStepMaterialRequest
FieldTypeDescription
componentProductIdstring (uuid)
ProcessStepMaterialResponse
FieldTypeDescription
idstring (uuid)
componentProductIdstring (uuid)
componentTitlestring
componentCodestring
componentSkustring
componentTypeenum ProductTypeOne of: FinishedGood, RawMaterial, Component, Consumable, Service.
ProcessStepRequest
FieldTypeDescription
stepNumberinteger (int32)
titlestring
instructionsstring
expectedDurationMinutesnumber (double)
equipmentRequiredstring
sortOrderinteger (int32)
consumesProcessStepMaterialRequest[]Optional component products this step consumes (soft hint).
ProcessStepResponse
FieldTypeDescription
idstring (uuid)
stepNumberinteger (int32)
titlestring
instructionsstring
expectedDurationMinutesnumber (double)
equipmentRequiredstring
sortOrderinteger (int32)
consumesProcessStepMaterialResponse[]
ProductionProcessResponse
FieldTypeDescription
idstring (uuid)
productIdstring (uuid)
productTitlestring
productCodestring
titlestring
descriptionstring
statusenum ProcessStatusOne of: Draft, Active, Blocked, Superseded.
revisionNumberinteger (int32)
effectiveDatestring (date-time)
expiryDatestring (date-time)
stepsProcessStepResponse[]