# Change webhooks id

Change a subscription: name, description, URL, the event list (present but empty is refused), status active|paused, and `auth`. Auth is pointer-sensitive — leaving it out keeps the receiver's stored credential, sending kind 'none' clears it — so a rename must not mention auth at all. Admin only; 409 on a duplicate name.

Access class: `workspace:admin`.

## Endpoint

`PATCH /v1/webhooks/{id}`

## Parameters

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

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "auth": {
      "credential": "string",
      "headerName": "string",
      "kind": "string"
    },
    "description": "string",
    "events": [
      "string"
    ],
    "name": "string",
    "status": "string",
    "url": "string"
  },
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "authHeaderName": "string",
    "authKind": "string",
    "createdAt": "string",
    "createdBy": 1,
    "description": "string",
    "events": [
      "string"
    ],
    "id": "",
    "name": "string",
    "secretHint": "string",
    "secretRotatedAt": "string",
    "status": "string",
    "updatedAt": "string",
    "url": "string"
  }
}
```

### 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"
}
```
