Update a draft to the current source version
Requires an authenticated tenant principal. Generated from the production route registered in `internal/features/widgets/inbound/http.go`.
/v1/widgets/{id}/draft/update-sourceRequires 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
Path Parameters
uuidHeader Parameters
Required, at most 200 bytes. A replay with the same key and the same expected_revision/source_version_id returns the original updated draft unchanged (including a recorded design failure on the new version); the same key with a different value for either is 409 {"error":{"type":"conflict","code":"idempotency_key_reuse","message":"widget changed or preview is no longer current"}}. expected_revision is the DRAFT's own revision, not the widget's.
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/497f6eca-6276-4993-bfeb-53cbbbba6f08/draft/update-source" \ -H "Idempotency-Key: string" \ -H "Content-Type: application/json" \ -d '{}'{}Publish a draft
Requires an authenticated tenant principal. Generated from the production route registered in `internal/features/widgets/inbound/http.go`.
Get execution
Requires an authenticated tenant principal. Generated from the production route registered in `internal/features/widgets/inbound/http.go`.