---
title: "Update deployment executor obligation profiles"
url: https://hexelstudio.com/docs/api/titan/management/update-deployment-executor-obligation-profiles
---

# Update deployment executor obligation profiles

**PUT** `/titan/management/deployments/{id}/executor-obligation-profiles`

## Path parameters

- `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).

- `If-Match: optional string`

  The version read (ETag or version). The replacement is refused with 412 EXECUTOR_OBLIGATION_PROFILES_VERSION_STALE when the installed set has another version; without it the set is replaced unconditionally.

## Body parameters

- `profiles: array of object`

  - `allowed_destination_hosts: array of string`

  - `kind: string`

  - `profile_id: string`

  - `profile_version: integer`

## Returns

`200` Organization-scoped result. (`ExecutorObligationProfilesView`)

- `deployment_id: string`

- `enforcement_deployment_id: string`

- `profiles: array of object`

  - `allowed_destination_hosts: array of string`

  - `kind: string`

  - `profile_digest: string`

  - `profile_id: string`

  - `profile_version: integer`

  - `referenced: boolean`

- `version: string`

## Errors

- `400` Invalid request or path; EXECUTOR_OBLIGATION_PROFILES_INVALID when a profile does not match the closed executor schema (kind executor, profile_id, profile_version 1-2147483647, 1-8 sorted unique lowercase DNS host patterns with at most one leading single-label wildcard in allowed_destination_hosts), the profiles are not sorted by profile_id and then profile_version without repeats, or the Configuration Authority refuses the set.
- `401` Missing or invalid authenticated context.
- `403` Organization mismatch or denied IAM action.
- `404` Not found: the deployment, or the executor-obligation-profiles routes while the deployment's Configuration Authority does not sign executor obligation profiles (NOT_FOUND).
- `405` HTTP method is not supported on this route.
- `409` EXECUTOR_OBLIGATION_PROFILE_IN_USE when the replacement removes or changes a profile the policy in force (with the organization's policy layers) references; the deployment is not a provisioned deployment (DEPLOYMENT_NOT_PROVISIONED), is retired (DEPLOYMENT_RETIRED) or has an operation in progress (OPERATION_IN_PROGRESS).
- `412` EXECUTOR_OBLIGATION_PROFILES_VERSION_STALE: If-Match names a version other than the one installed; read it again and retry.
- `413` Request body exceeds its size limit.
- `415` Unsupported request media type.
- `502` The deployment's Configuration Authority refused or answered unexpectedly (closed code).
- `503` Local storage or the deployment's Configuration Authority unavailable.

## Example

```bash
curl --request PUT \
  --url 'https://api.hexelstudio.com/v1/titan/management/deployments/{id}/executor-obligation-profiles' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "profiles": [
    {
      "allowed_destination_hosts": [
        "string"
      ],
      "kind": "string",
      "profile_id": "string",
      "profile_version": 0
    }
  ]
}'
```

### Response (200)

```json
{
  "deployment_id": "string",
  "enforcement_deployment_id": "string",
  "profiles": [
    {
      "allowed_destination_hosts": [
        "string"
      ],
      "kind": "string",
      "profile_digest": "string",
      "profile_id": "string",
      "profile_version": 0,
      "referenced": true
    }
  ],
  "version": "string"
}
```

### Response (400)

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

### Response (401)

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

### Response (403)

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

### Response (404)

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

### Response (405)

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

### Response (409)

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

### Response (412)

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

### Response (413)

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

### Response (415)

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

### Response (502)

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

### Response (503)

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