Create a widget
POST
/widgetsBody application/json
namestringrequired
colorstring
Response
201Created
namestring
colorstring
idstring
/widgetscurl -X POST "https://api.kitchen-sink.example.com/v1/widgets" \
-H "Content-Type: application/json" \
-H "X-API-Key: <X-API-Key>" \
-d '{
"name": "Sprocket",
"color": "indigo"
}'{
"name": "Sprocket",
"color": "indigo",
"id": "wdg_abc123"
}