# at.happyproto.registry.retryRelease

> Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.retryRelease)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.retryRelease/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.retryRelease/examples)

## Definitions

### `at.happyproto.registry.retryRelease`

**Type**: `procedure`

Copy a pending release's artifact again. A release is listed only once the registry has copied its artifact, which it tries once when it first indexes the release; this is how the release's publisher tries again after that copy failed. An active release is answered as it is, with nothing enqueued.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `slug` | `string` | Yes | The package slug. |
| `version` | `string` | Yes | The version to retry, as published. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `status` | `string` | Yes | pending: the copy was enqueued again. active: the artifact is already held, and nothing was enqueued. |
| `uri` | `string` (at-uri) | Yes | The release record. |

#### Errors

- **AuthRequired**: The caller's identity could not be determined.
- **InvalidRequest**: The slug or version could not name a release.
- **ReleaseNotFound**: That version is not published from the caller's account, or was withdrawn.
- **ReleaseNotIndexed**: The registry has not indexed the release, so there is no copy to retry. It may have refused the record.
- **Upstream**: The copy could not be enqueued.
- **NotConfigured**: The registry has no identity configured.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Copy a pending release's artifact again. A release is listed only once the registry has copied its artifact, which it tries once when it first indexes the release; this is how the release's publisher tries again after that copy failed. An active release is answered as it is, with nothing enqueued.",
      "errors": [
        {
          "description": "The caller's identity could not be determined.",
          "name": "AuthRequired"
        },
        {
          "description": "The slug or version could not name a release.",
          "name": "InvalidRequest"
        },
        {
          "description": "That version is not published from the caller's account, or was withdrawn.",
          "name": "ReleaseNotFound"
        },
        {
          "description": "The registry has not indexed the release, so there is no copy to retry. It may have refused the record.",
          "name": "ReleaseNotIndexed"
        },
        {
          "description": "The copy could not be enqueued.",
          "name": "Upstream"
        },
        {
          "description": "The registry has no identity configured.",
          "name": "NotConfigured"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "slug": {
              "description": "The package slug.",
              "maxLength": 128,
              "type": "string"
            },
            "version": {
              "description": "The version to retry, as published.",
              "maxLength": 256,
              "type": "string"
            }
          },
          "required": [
            "slug",
            "version"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "status": {
              "description": "pending: the copy was enqueued again. active: the artifact is already held, and nothing was enqueued.",
              "knownValues": [
                "pending",
                "active"
              ],
              "type": "string"
            },
            "uri": {
              "description": "The release record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "status"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "at.happyproto.registry.retryRelease",
  "lexicon": 1
}
```
