curl --request POST \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"itemId": "clz9h1a2b0003gs01hdr0001",
"name": "Header"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({itemId: 'clz9h1a2b0003gs01hdr0001', name: 'Header'})
};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections"
payload = {
"itemId": "clz9h1a2b0003gs01hdr0001",
"name": "Header"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "global_section",
"section": {
"id": "clz9g7x1k0001gs0secn0001",
"name": "Header",
"itemId": "clz9h1a2b0003gs01hdr0001",
"projectId": "clz8p2k0q0001ab12cd34ef56",
"createdAt": "2026-10-14T09:12:30.000Z",
"updatedAt": "2026-10-14T09:12:30.000Z",
"deletedAt": null,
"usageCount": 2,
"usedInPages": [
{
"type": "INDEX",
"handle": "",
"locale": "",
"market": null
},
{
"type": "PRODUCT",
"handle": "__template__default",
"locale": "",
"market": null
}
],
"items": [
{
"id": "clz9h1a2b0003gs01hdr0001",
"type": "header",
"data": {
"sticky": true
},
"children": [
{
"id": "clz9h1a2b0004gs01nav0002"
}
]
},
{
"id": "clz9h1a2b0004gs01nav0002",
"type": "header-menu",
"data": {
"menu": "main-menu"
},
"children": []
}
]
}
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Promote an item to a global section
Registers an existing item of this project, and its whole subtree, as a global section named name (1-191 characters). The item must already live on a page of this project; otherwise the call returns 404 PAGE_NOT_FOUND and nothing is created. Promoting an item that is already a section of this project renames it.
This does not change any page content or publish anything: it only marks the subtree as shared. The response returns the section with its usages and live items, in the same shape as the list.
Required scope: content:write
curl --request POST \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"itemId": "clz9h1a2b0003gs01hdr0001",
"name": "Header"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({itemId: 'clz9h1a2b0003gs01hdr0001', name: 'Header'})
};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://studio.weaverse.io/api/v1/content/projects/{projectId}/global-sections"
payload = {
"itemId": "clz9h1a2b0003gs01hdr0001",
"name": "Header"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"object": "global_section",
"section": {
"id": "clz9g7x1k0001gs0secn0001",
"name": "Header",
"itemId": "clz9h1a2b0003gs01hdr0001",
"projectId": "clz8p2k0q0001ab12cd34ef56",
"createdAt": "2026-10-14T09:12:30.000Z",
"updatedAt": "2026-10-14T09:12:30.000Z",
"deletedAt": null,
"usageCount": 2,
"usedInPages": [
{
"type": "INDEX",
"handle": "",
"locale": "",
"market": null
},
{
"type": "PRODUCT",
"handle": "__template__default",
"locale": "",
"market": null
}
],
"items": [
{
"id": "clz9h1a2b0003gs01hdr0001",
"type": "header",
"data": {
"sticky": true
},
"children": [
{
"id": "clz9h1a2b0004gs01nav0002"
}
]
},
{
"id": "clz9h1a2b0004gs01nav0002",
"type": "header-menu",
"data": {
"menu": "main-menu"
},
"children": []
}
]
}
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}Authorizations
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
Response
Created section
The response is of type object.
Was this page helpful?