> ## 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.

# ApiVersionState

> Describes the publishing state of an API version. The version's API answers reads in every state except `NEW`, `DELETE_STARTED` and `DELETED`. `PUBLISHED` is live and settled; `PREVIEW_PUBLISH_STARTED`, `UPDATING`, `OPERATIONAL`, `RESTARTING` and `DELETE_STARTED` are in progress; `PUBLISH_FAILED` failed.



**Kind**: `enum`

## Values

**`NEW`** — Created and never published. The API doesn't answer yet.

**`PREVIEW_PUBLISH_STARTED`** — In progress: a publish started with `isPreview: true`. Ends `PUBLISHED` or `PUBLISH_FAILED`.

**`PREVIEW`** — No longer used.

**`PUBLISH_STARTED`** — No longer used.

**`PUBLISHED`** — Live: publishing finished and the API serves the version's data.

**`DELETE_STARTED`** — In progress: `deleteApiVersion` is tearing the version down. Ends `DELETED`.

**`DELETED`** — Deleted. The API no longer answers.

**`STOPPED`** — Stopped by `stopVersion`: the API still answers, but data changes no longer reach it. `restartVersionPublish` resumes it.

**`PUBLISH_FAILED`** — Failed: the last publish didn't finish. `publishingStatus` shows the failed step; run `publishVersion` again.

**`UPDATING`** — In progress: `publishVersion` is publishing the version or its changes. Moves on to `OPERATIONAL` or `PUBLISHED`.

**`OPERATIONAL`** — In progress: the API answers while its data is still loading. Ends `PUBLISHED`.

**`RESTARTING`** — In progress: `restartVersionPublish` is rebuilding the published data. Ends `PUBLISHED`.



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