Update a calling station by ID
PUT/calling-stations/:id
The Update Calling Station request allows you to update information about a specific calling station in ANSCER FMS.
Request
Path Parameters
id stringrequired
The ID of the calling station to retrieve, update or delete
- application/json
Body
required
name string
locations string[]
approvalRequired boolean
sku string[]
load string
alias object
stationType string
Possible values: [web, physical]
requestType string
Possible values: [pickup, dropoff, empty]
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Calling Station updated
- application/json
- Schema
- Example (from schema)
Schema
_id uuid
name string
Possible values: >= 3 characters and <= 50 characters
username string
Possible values: >= 5 characters and <= 50 characters
locations string[]
approvalRequired boolean
sku string[]
load string
alias object
stationType string
Possible values: [web, physical]
requestType string
Possible values: [pickup, dropoff, empty]
storeId uuid
createdAt date-time
updatedAt date-time
{
"_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"username": "string",
"locations": [
"string"
],
"approvalRequired": true,
"sku": [
"string"
],
"load": "string",
"alias": {},
"stationType": "web",
"requestType": "pickup",
"storeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"createdAt": "2024-12-03T13:25:44.763Z",
"updatedAt": "2024-12-03T13:25:44.763Z"
}
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": "email",
"message": "Email must be a valid email address."
}
]
}
{
"message": "Validation failed.",
"errors": [
{
"field": "name",
"message": "Name is required."
},
{
"field": "email",
"message": "Email must be a valid email address."
}
]
}
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...