# Release the hold of the platform or of namespaces

URL: /docs/api/disaster-recovery/hold/release

`POST /apis/funcd.io/v1alpha1/hold/release`

## Authentication

One of:

- `bearer`: A credential of funcd's config, sent as Authorization: Bearer followed by its token.
- `apiKey`: A credential of funcd's config, sent in the X-Api-Key header.

## Body

`HoldReleaseInputBody` as `application/json`, required.

```json
{
  "additionalProperties": false,
  "properties": {
    "advance": {
      "description": "With the release of the platform's hold: the blob EventSources, each as <namespace>/<name>, whose pending objects the release marks seen instead of firing them.",
      "items": {
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "namespaces": {
      "description": "The namespaces whose hold to release, instead of the platform's: the hold for its data that funcd restore run sets on a namespace with a BackupSchedule, and the hold that an in-place Restore keeps when its load does not complete.",
      "items": {
        "maxLength": 63,
        "minLength": 1,
        "pattern": "^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$",
        "type": "string"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "type": "object"
}
```

## Answers

| Status | Problem type | When | What to do |
| --- | --- | --- | --- |
| 204 |  | No Content |  |
| 400 | `urn:funcd:problem:invalid` | The body sets both advance and namespaces: advance applies to the release of the platform's hold only. | Release the platform and the namespaces in two calls. |
| 400 | `urn:funcd:problem:invalid` | An entry of advance does not name, as <namespace>/<name>, an EventSource with a blob event. | Name only blob EventSources, as funcdctl hold status lists them under pending. |
| 400 | `about:blank` | The body is missing or is not JSON. | Send a JSON body. |
| 401 | `urn:funcd:problem:unauthorized` | The request carries no bearer token or API key, or one that funcd does not know. | Send a credential of funcd's config as a bearer token in the Authorization header, or in X-Api-Key. |
| 403 | `urn:funcd:problem:forbidden` | The credential's role does not allow it to release a hold: only an admin's does. | Use an admin's credential. |
| 409 | `urn:funcd:problem:conflict` | The body names no namespace, and the platform is not held. | There is nothing to release: funcdctl hold status shows what is held. |
| 409 | `urn:funcd:problem:conflict` | A namespace of the body is not held; the namespaces before it are released. | Release the namespaces after it again, without it. |
| 409 | `urn:funcd:problem:conflict` | A namespace of the body is held by an in-place Restore that is Pending or Running; the namespaces before it are released. | Release the namespaces after it again; release this one once the Restore has ended. |
| 413 | `urn:funcd:problem:payload-too-large` | The body is larger than 1 MiB. | Send a smaller body. |
| 415 | `about:blank` | The Content-Type of the body is not JSON. | Send the body as application/json. |
| 422 | `about:blank` | The query holds a parameter that the operation does not take. | Send only the parameters that the operation lists. |
| 422 | `about:blank` | The body breaks the schema: a field that it does not know, of the wrong type or past its limits. | Correct the field at the location that the detail gives. |