Update project
curl --request PATCH \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Holiday Storefront"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Holiday Storefront'})
};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}', 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}"
payload = { "name": "Holiday Storefront" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"object": "project",
"id": "clz1k8m2n0000abcd1234efgh",
"name": "Holiday Storefront",
"parentProjectId": null,
"createdAt": "2026-01-15T08:30:00.000Z",
"revision": "2026-10-20T10:15:00.000Z"
}{
"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>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "STALE_PROJECT",
"message": "This project changed after it was read. Reload before renaming.",
"status": 409
}{
"object": "error",
"code": "PRECONDITION_REQUIRED",
"message": "\"expectedUpdatedAt\" is required for delegated writes: read the current content first and pass it so the write targets exactly what was read.",
"status": 428
}Projects
Update project
Renames a project. This endpoint does not create, delete or reconfigure projects.
- Only
nameis writable: a non-empty string of at most 191 characters. - Unknown fields are rejected with
400 INVALID_PARAMSrather than silently ignored. - Send
expectedUpdatedAt(therevisionfrom GET) to fence the rename: if the project changed since that read, the call returns409 STALE_PROJECTinstead of overwriting a newer name. Shop API keys may omit it; delegated (MCP OAuth) tokens must send it or get428 PRECONDITION_REQUIRED. - Hierarchy, shop linkage and market settings belong to Studio and the Dashboard and are not writable with an API key.
- No cache invalidation happens:
namedoes not affect rendered storefront content. - Clients or proxies that cannot send
PATCHmay sendPOSTto the same URL with the same body.
Required scope: content:write
PATCH
/
projects
/
{projectId}
Update project
curl --request PATCH \
--url https://studio.weaverse.io/api/v1/content/projects/{projectId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Holiday Storefront"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Holiday Storefront'})
};
fetch('https://studio.weaverse.io/api/v1/content/projects/{projectId}', 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}"
payload = { "name": "Holiday Storefront" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"object": "project",
"id": "clz1k8m2n0000abcd1234efgh",
"name": "Holiday Storefront",
"parentProjectId": null,
"createdAt": "2026-01-15T08:30:00.000Z",
"revision": "2026-10-20T10:15:00.000Z"
}{
"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>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "UNAUTHORIZED",
"message": "<string>",
"status": 123,
"details": "<unknown>"
}{
"object": "error",
"code": "STALE_PROJECT",
"message": "This project changed after it was read. Reload before renaming.",
"status": 409
}{
"object": "error",
"code": "PRECONDITION_REQUIRED",
"message": "\"expectedUpdatedAt\" is required for delegated writes: read the current content first and pass it so the write targets exactly what was read.",
"status": 428
}Authorizations
Body
application/json
Response
The updated project
Was this page helpful?