INPUT_OBJECT

CreatePostInput

Input type related to createPost mutation. DEPRECATED: use CreatePublicationInput instead. This input will be removed after May 21, 2023.

link GraphQL Schema definition

  • input CreatePostInput {
  • # A unique identifier for the client performing the mutation.
  • clientMutationId: ID
  • # The identifier used to find the project where the post is added to.
  • projectId: ID!
  • # Information related to the person who created the post.
  • author: PostAuthorInput!
  • # The post content. Markdown syntax is supported. The value must be lower than or
  • # equal to 1500 characters, otherwise it is truncated.
  • content: String
  • # A short extract of your post content. The length must be less than or equal to
  • # 240 characters, otherwise the value is truncated. If no value is given, the
  • # extract is automatically generated from your post content.
  • excerpt: String
  • # The URL of an image that represents the contents, mood, or theme of the post.
  • featuredImage: String
  • # Defines whether the publication must be forwarded to email subscribers. Note
  • # email sending requires a paid subscription and must be enabled manually from the
  • # Noticeable dashboard.
  • forwardToEmails: Boolean
  • # Defines whether the publication must be forwarded to Webhooks upon publication
  • # (i.e. the publication is not a draft). If enabled, be careful not to create
  • # forwarding loops.
  • forwardToWebhooks: Boolean
  • # Defines whether the publication must be forwarded to Zapier upon publication
  • # (i.e. the publication is not a draft). If enabled, be careful not to create
  • # forwarding loops.
  • forwardToZapier: Boolean
  • # Defines whether hidden comments are enabled or not for this post.
  • hiddenComments: Boolean
  • # Defines whether the post is visible in your project's Newspage and Widget.
  • isDraft: Boolean!
  • # A list of labels used to specify the subjects of your post.
  • labels: [LabelInput]
  • # The publication date and time.
  • publicationTime: DateTime!
  • # Defines whether emoji reactions are enabled or not for this post.
  • reactions: Boolean
  • # A list of segmentation filters, aka segments, used to make this post visible to
  • # specific users.
  • segments: [String]
  • # The slug is the URL-friendly version of your post title used to create a
  • # permanent link. It is lowercase and must contain only letters, numbers and
  • # hyphens. If empty, the value is auto-generated from your post title. In that
  • # case, an ID may be appended to ensure uniqueness in case of conflicts.
  • slug: String
  • # A descriptive or general heading of your post content. The length must be less
  • # than or equal to 80 characters, otherwise the value is truncated.
  • title: String!
  • }