# Publish an approved version at its public address with an effective date

`POST /compliance/legal/documents/{doc}/versions/{n}/publish` · Rivier · compliance

Publish an approved version at its public address with an effective date. A person with the manager role.

- Scope: compliance:write
- Sdk: compliance.legalVersion.publish
- Cli: compliance legal version publish

## Parameters

- `doc` (path, required), string
- `n` (path, required), integer

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "acknowledgeNotLegalAdvice": {
      "type": "boolean"
    },
    "effectiveDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "required": [
    "acknowledgeNotLegalAdvice"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/compliance/legal/documents/{doc}/versions/{n}/publish' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "acknowledgeNotLegalAdvice": false
}'
```
