POST
/api/widgets
curl \
--request POST 'https://example.com/api/widgets' \
--header "Content-Type: application/json" \
--data '{"name":"Goblin Staff of Sparks","description":"This staff is made of wood and has a small gemstone at the top. It crackles with electricity.\n"}'
Request examples
{
"name": "Goblin Staff of Sparks",
"description": "This staff is made of wood and has a small gemstone at the top. It crackles with electricity.\n"
}
Response examples (201)
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-05-04T09:42:00Z",
"updated_at": "2026-05-04T09:42:00Z"
},
"links": {}
}
Response examples (400)
{
"title": "string",
"detail": "string",
"code": "string",
"errors": {
"additionalProperty1": "string",
"additionalProperty2": "string"
}
}