Saltar al contenido principal
GET
/
v1
/
production
/
plans
Get all existing plans (paginated)
curl --request GET \
  --url https://api.bold-factory.com/v1/production/plans \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "<string>",
      "externalReference": "<string>",
      "name": "<string>",
      "useRawMaterialRestrictions": true,
      "addEmployeesAsResources": true,
      "startsAt": "2023-11-07T05:31:56Z",
      "endsAt": "2023-11-07T05:31:56Z",
      "active": true,
      "obsolete": true,
      "operations": [
        {
          "id": "<string>",
          "orderId": "<string>",
          "orderCode": "<string>",
          "productName": "<string>",
          "skuName": "<string>",
          "operationName": "<string>",
          "operationType": "<string>",
          "quantity": 123,
          "locked": true,
          "requiredAvailability": {
            "time": "2023-11-07T05:31:56Z"
          },
          "earliestPossibleStart": "2023-11-07T05:31:56Z",
          "startsAt": "2023-11-07T05:31:56Z",
          "endsAt": "2023-11-07T05:31:56Z",
          "resourceRequirements": [
            {
              "id": "<string>",
              "selectedResource": {
                "resourceId": "<string>",
                "name": "<string>"
              },
              "resourceOptions": [
                {
                  "resourceId": "<string>",
                  "name": "<string>"
                }
              ],
              "durationMs": 123,
              "durationPerUnitMs": 123
            }
          ],
          "totalRestrictions": [
            {
              "id": "<string>"
            }
          ],
          "partialRestrictions": [
            {
              "id": "<string>"
            }
          ],
          "metadata": {}
        }
      ],
      "resources": [
        {
          "id": "<string>",
          "name": "<string>",
          "availableAmount": 123,
          "infiniteCapacity": true,
          "availability": [
            {
              "from": "2023-11-07T05:31:56Z",
              "to": "2023-11-07T05:31:56Z",
              "durationHours": 123
            }
          ]
        }
      ],
      "createdAt": "2023-11-07T05:31:56Z"
    }
  ],
  "pageNumber": 123,
  "totalPages": 123,
  "totalCount": 123,
  "pageSize": 123
}

Autorizaciones

Authorization
string
header
requerido

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

Parámetros de consulta

SortBy
string
FilterBy
string
PageNumber
integer<int32>
PageSize
integer<int32>

Respuesta

OK

results
object[]
requerido
pageNumber
integer<int32>
requerido
totalPages
integer<int32>
requerido
totalCount
integer<int32>
requerido
pageSize
integer<int32>
requerido