# POST /jobs/{id}/dismiss

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the jobs group.

Dismiss a failed job

- Who may call it: administrator, reseller, customer
- Token scope, any of: all
- Answers: 200 OK

The operation accepts only failed jobs and requires a token with the all scope. Anyone with access to a job through GET /jobs/{id} can dismiss it. The API returns 404 if the job does not exist and 403 if the caller lacks access to it.

The API returns the job with dismissed_at set, and the web interface stops counting it as needing attention. The job stays in the list with its result and log until it expires under jobs.keep_days. Repeating the dismissal leaves the job unchanged.

## As a command

- [urbestack-job-dismiss](https://urbestack.com/docs/commands/urbestack-job-dismiss.md): Dismisses the failed job specified by --id so it no longer needs attention in the web interface.

## Parameters

- `id` (path, integer, 1 or more, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X POST "$API/jobs/1/dismiss" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "job": {
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": 1,
    "created_by_name": "text",
    "dismissed_at": "text",
    "finished_at": "2026-09-09T10:15:04Z",
    "id": 1,
    "lane": "short",
    "log": "",
    "params": {},
    "progress": 100,
    "result": {},
    "started_at": "2026-09-09T10:15:01Z",
    "status": "queued",
    "type": "rebuild",
    "usual_seconds": 1
  }
}
```

## Errors

- 400: --id is required
- 400: Invalid id
- 401: Authentication required
- 403: Insufficient privileges
- 404: Job <id> not found
- 409: Job <id> did not fail: only a failed job is dismissed
