# Change a stage's SLA

Admin only. A whole replacement, not a merge: send what the read answered with your changes folded in, because merging would make "clear the working days" and "leave the working days alone" the same request. Setting active to false parks the policy, which then measures nothing and rings nothing without losing what was promised.

Access class: `workspace:admin`.

## Endpoint

`PATCH /v1/workspace/sla-policies/{id}`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "active": true,
    "businessHoursOnly": true,
    "definitionKey": "string",
    "stage": "string",
    "targetMinutes": 1,
    "timezone": "string",
    "warningMinutes": 1,
    "workdayEndMinute": 1,
    "workdayStartMinute": 1,
    "workdays": [
      1
    ]
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "active": true,
    "businessHoursOnly": true,
    "createdAt": "string",
    "createdBy": 1,
    "definitionKey": "string",
    "id": "",
    "stage": "string",
    "targetMinutes": 1,
    "timezone": "string",
    "updatedAt": "string",
    "warningMinutes": 1,
    "workdayEndMinute": 1,
    "workdayStartMinute": 1,
    "workdays": [
      1
    ]
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
