---
title: "course_job.completed"
description: "Delivered when course_job.completed occurs. Signed per the Standard Webhooks specification: verify the webhook-signature header over the exact bytes of webhook-id, webhook-timestamp and the raw body, and reject a timestamp more than five minutes from your own clock."
image: "https://docs.quirelms.com/og.png"
---

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

Path: Quire API

`POST course_job.completed`

_Webhook._

Delivered when course_job.completed occurs. Signed per the Standard Webhooks specification: verify the webhook-signature header over the exact bytes of webhook-id, webhook-timestamp and the raw body, and reject a timestamp more than five minutes from your own clock.

## Request body

_Required._

- `course_job.completed.id` (string, required) — Equal to the webhook-id header and to the outbox event identifier. Deduplicate on it.
- `course_job.completed.type` (string, required)
- `course_job.completed.version` (integer, required)
- `course_job.completed.occurred_at` (string, required)
  - format `date-time`
- `course_job.completed.tenant` (object, required)
  - `course_job.completed.tenant.id` (string, required)
  - `course_job.completed.tenant.slug` (string, required)
- `course_job.completed.subscription_id` (string, required)
- `course_job.completed.livemode` (boolean, required)
- `course_job.completed.data` (object, required)
  - `course_job.completed.data.course_id` (any of, required)
    - any of: `string`, `null`
  - `course_job.completed.data.issue_count` (integer, required)
    - min -9007199254740991; max 9007199254740991
  - `course_job.completed.data.job_id` (string, required)
    - format `uuid`; pattern `^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$`
  - `course_job.completed.data.kind` (string, required)
    - one of `"backup"`, `"restore"`, `"copy"`, `"import"`, `"reset"`, `"moodle_import"`, `"cc_import"`, `"cc_export"`, `"gradebook_export"`, `"report_export"`, `"roster_import"`, `"h5p_import"`
  - `course_job.completed.data.requested_by` (any of, required)
    - any of: `string`, `null`
  - `course_job.completed.data.target_course_id` (any of, required)
    - any of: `string`, `null`
- `course_job.completed.links` (map<string>, optional) — Where to read the current state of what the event is about.

## Example request

```json
{
  "id": "string",
  "type": "course_job.completed",
  "version": 1,
  "occurred_at": "2019-08-24T14:15:22Z",
  "tenant": {
    "id": "string",
    "slug": "string"
  },
  "subscription_id": "string",
  "livemode": true,
  "data": {
    "course_id": "5e757794-c815-4ccc-bf16-1010d8ef2347",
    "issue_count": -9007199254740991,
    "job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
    "kind": "backup",
    "requested_by": "cda0f200-65cd-4343-aedd-9c936b908826",
    "target_course_id": "8690fcc1-510f-46d3-85c1-0e9baa0564f1"
  },
  "links": {
    "property1": "http://example.com",
    "property2": "http://example.com"
  }
}
```

## Responses

### 2XX

Any 2xx acknowledges the delivery. A 410 disables the subscription. Anything else is retried with exponential backoff and full jitter over about 36 hours.


Source: https://docs.quirelms.com/api/webhooks/course_job.completed/index.md
