Skip to main content
POST
Copy a native widget into a theme

Authorizations

Authorization
string
header
required

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

Path Parameters

theme_id
integer
required

Company-owned theme that receives the copy.

Required range: x >= 1

Body

application/json
native_widget_key
string
required

Key of the native widget to copy, as in a template's native_widget_key.

Minimum string length: 1

Response

The copy the theme already has.

template
object
required

A template including its Liquid content. Fluid native widgets and theme copies use the widgets themeable type. Droplet extension sections retain their own type and identity. Native and droplet widgets expose metadata and settings only; content contains only the declarative settings schema.

status
enum<integer>
required
Available options:
200,
201
meta
object
required