---
title: "Upserts Compliance Rule Displayable for specific agency-group rule"
method: PUT
path: "/agency-group/{agency_group_id}/compliance-rule-displayables/{rule_id}"
tags: ["Compliance Rule Displayable"]
---

# Upserts Compliance Rule Displayable for specific agency-group rule

`PUT /agency-group/{agency_group_id}/compliance-rule-displayables/{rule_id}`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency-group/{agency_group_id}/compliance-rule-displayables/{rule_id}`
- Auth: HTTP basic

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required
- `X-Accept-Timezone` string

## Request body

- object
  - `web_description` string, required

## Response `200`

Compliance rule displayable success response will be returned

- object
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `agency_group_id` string, required
  - `compliance_rule_id` string, required
  - `web_description` string, required

## Other responses

- `400`: Validation error response when recompiling compliance rule displayable
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `404`: Resource not found
- `default`: Server error occurred

---

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