collectionSeoUpdate Mutation
Description
Updates the SEO metadata for a collection.
mutation collectionSeoUpdate($collectionRef: ID!, $seoInput: SeoInput!) {
collectionSeoUpdate(collectionRef: $collectionRef, seoInput: $seoInput) {
_id
created
createdBy {
type
name
email
ref
}
id
title
description {
content
}
handle
sort {
key
order
}
viewType
seo {
index
description
slug
title
}
path
banner {
format
}
segments {
_id
title
}
}
}
Variables
{
"collectionRef": "8c386613d121cdfb706bf0ff",
"seoInput": {
"title": "title",
"description": "A description",
"index": true,
"slug": "slug"
}
}
Response
{
"collectionSeoUpdate": {
"_id": "c5797e51e6e07b5e7daf77f7",
"created": 1769516718086,
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "6aac43c219cab2cbf1529078"
},
"id": 537739989364,
"title": "example",
"description": {
"content": "example"
},
"handle": "example",
"sort": {
"key": "example",
"order": -1
},
"viewType": "example",
"seo": {
"index": true,
"description": "example",
"slug": "example",
"title": "example"
},
"path": "/release/1763553751/release-artist-release-name",
"banner": {
"format": "example"
},
"segments": [
{
"_id": "f0ca0964d006e3ce1b27a06e",
"title": "example"
}
]
}
}
Arguments
| Name | Type | Description |
|---|---|---|
collectionRef | ID! | Reference ID of the collection to update (required) |
seoInput | SeoInput! | SeoInput object containing metadata (required) |