# Models

## The UpdateShipmentLabelCommandRequest object

```json
{"openapi":"3.0.3","info":{"title":"UpdateShipmentLabelOfThePackageCommand API","version":"1.0.0"},"components":{"schemas":{"UpdateShipmentLabelCommandRequest":{"type":"object","description":"Request body for updating shipment label. Either `transition` or `slug` must be provided.\n- If `transition` is provided, `slug` is not required\n- If `slug` is provided, `transition` is not required\n- Providing both is allowed but not necessary\n","required":["input_parameters"],"properties":{"input_parameters":{"type":"object","description":"Command input parameters","required":["package_items"],"properties":{"package_items":{"type":"array","description":"List of package items (can be empty array)","items":{"type":"object"}}}},"transition":{"type":"integer","description":"State transition ID to execute (required if slug is not provided)"},"slug":{"type":"string","description":"State transition slug to execute (required if transition is not provided)"}}}}}}
```

## The ValidationErrorResponse object

```json
{"openapi":"3.0.3","info":{"title":"UpdateShipmentLabelOfThePackageCommand API","version":"1.0.0"},"components":{"schemas":{"ValidationErrorResponse":{"type":"object","description":"Validation error response with field-level errors","required":["error","status_code"],"properties":{"error":{"type":"object","description":"Validation errors grouped by field name","additionalProperties":{"type":"array","items":{"type":"string"}}},"status_code":{"type":"integer","description":"HTTP status code"}}}}}}
```

## The ErrorResponse object

```json
{"openapi":"3.0.3","info":{"title":"UpdateShipmentLabelOfThePackageCommand API","version":"1.0.0"},"components":{"schemas":{"ErrorResponse":{"type":"object","description":"Generic API error response supporting multiple error formats","properties":{"error":{"type":"object","description":"Error payload","oneOf":[{"type":"object","required":["code","message"],"properties":{"code":{"oneOf":[{"type":"string","enum":["INVALID_COMMAND_PARAMETER","INVALID_PACKAGE_STATE_TRANSITION","PACKAGE_STATE_TRANSITION_POST_ACTION_VALIDATION_ERROR","COMMAND_DEFINITION_NOT_ALLOWED"]},{"type":"integer","enum":[4406]}]},"message":{"type":"string"},"details":{"oneOf":[{"type":"object","properties":{"source_state":{"type":"string"},"destination_state":{"type":"string"},"package_state":{"type":"string"}}},{"type":"object","properties":{"error":{"type":"string"}}},{"type":"array","items":{"type":"string"}}]}}},{"type":"object","required":["detail"],"properties":{"detail":{"type":"string"}}}]},"status_code":{"type":"integer","description":"HTTP status code"}},"required":["error"]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akinon.com/technical-guides/oms/commands/shipment/update-shipment-label-of-package-command/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
