Create widget
Requires an authenticated tenant principal. Generated from the production route registered in `internal/features/widgets/inbound/http.go`.
/v1/widgetsRequires an authenticated tenant principal. Generated from the production route registered in internal/features/widgets/inbound/http.go.
Authorization
bearerAuth Engine-issued API key or tenant-signed JWT.
In: header
Header Parameters
Required, at most 200 bytes. A replay with the same key and the same source_id/name/model returns the original widget and draft unchanged; the same key with a different value for any of the three is 409 {"error":{"type":"conflict","code":"idempotency_key_reuse","message":"widget changed or preview is no longer current"}}.
length <= 200Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/widgets" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{}'{}