---
title: "Update deployment local tool rules"
url: https://hexelstudio.com/docs/api/titan/management/update-deployment-local-tool-rules
---

# Update deployment local tool rules

**PUT** `/titan/management/deployments/{id}/local-tool-rules`

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

## Body parameters

- `default_effect: string`

- `rules: array of object`

  - `arg_tokens: optional array of string`

  - `effect: string`

  - `executable: optional string`

  - `id: string`

  - `message: optional string`

  - `path_prefix: optional object`

    - `prefix: string`

    - `scope: string`

  - `tool_class: string`

## Returns

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

- `bundle: object`

  - `expires_at: string`

  - `generation: integer`

  - `verification_keys: map[string]`

- `configured: boolean`

- `default_effect: string`

- `deployment_id: string`

- `enforcement_deployment_id: string`

- `organization_id: string`

- `rules: array of object`

  - `arg_tokens: optional array of string`

  - `effect: string`

  - `executable: optional string`

  - `id: string`

  - `message: optional string`

  - `path_prefix: optional object`

    - `prefix: string`

    - `scope: string`

  - `tool_class: string`

## Errors

- `400` Invalid request, path, query, or idempotency key; on create, PROFILE_NOT_AVAILABLE when the region, hosting mode and exposure match no approved profile.
- `401` Missing or invalid authenticated context.
- `403` Organization mismatch or denied IAM action.
- `404` Unknown or foreign organization resource, or plan not yet prepared.
- `405` HTTP method is not supported on this route.
- `503` Local storage or preparation service unavailable.

## Example

```bash
curl --request PUT \
  --url 'https://api.hexelstudio.com/v1/titan/management/deployments/{id}/local-tool-rules' \
  --header "Authorization: Bearer $ACCESS_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
  "default_effect": "string",
  "rules": [
    {
      "arg_tokens": [
        "string"
      ],
      "effect": "string",
      "executable": "string",
      "id": "string",
      "message": "string",
      "path_prefix": {
        "prefix": "string",
        "scope": "string"
      },
      "tool_class": "string"
    }
  ]
}'
```

### Response (200)

```json
{
  "bundle": {
    "expires_at": "2026-01-01T00:00:00Z",
    "generation": 0,
    "verification_keys": {
      "key": "string"
    }
  },
  "configured": true,
  "default_effect": "string",
  "deployment_id": "string",
  "enforcement_deployment_id": "string",
  "organization_id": "string",
  "rules": [
    {
      "arg_tokens": [
        "string"
      ],
      "effect": "string",
      "executable": "string",
      "id": "string",
      "message": "string",
      "path_prefix": {
        "prefix": "string",
        "scope": "string"
      },
      "tool_class": "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 (503)

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