Create Widget

POST /api/widgets
application/json

Body Required

Widget to create

Responses

POST /api/widgets
curl \
 -X POST https://example.com/api/widgets \
 -H "Content-Type: application/json" \
 -d '{"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 example
{
  "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": [],
  "links": {}
}
Response examples (400)
{
  "title": "string",
  "detail": "string",
  "code": "string",
  "errors": {
    "Additional properties:": "string"
  }
}