Trailer Upsert Many Ep
POST/v1/trailer/upsert_many
Bulk Create/Update Trailers
Allows creating new trailers in bulk or updating existing trailers if an identifier is passed. All fields not specified below are considered metadata and currently have no implementation.
Request
id: str | None = None
Internal trailer identifier. If the id is provided, the request will be considered an update instead of a create.
trailer_number: str | None = None
The unique number of the trailer.
configuration: str | None = None
Trailer configuration for trailer.
depot: str | None = None
Depot name for trailer.
make: str | None = None
Make of the trailer.
model: str | None = None
Model of the trailer.
weight: int | None = None
Weight of the trailer.
Response
created: int
The number of new trailers created.
updated: int
The number of trailers updated.
errors: list
An array of the requests sent that failed, detailing the cause of the error.
Responses
- 200
- 422
Successful Response
- application/json
- Example (from schema)
{
"created": 0,
"updated": 0,
"errors": [
"string"
]
}
Validation Error
- application/json
- Example (from schema)
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}