Skip to main content

Update Item

Overview

{
"name": "Update Item",
"route": "PATCH /customer/item",
"description": "Find & update item that belongs to a customer.",
"parameters": [],
"body": {
"schema": {
"id": "string",
"description": "string",
"value": "number"
},
"example": {
"id": "123",
"description": "Updated item description",
"value": 99.99
}
},
"response": {
"success": {
"code": 200,
"description": "Returns the updated item object"
},
"error": [
{
"code": 400,
"description": "Bad Request - Invalid input"
},
{
"code": 401,
"description": "Unauthorized - User is not authenticated"
},
{
"code": 403,
"description": "Forbidden - User does not have permission to update this item"
},
{
"code": 404,
"description": "Not Found - Item not found or doesn't belong to the customer"
}
]
},
"notes": [
"This endpoint requires authentication (InternalGuard and AuthorizationGuard)."
]
}