---
title: "Update deployment user route verifier"
url: https://hexelstudio.com/docs/api/titan/management/update-deployment-user-route-verifier
---

# Update deployment user route verifier

**PUT** `/titan/management/deployments/{id}/user-route-verifier`

## 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 USER_ROUTE_VERIFIER_VERSION_STALE when the verifier in force has another version; without it the verifier is replaced unconditionally.

## Body parameters

- `verifier: object`

  - `algorithms: optional array of string`

  - `audiences: array of string`

  - `clock_skew_seconds: optional integer`

  - `issuer: string`

  - `jwks: object`

    The identity provider's pinned public key set (a JWKS, {"keys": [...]}): 1-16 public keys, no private key material.

  - `max_token_lifetime_seconds: optional integer`

  - `required_claims: map[string]`

  - `subject_claim: string`

## Returns

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

- `configured: boolean`

- `deployment_id: string`

- `enforcement_deployment_id: string`

- `organization_id: string`

- `verifier: object`

  - `algorithms: optional array of string`

  - `audiences: array of string`

  - `clock_skew_seconds: optional integer`

  - `issuer: string`

  - `jwks: object`

    The identity provider's pinned public key set (a JWKS, {"keys": [...]}): 1-16 public keys, no private key material.

  - `max_token_lifetime_seconds: optional integer`

  - `required_claims: map[string]`

  - `subject_claim: string`

- `version: string`

## Errors

- `400` Invalid request or path; USER_ROUTE_VERIFIER_INVALID when the body does not match the closed schema or the verifier is refused (not an https issuer, 1-8 audiences, no required claim, a key set of 1-16 public keys that is not pinned or holds private key material, an algorithm outside the closed set); USER_ROUTE_VERIFIER_CONFLICT when it could accept the token a session holds: it shares an audience, the issuer or a required claim with the plane's session verifier.
- `401` Missing or invalid authenticated context.
- `403` Organization mismatch or denied IAM action.
- `404` Not found: the deployment, or the user-route-verifier routes while the plane does not serve deployments' own user-route verifiers (NOT_FOUND).
- `405` HTTP method is not supported on this route.
- `409` The deployment is not a provisioned shared-plane deployment (DEPLOYMENT_NOT_PROVISIONED) or is retired (DEPLOYMENT_RETIRED).
- `412` USER_ROUTE_VERIFIER_VERSION_STALE: If-Match names a version other than the one in force; 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}/user-route-verifier' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "verifier": {
    "algorithms": [
      "string"
    ],
    "audiences": [
      "string"
    ],
    "clock_skew_seconds": 0,
    "issuer": "https://example.com",
    "jwks": {},
    "max_token_lifetime_seconds": 0,
    "required_claims": {
      "key": "string"
    },
    "subject_claim": "string"
  }
}'
```

### Response (200)

```json
{
  "configured": true,
  "deployment_id": "string",
  "enforcement_deployment_id": "string",
  "organization_id": "string",
  "verifier": {
    "algorithms": [
      "string"
    ],
    "audiences": [
      "string"
    ],
    "clock_skew_seconds": 0,
    "issuer": "https://example.com",
    "jwks": {},
    "max_token_lifetime_seconds": 0,
    "required_claims": {
      "key": "string"
    },
    "subject_claim": "string"
  },
  "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"
  }
}
```
