Patch a buffer location by ID
PATCH/buffer-locations/:id
Partially update information about a specific buffer location.
Request
Path Parameters
id stringrequired
The ID of the buffer location to retrieve, update or delete
- application/json
Body
required
name string
location string
type string
Possible values: [pickup, dropoff]
properties object
loads uuid[]
storeId uuid
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Buffer location patched
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
_id uuid
name string
location string
type string
Possible values: [pickup, dropoff]
properties object
loads object[]
_id uuid
name string
setName string
loadType string
maxWeight number
loadPositions string[]
properties object
createdAt date-time
updatedAt date-time
storeId uuid
createdAt date-time
updatedAt date-time
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"location": "string",
"type": "pickup",
"properties": {},
"loads": [
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"setName": "string",
"loadType": "string",
"maxWeight": 0,
"loadPositions": [
"string"
],
"properties": {},
"createdAt": "2025-06-05T13:40:40.699Z",
"updatedAt": "2025-06-05T13:40:40.699Z"
}
],
"storeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2025-06-05T13:40:40.699Z",
"updatedAt": "2025-06-05T13:40:40.699Z"
}
Bad Request due to validation errors in the request body
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Validation failed.",
"errors": [
{
"field": "name",
"message": "Name is required."
},
{
"field": "location",
"message": "Location is required."
},
{
"field": "storeId",
"message": "Invalid ObjectId"
}
]
}
{
"message": "Validation failed.",
"errors": [
{
"field": "name",
"message": "Name is required."
},
{
"field": "location",
"message": "Location is required."
},
{
"field": "storeId",
"message": "Invalid ObjectId"
}
]
}
Unauthorized.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Authentication token not provided."
}
{
"message": "Authentication token not provided."
}
Forbidden.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Access to this resource is forbidden."
}
{
"message": "Access to this resource is forbidden."
}
Resource not found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Resource not found."
}
{
"message": "Resource not found."
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- any
{
"message": "Internal Server Error. Please try again later."
}
{
"message": "Internal Server Error. Please try again later."
}
Loading...