> ## Documentation Index
> Fetch the complete documentation index at: https://docs.occtoo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# restartVersionPublish

> Starts rebuilding the published data of a `STOPPED` or `PUBLISHED` version and returns `RESTARTING` at once. Follow `ApiVersion.state` until `PUBLISHED`. Fails with `ConflictError` in any other state, and with `ValidationError` when an endpoint id isn't one of the version's.



**mutation** `restartVersionPublish(input: RestartVersionPublishInput!): RestartVersionPublishPayload!`

## Arguments

**`input`**: `RestartVersionPublishInput!` (required)

## Returns

`RestartVersionPublishPayload!`

**`apiVersionState`**: `ApiVersionState`

---

**`errors`**: `[RestartVersionPublishError!]`

## Examples

```graphql Mutation
mutation RestartVersionPublish($input: RestartVersionPublishInput!) {
  restartVersionPublish(input: $input) {
    apiVersionState
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "destinationId": "id",
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "restartVersionPublish": {
      "apiVersionState": "NEW",
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ]
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.