Skip to main content

CreatePostInput

Input for creating a post

input CreatePostInput {
attachmentIds: [String!]
createdAt: DateTime
customSeoDetail: CustomSeoDetailInput
key: String
locked: Boolean
mappingFields: [PostMappingFieldInput!]!
ownerId: ID
postTypeId: String!
publish: Boolean
publishedAt: DateTime
tagIds: [String!]
tagNames: [String!]
updatedAt: DateTime
}

Fields

attachmentIds ([String!])

The id of all the attachments to this post.

createdAt (DateTime)

customSeoDetail (CustomSeoDetailInput)

The custom seo detail of this post

key (String)

locked (Boolean)

Whether the post is locked

mappingFields ([PostMappingFieldInput!]!)

The fields of the post. Depending of the post type it may include title, text, image, etc.

ownerId (ID)

postTypeId (String!)

The id of this post's type

publish (Boolean)

Whether the post is published

publishedAt (DateTime)

tagIds ([String!])

The TagIds for this post. Can be used in conjuction with tagNames.

tagNames ([String!])

The tags of this post. Can be used in conjuction with tagIds.

updatedAt (DateTime)