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
/graphqlimport ApiClient from '@example/protocol-api'
const client = new ApiClient(token)
await client.articles.create({ /* articleCreateInput data */ })