Updating Categories
curl -0 -v -X POST https://api.nosto.com/v1/graphql \
-u ":<token>" \
-H 'Content-Type: application/graphql' \
-d @- << EOF
mutation {
upsertCategories(categories: [{
id: "123",
name: "Shoes",
parentId: "456",
urlPath: "/categories/mens/shoes",
fullName: "/Mens/Shoes",
available: true
}]) {
categoryResult {
errors {
field
message
}
category {
id
name
parentId
urlPath
fullName
available
}
}
}
}
EOFLast updated
Was this helpful?