Schema Documentation

UpdatePostInput

Description

Input for the updatePost mutation.

Fields
Input FieldDescription
authorId - ID The userId to assign as the author of the object
categories - PostCategoriesInput Set connections between the post and categories
clientMutationId - String This is an ID that can be passed to a mutation by the client to track the progress of mutations and catch possible duplicate mutation submissions.
commentStatus - String The comment status for the object
content - String The content of the object
date - String The date of the object. Preferable to enter as year/month/day (e.g. 01/31/2017) as it will rearrange date as fit if it is not specified. Incomplete dates may have unintended results for example, "2017" as the input will use current date with timestamp 20:17
excerpt - String The excerpt of the object
id - ID! The ID of the post object
ignoreEditLock - Boolean Override the edit lock when another user is editing the post
menuOrder - Int A field used for ordering posts. This is typically used with nav menu items or for special ordering of hierarchical content types.
password - String The password used to protect the content of the object
pingStatus - String The ping status for the object
pinged - [String] URLs that have been pinged.
postFormats - PostPostFormatsInput Set connections between the post and postFormats
slug - String The slug of the object
status - PostStatusEnum The status of the object
tags - PostTagsInput Set connections between the post and tags
title - String The title of the object
toPing - [String] URLs queued to be pinged.
Example
{"authorId":"4","categories":PostCategoriesInput,"clientMutationId":"xyz789","commentStatus":"xyz789","content":"abc123","date":"abc123","excerpt":"xyz789","id":"4","ignoreEditLock":true,"menuOrder":123,"password":"abc123","pingStatus":"abc123","pinged":["xyz789"],"postFormats":PostPostFormatsInput,"slug":"abc123","status":"AUTO_DRAFT","tags":PostTagsInput,"title":"abc123","toPing":["xyz789"]}