Back to Content Management API

articleCreate

Creates an article.

Arguments

  • Name
    input
    Type
    ArticleCreateInput!
    Description

    An object with the following fields:

    • title: String!
    • handle: String!
    • description: String
    • seo: SEOInput
    • sectionIds: [ID!]
    • firstPublishedAt: Date
    • firstPublishedAtTimezone: String

Returns

  • Name
    Article.*
    Type
    Article
    Description

    Any requested field from the Article object.

Request

POST
/graphql
import ApiClient from '@example/protocol-api'

const client = new ApiClient(token)

await client.articles.create({ /* articleCreateInput data */ })

Was this page helpful?