---
title: "Reorder Access Policies"
url: "https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598/operations/PoliciesController_reorder"
---

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

# Reorder Access Policies

`PATCH` `/tenants/policies`

Operation ID: `PoliciesController_reorder`

Changes the priority order of access policies. Policy order is crucial as policies are evaluated in sequence, and the first matching policy determines access permissions. required: true content: application/json: schema: type: array items: type: string

## Responses

- `200`
- `401` - Unauthorized - Invalid or missing authentication token
- `403` - Forbidden - Insufficient permissions to perform this operation.

## 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/policies:
    patch:
      operationId: PoliciesController_reorder
      summary: Reorder Access Policies
      description: >-
        Changes the priority order of access policies. Policy order is crucial
        as policies are evaluated in sequence, and the first matching policy
        determines access permissions. required: true content:
          application/json:
            schema:
              type: array
              items:
                type: string
      responses:
        "200":
          description: ""
        "401":
          description: Unauthorized - Invalid or missing authentication token
        "403":
          description: Forbidden - Insufficient permissions to perform this operation.
      tags:
        - Policies
      security:
        - ApiKeyAuth: []
security:
  - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
```
