---
title: "Update Admission Rule"
url: "https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598/operations/AdmissionRulesController_update"
---

> Full API specification: https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598.md

# Update Admission Rule

`PUT` `/tenants/admission-rules/{id}`

Operation ID: `AdmissionRulesController_update`

Modifies the configuration of an existing admission rule including its name, rule logic, and time constraints. Changes affect access control immediately.

## Path parameters

- `id` (string, uuid, required) - The unique identifier (UUID) of the admission rule to update

## Request body (required)

Content types: `application/json`

## Responses

- `200` - Successfully updated the admission rule
- `401` - Unauthorized - Invalid or missing authentication token
- `403` - Forbidden - Insufficient permissions to perform this operation.
- `404` - Admission rule not found with the provided ID

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Cipherscale API
  version: "1.0"
servers:
  - url: https://public-api.cipherscale.com/qa
    description: Cipherscale Public API Server
paths:
  /tenants/admission-rules/{id}:
    put:
      operationId: AdmissionRulesController_update
      summary: Update Admission Rule
      description: Modifies the configuration of an existing admission rule including
        its name, rule logic, and time constraints. Changes affect access
        control immediately.
      parameters:
        - name: id
          required: true
          in: path
          description: The unique identifier (UUID) of the admission rule to update
          schema:
            format: uuid
            type: string
      requestBody:
        required: true
        description: The admission rule data to update
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/UpdateAdmissionRuleDto"
      responses:
        "200":
          description: Successfully updated the admission rule
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/AdmissionRuleDto"
        "401":
          description: Unauthorized - Invalid or missing authentication token
        "403":
          description: Forbidden - Insufficient permissions to perform this operation.
        "404":
          description: Admission rule not found with the provided ID
      tags:
        - Admission Rules
      security:
        - ApiKeyAuth: []
security:
  - ApiKeyAuth: []
components:
  schemas:
    UpdateAdmissionRuleDto:
      type: object
      properties:
        rule:
          type: string
        name:
          type: string
        hasTimeConstraint:
          type: boolean
      required:
        - rule
        - name
        - hasTimeConstraint
    AdmissionRuleDto:
      type: object
      properties:
        id:
          type: string
          format: uuid
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
        name:
          type: string
        type:
          enum:
            - ALLOW
            - DENY
            - CUSTOM
          type: string
        hasTimeConstraint:
          type: boolean
        rule:
          type: string
      required:
        - id
        - createdAt
        - updatedAt
        - name
        - type
        - hasTimeConstraint
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
