Version: 202201
Update Supplier
PUT/openapi/2022-01/suppliers/:id
Updates the details of an existing supplier by its unique identifier (id).
Request
Path Parameters
id stringrequired
Supplier ID
- application/json
- Body
- Example
Body
supplier object
urlstringrequired
{
"supplier": {
"url": "string"
}
}
Responses
- 200
- 400
- 404
200
- application/json
- Schema
- Example
- Result
Schema
supplier object
idstring
Example:
382454149549138220titlestring
Example:
example suppliersurlstring
Example:
https://shoplazza.comcreated_atstring
Example:
2024-05-21T08:56:15Zupdated_atstring
Example:
2024-05-21T08:56:15Z{
"supplier": {
"id": "382454149549138220",
"title": "example suppliers",
"url": "https://shoplazza.com",
"created_at": "2024-05-21T08:56:15Z",
"updated_at": "2024-05-21T08:56:15Z"
}
}
{
"supplier": {
"id": "382454149549138220",
"title": "example suppliers",
"url": "https://shoplazza.com",
"created_at": "2024-05-21T08:56:15Z",
"updated_at": "2024-05-21T08:56:15Z"
}
}
400
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"invalid id"
]
}
{
"errors": [
"invalid id"
]
}
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Supplier not found"
]
}
{
"errors": [
"Supplier not found"
]
}