---
title: "Mark an error log as resolved"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › ErrorLogs

`PATCH /api/workspaces/{workspaceId}/error-logs/{id}/resolve`

## Authentication

- `ApiKeyAuth`, apiKey, in header, header `X-API-Key`, format `API_KEY`

## Path parameters

- `workspaceId` (`patch/api/workspaces/workspaceId/error-logs/id/resolve.path.workspaceId`; string, required)
- `id` (`patch/api/workspaces/workspaceId/error-logs/id/resolve.path.id`; string, required)

## Request body

- `resolution_note` (`patch/api/workspaces/workspaceId/error-logs/id/resolve.resolution_note`; string, optional)

## Example request

```json
{
  "resolution_note": "string"
}
```

## Code samples

### cURL

```bash
curl --request PATCH \
  --url 'https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs/<id>/resolve' \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <X-API-Key>' \
  --data '
{
  "resolution_note": "string"
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs/<id>/resolve';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json', 'X-API-Key': '<X-API-Key>'},
  body: JSON.stringify({resolution_note: 'string'})
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/workspaces/<workspaceId>/error-logs/<id>/resolve"

payload = { "resolution_note": "string" }
headers = {
    "Content-Type": "application/json",
    "X-API-Key": "<X-API-Key>"
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Error resolved

### 500

Internal server error

#### Example

```json
{
  "error": "Internal server error",
  "details": "string",
  "success": false
}
```

- `error` (`patch/api/workspaces/workspaceId/error-logs/id/resolve.response.500.error`; string, optional)
  - example `"Internal server error"`
- `details` (`patch/api/workspaces/workspaceId/error-logs/id/resolve.response.500.details`; string, optional)
- `success` (`patch/api/workspaces/workspaceId/error-logs/id/resolve.response.500.success`; boolean, optional)
  - example `false`


Source: https://developer.channelautomations.com/api/patch-api-workspaces-workspace-id-error-logs-id-resolve/index.md
