Update project

updateProject(input: UpdateProjectInput!): UpdateProjectPayload

Requires project.settings.manage.

Arguments

ArgumentTypeRequired
inputUpdateProjectInput!Yes

Input fields

input

UpdateProjectInput

FieldTypeRequiredDescription
idID!YesProject UUID to update.
slugStringNoLowercase project identifier. Starts with a letter; words may be separated by single hyphens.
nameStringNoNew display name. Must not be empty when supplied.
descriptionStringNoNew description. An empty string clears it.
configJSONNoProject settings as a JSON object: disableMetaRobots, providerId, layoutId, isTemplate, comingSoon, category, description. Omitted members retain their stored values.
disableMetaRobotsBooleanNo
providerIdStringNo
layoutIdStringNo
categoryStringNo
isTemplateBooleanNo
comingSoonBooleanNo

Response

Returns UpdateProjectPayload. Open the type for its fields and nested types.

FieldType
projectProject

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

query.graphql
mutation UpdateProject($input: UpdateProjectInput!) {  updateProject(input: $input) {    project {      id      name      slug      createdAt      updatedAt    }  }}
variables.json
{  "input": {    "id": "00000000-0000-4000-8000-000000000001"  }}