Code examples for MUTATION: articleUpdate
Query Reference for MUTATION: articleUpdate
"mutation articleUpdate($article: ArticleUpdateInput!, $id: ID!) {\n articleUpdate(article: $article, id: $id) {\n article {\n # Article fields\n }\n userErrors {\n field\n message\n }\n }\n}"
Input Reference for MUTATION: articleUpdate
"{\n \"article\": {\n \"author\": {\n \"name\": \"<your-name>\",\n \"userId\": \"gid://shopify/<objectName>/10079785100\"\n },\n \"blogId\": \"gid://shopify/<objectName>/10079785100\",\n \"body\": \"<p>Grey cotton knit sweater.</p>\",\n \"handle\": \"<your-handle>\",\n \"image\": {\n \"altText\": \"<your-altText>\",\n \"url\": \"<your-url>\"\n },\n \"isPublished\": true,\n \"metafields\": [\n {\n \"description\": \"<your-description>\",\n \"id\": \"gid://shopify/<objectName>/10079785100\",\n \"key\": \"<your-key>\",\n \"namespace\": \"<your-namespace>\",\n \"type\": \"<your-type>\",\n \"value\": \"<your-value>\"\n }\n ],\n \"publishDate\": \"2019-09-07T15:50:00Z\",\n \"redirectNewHandle\": true,\n \"summary\": \"<p>Grey cotton knit sweater.</p>\",\n \"tags\": [\n \"<your-tags>\"\n ],\n \"templateSuffix\": \"<your-templateSuffix>\",\n \"title\": \"<your-title>\"\n },\n \"blog\": {\n \"title\": \"<your-title>\"\n },\n \"id\": \"gid://shopify/<objectName>/10079785100\"\n}"
Schema Reference for MUTATION: articleUpdate
"input ArticleUpdateInput {\n author: AuthorInput\n blogId: ID\n body: HTML\n handle: String\n image: ArticleImageInput\n isPublished: Boolean\n metafields: [MetafieldInput!]\n publishDate: DateTime\n redirectNewHandle: Boolean\n summary: HTML\n tags: [String!]\n templateSuffix: String\n title: String\n}\n\ninput AuthorInput {\n name: String\n userId: ID\n}\n\ninput ArticleImageInput {\n altText: String\n url: String\n}\n\ninput MetafieldInput {\n description: String\n id: ID\n key: String\n namespace: String\n type: String\n value: String\n}\n\ninput ArticleBlogInput {\n title: String!\n}\n"
Display Examples for MUTATION: articleUpdate
[]