# Redirect to a presigned URL of a run's JSON Patch against the previous run

GET /v1/schedules/{id}/runs/{job_id}/diff: Redirect to a presigned URL of a run's JSON Patch against the previous run

```http
GET /v1/schedules/{id}/runs/{job_id}/diff
```

|  |  |
|---|---|
| Operation id | `getScheduleRunDiff` |
| Key scope | `read`: every key |
| Section | [Schedules](https://docs.kaab.ist/reference/api#schedules) |

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `id` | path | string | yes | pattern `^sch_[0-9a-hjkmnp-tv-z]{26}$` |
| `job_id` | path | string | yes | pattern `^job_[0-9a-hjkmnp-tv-z]{26}$` |

## Example request

```bash
curl -X GET "https://api.kaab.ist/v1/schedules/{id}/runs/{job_id}/diff" \
  -H "Authorization: Bearer $KAAB_API_KEY"
```

## Responses

### 302

Presigned diff URL, valid 15 minutes

## Errors

Every error answers with the [error envelope](https://docs.kaab.ist/reference/api/schemas/error-response); its `code` is one of the [error codes](https://docs.kaab.ist/reference/codes#errors).

| Status | When |
|---|---|
| 400 | `request_invalid`: request validation failed |
| 401 | Missing or invalid API key |
| 403 | The key's scope does not cover this operation |
| 404 | Resource not found |
| 429 | Rate limited; see `Retry-After` |
| 500 | `internal`: unexpected server error |
