# updateProject

```graphql
mutation UpdateProject($input: UpdateProjectInput!) {
  updateProject(input: $input) {
    project {
      id
      slug
      name
      description
      type
      systemManaged
      isClaimed
      features
      createdAt
      updatedAt
      publishedAt
      config
      disableMetaRobots
      providerId
      layoutId
      category
      isTemplate
      comingSoon
    }
  }
}
```

Update a project. Requires project.settings.manage.

## Arguments

| Name                      | Type                | Required | Description                                                                                                                                                            |
| ------------------------- | ------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input`                   | UpdateProjectInput! | Yes      |                                                                                                                                                                        |
| `input.id`                | ID!                 | Yes      | Project UUID to update.                                                                                                                                                |
| `input.slug`              | String              |          | Lowercase project identifier. Starts with a letter; words may be separated by single hyphens.                                                                          |
| `input.name`              | String              |          | New display name. Must not be empty when supplied.                                                                                                                     |
| `input.description`       | String              |          | New description. An empty string clears it.                                                                                                                            |
| `input.config`            | JSON                |          | Project settings as a JSON object: disableMetaRobots, providerId, layoutId, isTemplate, comingSoon, category, description. Omitted members retain their stored values. |
| `input.disableMetaRobots` | Boolean             |          |                                                                                                                                                                        |
| `input.providerId`        | String              |          |                                                                                                                                                                        |
| `input.layoutId`          | String              |          |                                                                                                                                                                        |
| `input.category`          | String              |          |                                                                                                                                                                        |
| `input.isTemplate`        | Boolean             |          |                                                                                                                                                                        |
| `input.comingSoon`        | Boolean             |          |                                                                                                                                                                        |

## Variables

```json
{
  "input": {
    "id": "string"
  }
}
```

## Responses

| Status | Description                                     |
| ------ | ----------------------------------------------- |
| 200    | The UpdateProjectPayload in data.updateProject. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation UpdateProject($input: UpdateProjectInput!) {\n  updateProject(input: $input) {\n    project {\n      id\n      slug\n      name\n      description\n      type\n      systemManaged\n      isClaimed\n      features\n      createdAt\n      updatedAt\n      publishedAt\n      config\n      disableMetaRobots\n      providerId\n      layoutId\n      category\n      isTemplate\n      comingSoon\n    }\n  }\n}",
  "variables": {
    "input": {
      "id": "string"
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "updateProject": {
      "project": {
        "id": "string",
        "slug": "string",
        "name": "string",
        "description": "string",
        "type": "string",
        "systemManaged": false,
        "isClaimed": false,
        "features": [
          "BASIC_SETTINGS"
        ],
        "createdAt": "2026-01-01T00:00:00Z",
        "updatedAt": "2026-01-01T00:00:00Z",
        "publishedAt": "2026-01-01T00:00:00Z",
        "config": {},
        "disableMetaRobots": false,
        "providerId": "string",
        "layoutId": "string",
        "category": "string",
        "isTemplate": false,
        "comingSoon": false
      }
    }
  }
}
```
