# Unlink an issue from an error

Unlink an issue from an error. The issue itself stays in Linear or Jira, unchanged.

[endpoint]
method = "DELETE"
base_url = "https://errors.betterstack.com"
path = "/api/v4/applications/{application_id}/errors/{error_id}/issues/{id}"

[[path_param]]
name = "application_id"
required = true
type = "string"
description = "The ID of the application, from [List applications](/docs/errors/api/applications/list/)."

[[path_param]]
name = "error_id"
required = true
type = "string"
description = "The error's `id`, from [List errors](/docs/errors/api/errors/list/). Can contain dots."

[[path_param]]
name = "id"
required = true
type = "string"
description = "The linked issue, as its `id` or `label`, such as `ENG-123`, from `linked_issues` in [Get an error](/docs/errors/api/errors/get/)."

[[query_param]]
name = "team_id"
type = "string"
description = "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 204
description = "The issue is unlinked from the error. The response has no body."

[[response]]
status = 401
description = "The API token is missing or invalid."
body = '''
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/logs/api/getting-started/#obtaining-a-logtail-api-token"
}
'''

[[response]]
status = 403
description = "The token is read-only, or its scopes don't permit the action."
body = '''
{
  "errors": "This API token is read-only and cannot be used for write operations."
}
'''

[[response]]
status = 404
description = "No application with that ID, no error with that ID in it, or no linked issue matches `id`."
[/responses]

#### Example cURL

```shell
[label Unlink an issue]
curl --request DELETE \
  --url https://errors.betterstack.com/api/v4/applications/1234/errors/6f1c2b9a8e4d7f3012ab45cd/issues/ENG-123 \
  --header "Authorization: Bearer $TOKEN"
```
