Skip to main content
POST
Assign resources to a shared template page

Authorizations

Authorization
string
header
required

Bearer token: a shop API key (WEAVERSE_API_KEY), a scoped API key or a delegated MCP OAuth token; translation-unit routes also accept a project-bound translation agent token. Each operation lists the scope it requires; the scope table is in the API description.

Path Parameters

projectId
string
required
pageId
string
required

The template page id to assign resources to.

Body

application/json
assignments
object[]
required

Shopify resources to assign to this template page. Each becomes its own assignment row pointing at the same page — no page copies are created.

Required array length: 1 - 100 elements

Response

Assignments applied. created = new rows; existing = idempotent no-ops.

object
enum<string>
Available options:
template_assignments
pageId
string
type
string
requested
integer
created
object[]

Newly created assignment rows pointing at this page.

existing
object[]

Resources already assigned to this page (idempotent no-op).