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": "576e293bddc51c46db197733",
"seoInput": {
"title": "title",
"description": "A description",
"index": true,
"slug": "slug"
}
}
Response
{
"collectionSeoUpdate": {
"_id": "b3984f1de1e29ec9d46d891e",
"created": 1741102790325,
"createdBy": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "0f0590cc9a431041d27a1d08"
},
"id": 1834346829719,
"title": "example",
"description": {
"content": "example"
},
"handle": "example",
"sort": {
"key": "example",
"order": 42
},
"viewType": "example",
"seo": {
"index": true,
"description": "example",
"slug": "example",
"title": "example"
},
"path": "/release/1763553751/release-artist-release-name",
"banner": {
"format": "example"
},
"segments": [
{
"_id": "7fede588a2ae903cbdd363af",
"title": "example"
}
]
}
}
Arguments
| Name | Type | Description |
|---|---|---|
collectionRef | ID! | Reference ID of the collection to update (required) |
seoInput | SeoInput! | SeoInput object containing metadata (required) |