Skip to main content
POST
TypeScript SDK

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Idempotency-Key
string
required

Required: a call without it is refused with 400. A key of your own that names this one request; a UUID is ideal. It is 8 to 50 characters of letters, digits, - and _. Send the same key again when you retry (after a timeout, a dropped connection or a 5xx) and the call is carried out once: the retry gets the first answer back, marked X-Idempotency-Cached: true. The same key with a different body is refused with 422, and a retry that arrives while the first call is still running with 409 (see Retry-After).

Required string length: 8 - 50
Pattern: ^[a-zA-Z0-9_-]{8,50}$
Example:

"9b2d6f0a-3c41-4e5a-8d77-1f2e3a4b5c6d"

Path Parameters

id
string<uuid>
required

The managed user to give the copy to (Widgetic's id for the user)

key
string
required

The key of the preset to copy

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$

Body

application/json
name
string

Names the copy. Left out, the copy is named after the preset's title, or the widget's own name.

Required string length: 1 - 120

Response

The copy was made

success
boolean
required

Always true on a success.

Example:

true

data
object
required

Where the copy of a preset is. Open the widget creator on canvasId and widgetId.

Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.