Create or Replace Contexts
Store information about the assignable content that your educational app provides.
URL
POST https://classkit-catalog.apple.com/v1/contextsQuery Parameters
| Name | Type | Description |
|---|---|---|
environment Required | string | The development or production environment to use for this access. For details, see Testing Your ClassKit Catalog Implementation. |
Response Codes
| Status | Reason | Type | Description |
|---|---|---|---|
| 201 | Created | The request succeeded. | |
| 202 | Accepted | The API accepted but hasn’t completed the request. To ask for a status update later, see Get Status. | |
| 400 | Bad Request | The request contained an error. | |
| 403 | Forbidden | The request wasn’t authorized. |
Discussion
Define parent contexts of any of the contexts defined in this call, either in a previous call to the same endpoint, or as part of the same call.
You can specify up to 200 contexts for any one call to this endpoint. The call overwrites any contexts that already exist with the same identifier path and locale.
Example
HTTP Body
The context or contexts to add.