PUT
/widgets/{id}
curl \
--request PUT 'https://example.com/widgets/{id}' \
--header "Content-Type: application/json" \
--data '{"name":"Goblin Staff of Sparks"}'
Request examples
{
"name": "Goblin Staff of Sparks"
}
Response examples (200)
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-05-04T09:42:00Z",
"updated_at": "2025-05-04T09:42:00Z"
}
Response examples (400)
{
"title": "string",
"detail": "string",
"status": 42,
"errors": [
{
"message": "string",
"code": "string",
"pointer": "string"
}
]
}
Response examples (404)
{
"title": "string",
"detail": "string",
"status": 42,
"errors": [
{
"message": "string",
"code": "string",
"pointer": "string"
}
]
}