---
title: "Update admission state"
method: PATCH
path: "/admission/state"
tags: ["Admission"]
---

# Update admission state

`PATCH /admission/state`

## Request

- Base URL: `/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/v1/admission/state`
- Auth: none declared. Required headers: `X-Auth-Token`
- TypeScript: <https://skmtc.dev/neuvector/apis/neuvector-api/docs/admission/state/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `X-Auth-Token` string, required

## Request body

- RESTAdmissionConfigData
  - `state` RESTAdmissionState
    - `enable` boolean
    - `mode` string
    - `default_action` string
    - `adm_client_mode` string
    - `adm_svc_type` string
    - `adm_client_mode_options` object
      - `service` string
      - `url` string
    - `ctrl_states` object
      - `validate` string
      - `states` boolean
  - `admission_options` RESTAdmRuleTypeOptions
    - `deny_options` RESTAdmCatOptions, required
      - `k8s_options` RESTAdmRuleOptions
        - `rule_options` object, required
          - `rule` string
          - `options` RESTAdmissionRuleOption
            - `name` string, required
            - `ops` string[], required
            - `values` string[]
            - `match_src` string
            - `sub_options` object
              - …
    - `exception_options` RESTAdmCatOptions, required
      - `k8s_options` RESTAdmRuleOptions
        - `rule_options` object, required
          - `rule` string
          - `options` RESTAdmissionRuleOption
            - `name` string, required
            - `ops` string[], required
            - `values` string[]
            - `match_src` string
            - `sub_options` object
              - …
    - `psp_collection` RESTAdmRuleCriterion[]
      - `name` string, required
      - `op` string, required
      - `value` string, required
      - `sub_criteria` RESTAdmRuleCriterion[]
  - `k8s_env` boolean, required

## Response `200`

Success

## Other responses

- `404`: Operation not allowed

---

[API](https://skmtc.dev/neuvector/apis/neuvector-api.md) - [All operations](https://skmtc.dev/neuvector/apis/neuvector-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neuvector/apis/neuvector-api/revisions/b8d8d28840b3?raw)
