Create widget

POST /widgets
application/json

Body

  • title string Required

Responses

  • 200

    successful

  • 422 application/json

    unprocessable entity

    Hide response attribute Show response attribute object
    • errors array[object]
      Hide errors attributes Show errors attributes object
      • title string
      • detail string
      • code string
POST /widgets
curl \
 -X POST https://www.example.com/widgets \
 -H "Content-Type: application/json" \
 -d '{"title":"string"}'
Request example
{
  "title": "string"
}
Response examples (422)
{
  "errors": [
    {
      "title": "string",
      "detail": "string",
      "code": "string"
    }
  ]
}