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

Authorizations

Authorization
string
header
required

Bearer authentication: a shop API key (WEAVERSE_API_KEY), a scoped API key, a delegated MCP OAuth token, or (translation-unit routes only) a project-bound translation agent token. Scopes: content:read — Read projects, pages, theme settings, versions, drafts and translation units. content:write — Save drafts and make non-destructive edits (page items, metadata, SEO, assignments, languages, glossary). Never publishes or deletes. content:publish — Publish drafts, schedule/reschedule/cancel publications, restore versions, publish global sections. content:delete — Delete pages, global sections, languages, static keys, override reverts; required with project:manage for project deletion. project:manage — Create/copy/delete projects, settings, variants, hierarchy, backups, restore-as-new, previews, hostname policy. translations:read — Read translation units only (no general content access). translations:write — Apply translation units only; never mutates page content. A legacy unscoped API key keeps read/write/translation baseline access and every pre-scope endpoint, but never gains publish/delete/project-manage implicitly.

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).