# Release a pack lock

Source: https://amanucci.com/nl/docs/developers/api/law/releasePackLock

## POST /v1/firms/{firmId}/pack-locks/{lockHash}/release

Release a pack lock

Release a pack lock — the signed act that lets a worker serve a new edition of the law. The body is the replay report `corpus:replay` produced for this lock (its four classes over the corpus and a sample of real runs). A report with any `account-mapping` or `VAT/fiscal` row is MATERIAL and only this signature releases it; a non-material one the pack set releases itself at boot. The caller holds an `accountant` seat at the platform's own firm with a step-up under fifteen minutes old; the verification id of that step-up is recorded on the row. Once: a released lock answers 409.

Operation ID: `releasePackLock`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "firmId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$"
    },
    "required": true,
    "name": "lockHash",
    "in": "path"
  }
]
```

### Request body

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/ReleasePackLockBody"
      }
    }
  }
}
```

### Responses

#### 201 The released lock.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/ReleasedPackLock"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 409 The world is not in the state the request assumed: a stale `expectedSeq`, or a transition already made.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
