---
title: "PUT /v1/policies/{id}"
method: PUT
path: "/v1/policies/{id}"
---

# PUT /v1/policies/{id}

`PUT /v1/policies/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `status` 'activated' | 'deactivated' — Defines the status of the policy Possible values: `activated`: The policy is active and will be evaluated at runtime. `deactivated`: The policy is inactive and will not be evaluated at runtime. Usually used for drafting and will be the default value upon policy creation.
  - `resource` string — The resource in which the policy will apply (e.g. wallet, user)
  - `operation` string — The operation where the resource participated in which the policy will apply
  - `name` string — The merchant defined name of the policy
  - `source` string — Base64 encoded string of the policy source code

## Response `200`

- object
  - `data` object
    - `id` string — ID of the policy
    - `resource` string — The resource in which the policy will apply (e.g. wallet, user)
    - `operation` string — The operation where the resource participated in which the policy will apply
    - `name` string — The merchant defined name of the policy
    - `language` string — The programming language of which the policy is written
    - `source` string — Base64 encoded string of the policy source code
    - `status` string — Defines the status of the policy Possible values: `activated`: The policy is active and will be evaluated at runtime. `deactivated`: The policy is inactive and will not be evaluated at runtime. Usually used for drafting and will be the default value upon policy creation.
    - `created_at` string — The timestamp when the policy is created
    - `updated_at` string — The timestamp when the policy is last updated

## Other responses

- `404` — Not Found
- `422` — Unprocessable Entity

---

[API](https://skmtc.net/paymongo/apis/paymongo-api.md) · [All operations](https://skmtc.net/paymongo/apis/paymongo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/paymongo/paymongo-api/versions/c18f9a027b2c/schema)
