Create Widget

POST /widgets
application/json

Body Required

Widget to create

Responses

  • Created

  • 400 application/problem+json

    Bad Request

    Hide response attribute Show response attribute object
POST /widgets
curl \
 -X POST https://example.com/widgets \
 -H "Content-Type: application/json" \
 -d '{"name":"Goblin Staff of Sparks"}'
Request example
{
  "name": "Goblin Staff of Sparks"
}
Response examples (400)
{
  "errors": [
    {
      "title": "string",
      "detail": "string",
      "code": "string"
    }
  ]
}