---
title: Create or Replace Contexts
framework: ClassKit Catalog API
role: symbol
role_heading: Web Service Endpoint
platforms: [classkit 1.0+]
path: classkitcatalogapi/create-or-replace-contexts
---

# Create or Replace Contexts

Store information about the assignable content that your educational app provides.

## URL

POST https://classkit-catalog.apple.com/v1/contexts

## Query Parameters

environment: The development or production environment to use for this access. For details, see Testing Your ClassKit Catalog Implementation.

## Response Codes

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

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.

## See Also

### Declaring Contexts

- [Preparing Context Data](classkitcatalogapi/preparing-context-data.md)
- [Get a Context](classkitcatalogapi/get-a-context.md)
- [Delete a Context](classkitcatalogapi/delete-a-context.md)
- [Context](classkitcatalogapi/context.md)
- [ContextsRequest](classkitcatalogapi/contextsrequest.md)
- [ContextsResponse](classkitcatalogapi/contextsresponse.md)
