Skip to Content
MailroomMailroom home

Update a policy

PATCH
/policies/{id}

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
id?string
name?string
version?integer
default_action?string
Value in"allow""require_approval""deny"
rules?array<>

Response Body

Policy

application/json
  1. response
id?string
name?string
version?integer
default_action?string
Value in"allow""require_approval""deny"
rules?array<>
Example Request
curl -X PATCH 'https://api.mailroom.gosuevals.com/v1/policies/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
{  "id": "string",  "name": "string",  "version": 0,  "default_action": "allow",  "rules": [    {      "id": "string",      "action": "allow",      "match": {}    }  ]}