<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "ClassKitCatalogAPI",
  "identifier" : "/documentation/ClassKitCatalogAPI/Create-or-Replace-Contexts",
  "metadataVersion" : "0.1.0",
  "role" : "Web Service Endpoint",
  "symbol" : {
    "kind" : "Web Service Endpoint",
    "modules" : [
      "ClassKit Catalog API"
    ],
    "preciseIdentifier" : "rest:classkit_api:post:v1-contexts"
  },
  "title" : "Create or Replace Contexts"
}
-->

# Create or Replace Contexts

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

## 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

**Request:**

```
{
  "contexts": [
    {
      "metadata": {
        "locale": "en-us",
        "minimumBundleVersion": "1.0.0",
        "keywords": [
          "Mathematics",
          "Fractions",
          "Quiz",
          "Grade 5",
          "Grade 6",
          "Addition",
          "Subtraction"
        ],
        "presentableLocales": [
          "mul"
        ]
      },
      "data": {
        "identifierPath": [
          "com.apple.www.Quizzer",
          "Quiz Catalog",
          "Fun Math Quiz"
        ],
        "title": "Fractions Quiz 01",
        "type": "quiz",
        "summary": "This quiz tests your ability to add and subtract fractions.",
        "thumbnailId": "math.png",
        "displayOrder": "1",
        "topic": "math",
        "suggestedAge": [
          0,
          9223372036854775807
        ],
        "suggestedCompletionTime": [
          0,
          0
        ],
        "isAssignable": true,
        "progressReportingCapabilities": [
          {
            "kind": "score",
            "details": "This reports a student’s score on the quiz."
          },
          {
            "kind": "duration",
            "details": "This tracks the time elapsed on the quiz."
          }
        ]
      }
    },
    {
      "metadata": {
        "locale": "es-us",
        "minimumBundleVersion": "1.0.0",
        "keywords": [
          "Matemáticas",
          "Fracciones",
          "Examen",
          "Grado 5",
          "Grado 6",
          "Adición",
          "Sustracción"
        ],
        "presentableLocales": [
          "es-us"
        ]
      },
      "data": {
        "identifierPath": [
          "com.apple.www.Quizzer",
          "Quiz Catalog",
          "Fun Math Quiz"
        ],
        "title": "Quiz Fracciones 01",
        "type": "quiz",
        "summary": "Este cuestionario evaluará su capacidad para sumar y restar fracciones.",
        "thumbnailId": "math.png",
        "displayOrder": "1",
        "topic": "math",
        "suggestedAge": [
          0,
          9223372036854775807
        ],
        "suggestedCompletionTime": [
          0,
          0
        ],
        "isAssignable": true,
        "progressReportingCapabilities": [
          {
            "kind": "score",
            "details": "Esto informa el puntaje de un estudiante en el cuestionario."
          },
          {
            "kind": "duration",
            "details": "Esto rastrea el tiempo transcurrido en la prueba."
          }
        ]
      }
    },
    {
      "metadata": {
        "locale": "en-us",
        "presentableLocales": [
          "mul"
        ]
      },
      "data": {
        "identifierPath": [
          "com.apple.www.Quizzer",
          "Quiz Catalog"
        ],
        "title": "Quiz Catalog",
        "type": "section",
        "summary": "This is a catalog of quizzes for you to complete.",
        "thumbnailId": "catalog.png",
        "displayOrder": "1"
      }
    },
    {
      "metadata": {
        "locale": "es-us",
        "presentableLocales": [
          "es-us"
        ]
      },
      "data": {
        "identifierPath": [
          "com.apple.www.Quizzer",
          "Quiz Catalog"
        ],
        "title": "Catálogo de Cuestionarios",
        "type": "section",
        "summary": "Este es un catálogo de cuestionarios para completar.",
        "thumbnailId": "catalog.png",
        "displayOrder": "1"
      }
    },
    {
      "metadata": {
        "locale": "es-us"
      },
      "data": {
        "identifierPath": [
          "com.apple.www.Quizzer"
        ],
        "title": "Quizzer",
        "type": "app"
      }
    },
    {
      "metadata": {
        "locale": "en-us",
        "presentableLocales": [
          "mul"
        ]
      },
      "data": {
        "identifierPath": [
          "com.apple.www.Quizzer"
        ],
        "title": "Quizzer",
        "type": "app"
      }
    }
  ]
}
```

**Response:**

```json

```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)