---
title: "Publish policy"
url: https://hexelstudio.com/docs/api/titan/administration/publish
---

# Publish policy

**POST** `/titan/admin/policies/{enforcement_deployment_id}/publish`

## Path parameters

- `enforcement_deployment_id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

## Body parameters

- `source_digest: string`

## Returns

`200` Successful response; exact status varies by operation. (`object`)

- `generation: integer`

- `issued: boolean`

- `source_digest: string`

## Errors

- `400` Policy administration rejected
- `403` Policy administration rejected
- `404` Policy administration rejected
- `409` Policy administration rejected
- `413` Policy administration rejected
- `415` Policy administration rejected
- `503` Policy administration rejected

## Example

```bash
curl --request POST \
  --url 'https://api.hexelstudio.com/v1/titan/admin/policies/{enforcement_deployment_id}/publish' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "source_digest": "string"
}'
```

### Response (200)

```json
{
  "generation": 0,
  "issued": true,
  "source_digest": "string"
}
```

### Response (400)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (404)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (409)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (413)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (415)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```

### Response (503)

```json
{
  "error": {
    "code": "string",
    "message": "string"
  }
}
```
