Skip to main content
MUTATION
editPolicy(id: String!, input: EditPolicyInput!, version: Int!): Policy!

Arguments

id
String!
required

Id of the policy to edit.

input

The changes to apply.

version
Int!
required

Version of the policy to edit.

Returns

author

The user named as the author of the policy.

description
String

Description of the policy.

The document attached to this version of the policy.

id
String!

Id of the policy, shared by all of its versions.

name
String!

Name of the policy.

orgId
String!

Id of the organization the policy belongs to.

siteNames
[String!]!

Names of the sites the policy is restricted to. Empty if there are no site restrictions.

status
String!

One of 'DRAFT' (Draft) or 'PUBLISHED' (Published).

updatedAt
DateTime!

When this version of the policy was last changed.

version
Int!

Version number of the policy.

Mutation
Variables
Response