Mutation
mutation UpsertHelpCenterArticle($input: UpsertHelpCenterArticleInput!) {
upsertHelpCenterArticle(input: $input) {
helpCenterArticle {
id
title
description
icon
contentHtml
slug
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"helpCenterId": "id",
"title": "string",
"contentHtml": "string"
}
}Response
{
"data": {
"upsertHelpCenterArticle": {
"helpCenterArticle": {
"id": "id",
"title": "string",
"description": "string",
"icon": "string",
"contentHtml": "string",
"slug": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
upsertHelpCenterArticle
Create or update a help center article. Omit helpCenterArticleId to create a new article; provide it to update an existing one. The slug is normalized to lowercase and must be unique within the help center. contentHtml is rendered directly in the help center. status defaults to DRAFT when not provided. Requires the helpCenter:edit permission.
MUTATION
upsertHelpCenterArticle(input: UpsertHelpCenterArticleInput!): UpsertHelpCenterArticleOutput!Arguments
input
required
Returns
helpCenterArticle
error
Mutation
mutation UpsertHelpCenterArticle($input: UpsertHelpCenterArticleInput!) {
upsertHelpCenterArticle(input: $input) {
helpCenterArticle {
id
title
description
icon
contentHtml
slug
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"helpCenterId": "id",
"title": "string",
"contentHtml": "string"
}
}Response
{
"data": {
"upsertHelpCenterArticle": {
"helpCenterArticle": {
"id": "id",
"title": "string",
"description": "string",
"icon": "string",
"contentHtml": "string",
"slug": "string"
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

