{"items":[{"type":"link","label":"Content Types API","link":"/sai/content-types-api","routeSlug":"/sai/content-types-api","content":{"contentType":"overview","meta":{"name":"Content Types API"},"children":[{"nodeType":"container","panels":[{"title":"Download OpenAPI description","titleTranslationKey":"download.description.title","children":[{"kind":"download","label":"index.json","url":"/_bundle/sai/content-types-api/index.json?download"},{"kind":"download","label":"index.yaml","url":"/_bundle/sai/content-types-api/index.yaml?download"}]},{"title":"Overview","titleTranslationKey":"info.title","children":[{"kind":"externallink","title":"License","titleTranslationKey":"info.license","label":"Apache 2.0","url":"https://www.apache.org/licenses/LICENSE-2.0"}]},{"title":"Languages","titleTranslationKey":"languages.title","children":[{"kind":"languages","options":[{"key":"curl","title":"curl","lang":"curl"},{"key":"javascript","title":"JavaScript","lang":"JavaScript"},{"key":"node","title":"Node.js","lang":"Node.js"},{"key":"python","title":"Python","lang":"Python"},{"key":"java","title":"Java","lang":"Java"},{"key":"csharp","title":"C#","lang":"C#"},{"key":"php","title":"PHP","lang":"PHP"},{"key":"go","title":"Go","lang":"Go"},{"key":"ruby","title":"Ruby","lang":"Ruby"},{"key":"r","title":"R","lang":"R"},{"key":"payload","title":"Payload","lang":"Payload"}]}]},{"title":"Servers","titleTranslationKey":"servers.title","children":[{"kind":"servers","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"mode":"default"}]}],"children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"header","level":1,"label":"Content Types API (v1)","showPageActions":true},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Use the SitecoreAI Content Types API to manage content types. A content type is a template that defines the structure of content items."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"This REST API lets you:"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":false,"marker":"-"},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieve content types."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create content types."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Update content types."},"children":[]}]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieve the field source configuration for a content model, if one exists."},"children":[]}]}]}]}]}]}],"sectionId":"/sai/content-types-api"}],"sectionId":"/sai/content-types-api"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":1,"id":"section/authorization"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Authorization"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"To authorize your requests, use environment automation client credentials and generate a JSON Web Token (JWT)."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Note: To create client credentials, you must be an "},"children":[]},{"$$mdtype":"Node","type":"link","inline":true,"attributes":{"href":"https://doc.sitecore.com/portal/en/developers/sitecore-cloud-portal/roles.html"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Organization Admin"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" or Organization Owner."},"children":[]}]}]}]}],"sectionId":"/sai/content-types-api/section/authorization"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"section/authorization/create-an-automation-client"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create an automation client"},"children":[]}]}]},{"$$mdtype":"Node","type":"list","attributes":{"ordered":true,"marker":"."},"children":[{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"In the Sitecore Cloud Portal, open the Deploy app."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Click "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Credentials"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Environment"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create credentials"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" > "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Automation"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Fill out the automation client details, then click "},"children":[]},{"$$mdtype":"Node","type":"strong","inline":true,"attributes":{"marker":"**"},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Create"},"children":[]}]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"."},"children":[]}]}]},{"$$mdtype":"Node","type":"item","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Copy the client ID and the client secret because you won't be able to view them again in the Deploy app. You'll use them to request a JWT."},"children":[]}]}]}]}]}],"sectionId":"/sai/content-types-api/section/authorization/create-an-automation-client"}],"sectionId":"/sai/content-types-api/section/authorization/create-an-automation-client"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"section/authorization/request-a-jwt"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Request a JWT"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Run the following cURL command to request a JWT. Replace the placeholder values with your client ID and client secret."},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"  curl -X POST 'https://auth.sitecorecloud.io/oauth/token' \\\n  --header 'Content-Type: application/x-www-form-urlencoded' \\\n  --data-urlencode 'client_id={YOUR_CLIENT_ID}' \\\n  --data-urlencode 'client_secret={YOUR_CLIENT_SECRET}' \\\n  --data-urlencode 'grant_type=client_credentials' \\\n  --data-urlencode 'audience=https://api.sitecorecloud.io'\n","language":"curl"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"  curl -X POST 'https://auth.sitecorecloud.io/oauth/token' \\\n  --header 'Content-Type: application/x-www-form-urlencoded' \\\n  --data-urlencode 'client_id={YOUR_CLIENT_ID}' \\\n  --data-urlencode 'client_secret={YOUR_CLIENT_SECRET}' \\\n  --data-urlencode 'grant_type=client_credentials' \\\n  --data-urlencode 'audience=https://api.sitecorecloud.io'\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"In the response, the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"access_token"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" key contains the JWT:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"  {\n    \"access_token\": \"{YOUR_JWT}\",\n    \"scope\": \"xmcloud.cm:admin\",\n    \"expires_in\": 86400,\n    \"token_type\": \"Bearer\"\n  }\n","language":"json"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"  {\n    \"access_token\": \"{YOUR_JWT}\",\n    \"scope\": \"xmcloud.cm:admin\",\n    \"expires_in\": 86400,\n    \"token_type\": \"Bearer\"\n  }\n"},"children":[]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The JWT expires in 24 hours. If your requests unexpectedly return a response with status "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"401 Unauthorized"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", request a new JWT by repeating this "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" request."},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"We recommend that you cache the JWT for 24 hours to avoid repeating this "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"POST"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" request while the JWT is still valid."},"children":[]}]}]}]}],"sectionId":"/sai/content-types-api/section/authorization/request-a-jwt"}],"sectionId":"/sai/content-types-api/section/authorization/request-a-jwt"},{"nodeType":"overview-section-wrapper","children":[{"nodeType":"overview-section-wrapper","children":[{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"heading","attributes":{"level":2,"id":"section/authorization/include-the-jwt-in-the-request-header"},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Include the JWT in the request header"},"children":[]}]}]},{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"You can now start making REST API requests. You must include the JWT in the request header of every request. For example:"},"children":[]}]}]},{"$$mdtype":"Node","type":"fence","attributes":{"content":"curl -X GET '{YOUR_BASE_URL}/...' \\\n-H 'Authorization: Bearer {YOUR_JWT}' \\\n-H 'Accept: application/json'\n","language":"curl"},"children":[{"$$mdtype":"Node","type":"text","attributes":{"content":"curl -X GET '{YOUR_BASE_URL}/...' \\\n-H 'Authorization: Bearer {YOUR_JWT}' \\\n-H 'Accept: application/json'\n"},"children":[]}]}]}],"sectionId":"/sai/content-types-api/section/authorization/include-the-jwt-in-the-request-header"}],"sectionId":"/sai/content-types-api/section/authorization/include-the-jwt-in-the-request-header"}]}]}},{"type":"group","label":"Authorization","link":"/sai/content-types-api/section/authorization","routeSlug":"/sai/content-types-api/section/authorization","items":[{"type":"link","label":"Create an automation client","link":"/sai/content-types-api/section/authorization/create-an-automation-client","routeSlug":"/sai/content-types-api/section/authorization/create-an-automation-client","content":null},{"type":"link","label":"Request a JWT","link":"/sai/content-types-api/section/authorization/request-a-jwt","routeSlug":"/sai/content-types-api/section/authorization/request-a-jwt","content":null},{"type":"link","label":"Include the JWT in the request header","link":"/sai/content-types-api/section/authorization/include-the-jwt-in-the-request-header","routeSlug":"/sai/content-types-api/section/authorization/include-the-jwt-in-the-request-header","content":null}],"content":null},{"type":"group","label":"Content Types","link":"/sai/content-types-api/content-types","routeSlug":"/sai/content-types-api/content-types","items":[{"label":"Retrieve a content type","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/retrievecontentmodel","routeSlug":"/sai/content-types-api/content-types/retrievecontentmodel","metadata":{"seo":{"title":"Retrieve a content type","description":"Retrieves details about a content type."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"RetrieveContentModel","name":"Retrieve a content type","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Retrieve a content type","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Retrieves details about a content type."},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"modelId","in":"path","schemaId":"schema_1335","description":"The content type identifier.","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/content-types/{modelId}","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[{"name":"modelId","in":"path","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08","schemaId":"schema_1335"}],"query":[{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"responseCodes":["200","400","401","404"],"pointer":"/api/v1/content-types/{modelId}","href":"content-types/retrievecontentmodel","openApiOperationId":"RetrieveContentModel","summary":"Retrieve a content type"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful operation","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}},"schemaId":"components/schemas/ContentModel"},{"code":"400","description":"One or more validation errors occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/401/content/application~1json/example"]},{"code":"404","description":"Invalid model ID","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/404/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/404/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ContentModel","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/401/content/application~1json/example"]}}},{"code":"404","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/get/responses/404/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/retrievecontentmodel"}],"panels":[]}]},"httpPath":"/api/v1/content-types/{modelId}"},{"label":"Update a content type","deprecated":false,"httpVerb":"patch","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/patchcontentmodel","routeSlug":"/sai/content-types-api/content-types/patchcontentmodel","metadata":{"seo":{"title":"Update a content type","description":"Update a content type."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"PatchContentModel","name":"Update a content type","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/patch","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update a content type","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Update a content type."},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"modelId","in":"path","schemaId":"schema_1335","description":"The content type identifier.","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/patch/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/patch/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"text/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/UpdateContentModelInput"}},"schemaId":"components/schemas/UpdateContentModelInput","pointer":"/paths/~1api~1v1~1content-types~1{modelId}/patch/requestBody","description":"Input data with details of the content type to be updated."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PATCH","path":"/api/v1/content-types/{modelId}","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[{"name":"modelId","in":"path","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08","schemaId":"schema_1335"}],"query":[{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"text/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/UpdateContentModelInput"}},"responseCodes":["202","400","401"],"pointer":"/api/v1/content-types/{modelId}","href":"content-types/patchcontentmodel","openApiOperationId":"PatchContentModel","summary":"Update a content type"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"schemaId":"components/schemas/UpdateContentModelInput","mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"text/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/UpdateContentModelInput"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"202","description":"Successful operation","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}},"schemaId":"components/schemas/ContentModel"},{"code":"400","description":"One or more validation errors occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/401/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/patch/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"202","schemaId":"components/schemas/ContentModel","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/patch/responses/401/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/patchcontentmodel"}],"panels":[]}]},"httpPath":"/api/v1/content-types/{modelId}"},{"label":"Update a content type","deprecated":false,"httpVerb":"put","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/updatecontentmodel","routeSlug":"/sai/content-types-api/content-types/updatecontentmodel","metadata":{"seo":{"title":"Update a content type","description":"Updates a whole content type. Existing fields that aren't provided in the request will be removed."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"UpdateContentModel","name":"Update a content type","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/put","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Update a content type","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Updates a whole content type. Existing fields that aren't provided in the request will be removed."},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"modelId","in":"path","schemaId":"schema_1335","description":"The content type identifier.","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/put/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/put/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"text/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/UpdateContentModelInput"}},"schemaId":"components/schemas/UpdateContentModelInput","pointer":"/paths/~1api~1v1~1content-types~1{modelId}/put/requestBody","description":"Input data with details of the content type to be updated. Name is a required field."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"PUT","path":"/api/v1/content-types/{modelId}","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[{"name":"modelId","in":"path","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08","schemaId":"schema_1335"}],"query":[{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"text/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/UpdateContentModelInput"}},"responseCodes":["202","400","401"],"pointer":"/api/v1/content-types/{modelId}","href":"content-types/updatecontentmodel","openApiOperationId":"UpdateContentModel","summary":"Update a content type"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"schemaId":"components/schemas/UpdateContentModelInput","mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"text/json":{"schemaId":"components/schemas/UpdateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/UpdateContentModelInput"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"202","description":"Successful operation","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}},"schemaId":"components/schemas/ContentModel"},{"code":"400","description":"One or more validation errors occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/401/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/put/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"202","schemaId":"components/schemas/ContentModel","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/put/responses/401/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/updatecontentmodel"}],"panels":[]}]},"httpPath":"/api/v1/content-types/{modelId}"},{"label":"Delete a content type","deprecated":false,"httpVerb":"delete","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/deletecontentmodel","routeSlug":"/sai/content-types-api/content-types/deletecontentmodel","metadata":{"seo":{"title":"Delete a content type","description":"Deletes a content type."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"DeleteContentModel","name":"Delete a content type","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/delete","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Delete a content type","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Deletes a content type."},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"modelId","in":"path","schemaId":"schema_1335","description":"The content type identifier.","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/delete/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/delete/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"DELETE","path":"/api/v1/content-types/{modelId}","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[{"name":"modelId","in":"path","required":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08","schemaId":"schema_1335"}],"query":[{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"responseCodes":["204","400","401"],"pointer":"/api/v1/content-types/{modelId}","href":"content-types/deletecontentmodel","openApiOperationId":"DeleteContentModel","summary":"Delete a content type"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"204","description":"Successful operation"},{"code":"400","description":"One or more validation errors occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/401/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}/delete/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"204"},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}/delete/responses/401/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/deletecontentmodel"}],"panels":[]}]},"httpPath":"/api/v1/content-types/{modelId}"},{"label":"Get content type field source","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/retrievefieldsource","routeSlug":"/sai/content-types-api/content-types/retrievefieldsource","metadata":{"seo":{"title":"Get content type field source","description":"Retrieves one page of source items for a specified field in a selected content type. Pass the response continuationToken in the x-sc-continuationheader to retrieve the next page. A field source can contain multiple Sitecore query segments, for examplequery:$site/*[@@name='Data']|query:$sharedSites/*[@@name='Data']. Example hand-off header:x-sc-continuation: eyJzb3VyY2VJbmRleCI6MSwibmV4dEl0ZW0iOjI1fQ==. Each returned item includessourceIndex, the zero-based segment from which it originated."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"RetrieveFieldSource","name":"Get content type field source","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get content type field source","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves one page of source items for a specified field in a selected content type. Pass the response "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"continuationToken"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" in the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"x-sc-continuation"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"header to retrieve the next page. A field source can contain multiple Sitecore query segments, for example"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"query:$site/*[@@name='Data']|query:$sharedSites/*[@@name='Data']"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Example hand-off header:"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"x-sc-continuation: eyJzb3VyY2VJbmRleCI6MSwibmV4dEl0ZW0iOjI1fQ=="},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":". Each returned item includes"},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"sourceIndex"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":", the zero-based segment from which it originated."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"modelId","in":"path","schemaId":"schema_1335","description":"The content type identifier.","required":true,"example":"model-id"},{"name":"fieldId","in":"path","schemaId":"schema_1335","description":"The field identifier.","required":true,"example":"field-id"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"siteId","in":"query","schemaId":"schema_1335","description":"The site identifier.","example":"site-id"},{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"},{"name":"pageSize","in":"query","schemaId":"schema_1336","description":"The maximum number of source items to return.","example":10}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"x-sc-continuation","in":"header","schemaId":"schema_1335","description":"The continuation token returned by a previous response.","example":"token-from-previous-response"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/content-types/{modelId}/{fieldId}/source","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[{"name":"modelId","in":"path","required":true,"example":"model-id","schemaId":"schema_1335"},{"name":"fieldId","in":"path","required":true,"example":"field-id","schemaId":"schema_1335"}],"query":[{"name":"siteId","in":"query","example":"site-id","schemaId":"schema_1335"},{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"},{"name":"pageSize","in":"query","example":10,"schemaId":"schema_1336"}],"querystring":[],"header":[{"name":"x-sc-continuation","in":"header","example":"token-from-previous-response","schemaId":"schema_1335"}],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"responseCodes":["200","400","401","404"],"pointer":"/api/v1/content-types/{modelId}/{fieldId}/source","href":"content-types/retrievefieldsource","openApiOperationId":"RetrieveFieldSource","summary":"Get content type field source"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FieldSourceModelPaged"}},"schemaId":"components/schemas/FieldSourceModelPaged"},{"code":"400","description":"Bad Request","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/401/content/application~1json/example"]},{"code":"404","description":"Not Found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/404/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/404/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/FieldSourceModelPaged","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/FieldSourceModelPaged"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/401/content/application~1json/example"]}}},{"code":"404","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/404/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/retrievefieldsource"}],"panels":[]}]},"httpPath":"/api/v1/content-types/{modelId}/{fieldId}/source"},{"label":"List content types","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/retrievecontenttypes","routeSlug":"/sai/content-types-api/content-types/retrievecontenttypes","metadata":{"seo":{"title":"List content types","description":"Retrieves a paginated list of content types. Optionally filter results using a search query, or retrieve specific content types by supplying one or more id parameters.The search and id parameters are mutually exclusive. When id is supplied, only the first 50 IDs are processed and pagination is disabled."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"RetrieveContentTypes","name":"List content types","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List content types","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves a paginated list of content types. Optionally filter results using a search query, or retrieve specific content types by supplying one or more id parameters."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"The "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"search"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" and "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" parameters are mutually exclusive. When id is supplied, only the first 50 IDs are processed and pagination is disabled."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier.","example":"main"},{"name":"search","in":"query","schemaId":"schema_1335","description":"An optional search string used to filter content types by name or other indexed fields.","example":"page"},{"name":"id","in":"query","schemaId":"schema_1337","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"One or more content type IDs to retrieve. Specify multiple "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" query parameters to return specific content types."},"children":[]}]}]}],"example":["497f6eca-6276-4993-bfeb-53cbbbba6f08"]},{"name":"rootItemId","in":"query","schemaId":"schema_1337","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"One or more root item IDs used to limit content type results to a specific content hierarchy. Results include content models found under any of the specified root items and their descendants. "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"rootItemId"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is ignored when "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"id"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" is supplied."},"children":[]}]}]}],"example":["497f6eca-6276-4993-bfeb-53cbbbba6f08"]},{"name":"pageSize","in":"query","schemaId":"schema_1336","description":"The maximum number of items to return in a non-ID list response.","example":10}],"pointer":"/paths/~1api~1v1~1content-types/get/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"x-sc-continuation","in":"header","schemaId":"schema_1335","description":"An optional opaque token returned from a previous paginated call. It is ignored when id is supplied.","example":"MXx8fDEwMA=="}],"pointer":"/paths/~1api~1v1~1content-types/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/content-types","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[],"query":[{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"},{"name":"search","in":"query","example":"page","schemaId":"schema_1335"},{"name":"id","in":"query","example":["497f6eca-6276-4993-bfeb-53cbbbba6f08"],"schemaId":"schema_1337"},{"name":"rootItemId","in":"query","example":["497f6eca-6276-4993-bfeb-53cbbbba6f08"],"schemaId":"schema_1337"},{"name":"pageSize","in":"query","example":10,"schemaId":"schema_1336"}],"querystring":[],"header":[{"name":"x-sc-continuation","in":"header","example":"MXx8fDEwMA==","schemaId":"schema_1335"}],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"responseCodes":["200","400","401"],"pointer":"/api/v1/content-types","href":"content-types/retrievecontenttypes","openApiOperationId":"RetrieveContentTypes","summary":"List content types"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful operation","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModelsList"}},"schemaId":"components/schemas/ContentModelsList"},{"code":"400","description":"One or more validation errors occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/401/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/ContentModelsList","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModelsList"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/get/responses/401/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/retrievecontenttypes"}],"panels":[]}]},"httpPath":"/api/v1/content-types"},{"label":"Create a content type","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/createcontentmodel","routeSlug":"/sai/content-types-api/content-types/createcontentmodel","metadata":{"seo":{"title":"Create a content type","description":"Creates a content type."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"CreateContentModel","name":"Create a content type","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Create a content type","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Creates a content type."},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"}],"pointer":"/paths/~1api~1v1~1content-types/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","required":true,"mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateContentModelInput"},"text/json":{"schemaId":"components/schemas/CreateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/CreateContentModelInput"}},"schemaId":"components/schemas/CreateContentModelInput","pointer":"/paths/~1api~1v1~1content-types/post/requestBody","description":"Input data with details of the content type to be created."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/content-types","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[],"query":[{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/CreateContentModelInput"},"text/json":{"schemaId":"components/schemas/CreateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/CreateContentModelInput"}},"responseCodes":["201","400","401"],"pointer":"/api/v1/content-types","href":"content-types/createcontentmodel","openApiOperationId":"CreateContentModel","summary":"Create a content type"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"schemaId":"components/schemas/CreateContentModelInput","mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/CreateContentModelInput"},"text/json":{"schemaId":"components/schemas/CreateContentModelInput"},"application/*+json":{"schemaId":"components/schemas/CreateContentModelInput"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"201","description":"Successful operation","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}},"schemaId":"components/schemas/ContentModel"},{"code":"400","description":"One or more validation errors occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/401/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"201","schemaId":"components/schemas/ContentModel","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ContentModel"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types/post/responses/401/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/createcontentmodel"}],"panels":[]}]},"httpPath":"/api/v1/content-types"},{"label":"List validation rules","deprecated":false,"httpVerb":"get","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/retrievevalidationrules","routeSlug":"/sai/content-types-api/content-types/retrievevalidationrules","metadata":{"seo":{"title":"List validation rules","description":"Fetches the list of available validation rules."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"RetrieveValidationRules","name":"List validation rules","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types~1validation-rules/get","hasSamples":false},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"List validation rules","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":"Fetches the list of available validation rules."},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"}],"pointer":"/paths/~1api~1v1~1content-types~1validation-rules/get/parameters"}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"GET","path":"/api/v1/content-types/validation-rules","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[],"query":[{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"}],"querystring":[],"header":[],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"responseCodes":["200","400","401"],"pointer":"/api/v1/content-types/validation-rules","href":"content-types/retrievevalidationrules","openApiOperationId":"RetrieveValidationRules","summary":"List validation rules"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"Successful operation","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1338"}},"schemaId":"schema_1338"},{"code":"400","description":"One or more validation errors occurred","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/401/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types~1validation-rules/get/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"schema_1338","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"schema_1338"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1validation-rules/get/responses/401/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/retrievevalidationrules"}],"panels":[]}]},"httpPath":"/api/v1/content-types/validation-rules"},{"label":"Get content type field sources","deprecated":false,"httpVerb":"post","isAdditionalOperation":false,"isWebhook":false,"type":"link","link":"/sai/content-types-api/content-types/retrievefieldsources","routeSlug":"/sai/content-types-api/content-types/retrievefieldsources","metadata":{"seo":{"title":"Get content type field sources","description":"Retrieves source items for multiple fields in a specified content type. Returns the source items page and a continuation token for the next field page.Pass a field response's continuationToken to the single-field GET endpoint 'Get content type field source' to continue that field.Pass the top-level continuationToken to this endpoint to continue the requested field collection via the x-sc-continuation header."}},"content":{"contentType":"item","itemVariant":"httpItem","meta":{"sourceId":"RetrieveFieldSources","name":"Get content type field sources","isWebhook":false,"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1sources/post","hasSamples":true},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Get content type field sources","isWebhook":false,"showPageActions":true}],"panels":[]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Request","labelTranslationKey":"request","deepLinkSuffix":"request"},{"nodeType":"markdoc","content":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Retrieves source items for multiple fields in a specified content type. Returns the source items page and a continuation token for the next field page."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Pass a field response's "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"continuationToken"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to the single-field GET endpoint 'Get content type field source' to continue that field."},"children":[]},{"$$mdtype":"Node","type":"softbreak","inline":true,"attributes":{},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Pass the top-level "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"continuationToken"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" to this endpoint to continue the requested field collection via the "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"x-sc-continuation"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" header."},"children":[]}]}]}]},{"nodeType":"security","requirements":[{"schemes":[{"name":"Bearer","scopes":[],"type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}]}]},{"nodeType":"item-content","variant":"path","label":"Path","labelTranslationKey":"path","parameters":[{"name":"modelId","in":"path","schemaId":"schema_1335","description":"The content type identifier.","required":true,"example":"model-id"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1sources/post/parameters"},{"nodeType":"item-content","variant":"query","label":"Query","labelTranslationKey":"query","parameters":[{"name":"siteId","in":"query","schemaId":"schema_1335","description":"The site identifier.","example":"site-id"},{"name":"environmentId","in":"query","schemaId":"schema_1335","description":"The environment identifier. Defaults to \"main\". Currently only \"main\" is supported.","example":"main"},{"name":"pageSize","in":"query","schemaId":"schema_1336","description":"The maximum number of fields to return.","example":10},{"name":"sourcePageSize","in":"query","schemaId":"schema_1336","description":"The maximum number of source items to return per field.","example":10}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1sources/post/parameters"},{"nodeType":"item-content","variant":"headers","label":"Headers","labelTranslationKey":"header","parameters":[{"name":"x-sc-continuation","in":"header","schemaId":"schema_1335","description":"The continuation token returned by a previous response.","example":"token-from-previous-response"}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1sources/post/parameters"},{"nodeType":"item-content","variant":"body","label":"Request Body","labelTranslationKey":"body","mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/BulkFieldSourceInput"},"text/json":{"schemaId":"components/schemas/BulkFieldSourceInput"},"application/*+json":{"schemaId":"components/schemas/BulkFieldSourceInput"}},"schemaId":"components/schemas/BulkFieldSourceInput","pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1sources/post/requestBody","description":"The field identifiers to resolve, in request order."}],"panels":[{"children":[{"kind":"code-sample","source":{"kind":"code-sample","operationType":"http","method":"POST","path":"/api/v1/content-types/{modelId}/sources","servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"parameters":{"path":[{"name":"modelId","in":"path","required":true,"example":"model-id","schemaId":"schema_1335"}],"query":[{"name":"siteId","in":"query","example":"site-id","schemaId":"schema_1335"},{"name":"environmentId","in":"query","example":"main","schemaId":"schema_1335"},{"name":"pageSize","in":"query","example":10,"schemaId":"schema_1336"},{"name":"sourcePageSize","in":"query","example":10,"schemaId":"schema_1336"}],"querystring":[],"header":[{"name":"x-sc-continuation","in":"header","example":"token-from-previous-response","schemaId":"schema_1335"}],"cookie":[]},"security":[{"schemes":[{"id":"Bearer","type":"http","scheme":"Bearer"}],"scopes":[]}],"requestBody":{"application/json":{"schemaId":"components/schemas/BulkFieldSourceInput"},"text/json":{"schemaId":"components/schemas/BulkFieldSourceInput"},"application/*+json":{"schemaId":"components/schemas/BulkFieldSourceInput"}},"responseCodes":["200","400","401","404"],"pointer":"/api/v1/content-types/{modelId}/sources","href":"content-types/retrievefieldsources","openApiOperationId":"RetrieveFieldSources","summary":"Get content type field sources"},"isWebhook":false,"hideReplay":false,"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"schemaId":"components/schemas/BulkFieldSourceInput","mediaTypes":["application/json","text/json","application/*+json"],"mediaTypeSchemas":{"application/json":{"schemaId":"components/schemas/BulkFieldSourceInput"},"text/json":{"schemaId":"components/schemas/BulkFieldSourceInput"},"application/*+json":{"schemaId":"components/schemas/BulkFieldSourceInput"}},"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"header","level":4,"label":"Responses","labelTranslationKey":"responses","deepLinkSuffix":"responses"},{"nodeType":"item-content","variant":"responses","responses":[{"code":"200","description":"OK","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BulkFieldSourcesResponse"}},"schemaId":"components/schemas/BulkFieldSourcesResponse"},{"code":"400","description":"Bad Request","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/400/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/400/content/application~1json/example"]},{"code":"401","description":"Unauthorized","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/401/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/401/content/application~1json/example"]},{"code":"404","description":"Not Found","mediaType":"application/json","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/404/content/application~1json/example"]}},"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/404/content/application~1json/example"]}],"pointer":"/paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses"}],"panels":[{"children":[{"kind":"response","responseCodes":[{"code":"200","schemaId":"components/schemas/BulkFieldSourcesResponse","mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/BulkFieldSourcesResponse"}}},{"code":"400","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/400/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/400/content/application~1json/example"]}}},{"code":"401","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/401/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/401/content/application~1json/example"]}}},{"code":"404","schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/404/content/application~1json/example"],"mediaTypes":["application/json"],"mediaTypeContent":{"application/json":{"schemaId":"components/schemas/ProblemDetails","exampleIds":["paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/404/content/application~1json/example"]}}}],"examples":[]}]}]},{"nodeType":"container","children":[{"nodeType":"feedback","pageSlug":"/content-types/retrievefieldsources"}],"panels":[]}]},"httpPath":"/api/v1/content-types/{modelId}/sources"}],"content":{"contentType":"group","meta":{"name":"Content Types"},"children":[{"nodeType":"container","children":[{"nodeType":"header","level":2,"label":"Content Types","showPageActions":true},{"nodeType":"markdoc","content":"The Content Types API lets you manage content types."}],"panels":[{"children":[{"kind":"group-items","title":"Operations","titleTranslationKey":"operations","items":[{"title":"/api/v1/content-types/{modelId}","summary":"Retrieve a content type","prefix":{"name":"get","color":"get"},"badges":[],"link":"/content-types/retrievecontentmodel","deprecated":false},{"title":"/api/v1/content-types/{modelId}","summary":"Update a content type","prefix":{"name":"patch","color":"patch"},"badges":[],"link":"/content-types/patchcontentmodel","deprecated":false},{"title":"/api/v1/content-types/{modelId}","summary":"Update a content type","prefix":{"name":"put","color":"put"},"badges":[],"link":"/content-types/updatecontentmodel","deprecated":false},{"title":"/api/v1/content-types/{modelId}","summary":"Delete a content type","prefix":{"name":"delete","color":"delete"},"badges":[],"link":"/content-types/deletecontentmodel","deprecated":false},{"title":"/api/v1/content-types/{modelId}/{fieldId}/source","summary":"Get content type field source","prefix":{"name":"get","color":"get"},"badges":[],"link":"/content-types/retrievefieldsource","deprecated":false},{"title":"/api/v1/content-types","summary":"List content types","prefix":{"name":"get","color":"get"},"badges":[],"link":"/content-types/retrievecontenttypes","deprecated":false},{"title":"/api/v1/content-types","summary":"Create a content type","prefix":{"name":"post","color":"post"},"badges":[],"link":"/content-types/createcontentmodel","deprecated":false},{"title":"/api/v1/content-types/validation-rules","summary":"List validation rules","prefix":{"name":"get","color":"get"},"badges":[],"link":"/content-types/retrievevalidationrules","deprecated":false},{"title":"/api/v1/content-types/{modelId}/sources","summary":"Get content type field sources","prefix":{"name":"post","color":"post"},"badges":[],"link":"/content-types/retrievefieldsources","deprecated":false}]}]}]}]}}],"store":{"schemaStore":{"components/schemas/BaseContentModel":{"id":"components/schemas/BaseContentModel","kind":"json-schema","title":"BaseContentModel","data":{"type":"object","properties":{"id":{"type":"string","description":"The content type identifier.","nullable":true,"example":"d4e5f6a7-b8c9-0123-4567-89abcdef0123"},"name":{"type":"string","description":"The content type name.","nullable":true,"example":"Promo"},"system":{"$ref":"#/components/schemas/System"}},"additionalProperties":false,"description":"Simplified representation of a content type."}},"components/schemas/BulkFieldSourceInput":{"id":"components/schemas/BulkFieldSourceInput","kind":"json-schema","title":"BulkFieldSourceInput","data":{"required":["fieldIds"],"type":"object","properties":{"fieldIds":{"minItems":1,"type":"array","items":{"type":"string"},"description":"The content type field identifiers, in the order in which results should be returned.","example":["110D559F-DEA5-42EA-9C1C-8A5DF7E70EF","220D559F-DEA5-42EA-9C1C-8A5DF7E70EF"]}},"additionalProperties":false,"description":"Represents a request to retrieve sources for multiple content type fields."}},"components/schemas/BulkFieldSourceResponse":{"id":"components/schemas/BulkFieldSourceResponse","kind":"json-schema","title":"BulkFieldSourceResponse","data":{"type":"object","properties":{"fieldId":{"type":"string","description":"The content type field identifier.","nullable":true,"example":"field-id"},"data":{"type":"array","items":{"$ref":"#/components/schemas/FieldSourceElementPaged"},"description":"The source items in the field's first page.","nullable":true},"continuationToken":{"type":"string","description":"The opaque token for retrieving the next page for this field, or null when complete.","nullable":true,"example":"opaque-token-from-previous-response"}},"additionalProperties":false,"description":"Represents the source results for one field in a bulk source-resolution response."}},"components/schemas/BulkFieldSourcesResponse":{"id":"components/schemas/BulkFieldSourcesResponse","kind":"json-schema","title":"BulkFieldSourcesResponse","data":{"type":"object","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/BulkFieldSourceResponse"},"description":"The source results for fields in the current page.","nullable":true},"continuationToken":{"type":"string","description":"The opaque token for retrieving the next field page, or null when complete.","nullable":true,"example":"opaque-token-from-previous-response"}},"additionalProperties":false,"description":"Represents a paged bulk field-source response."}},"components/schemas/ContentField":{"id":"components/schemas/ContentField","kind":"json-schema","title":"ContentField","data":{"type":"object","properties":{"id":{"type":"string","nullable":true,"description":"Field identifier.","example":"110D559F-DEA5-42EA-9C1C-8A5DF7E70EF"},"name":{"type":"string","nullable":true,"description":"Field name.","example":"Title"},"type":{"type":"string","nullable":true,"description":"Field type.","example":"Single-Line Text"},"displayName":{"type":"string","nullable":true,"description":"Field display name.","example":"Page Title"},"value":{"$ref":"#/components/schemas/IFieldValue"},"source":{"type":"string","nullable":true,"description":"Source of the field.","example":"/sitecore/content/Home"},"helperText":{"type":"string","nullable":true,"description":"Help text for the field.","example":"Enter a concise title for the page"},"versioning":{"$ref":"#/components/schemas/FieldVersioning"},"description":{"type":"string","nullable":true,"description":"The description of the template field. This value is language specific.","example":"Main title shown in page header"},"helpLink":{"type":"string","nullable":true,"description":"The help link of the template field.","example":"https://doc.sitecore.com/field-guidance/title"},"sortOrder":{"type":"integer","format":"int32","nullable":true,"description":"The sort order.","example":100},"inherited":{"type":"boolean","description":"Whether this field is inherited from a base template.","example":true},"baseContentModel":{"type":"string","format":"uuid","nullable":true,"description":"The identifier of the base template this field is inherited from.","example":"76036f5e-cbce-46d1-af0a-4143f9b557aa"},"settings":{"type":"object","additionalProperties":{"type":"string"},"nullable":true,"description":"The settings for the field."},"validationRules":{"type":"array","items":{"type":"string"},"nullable":true,"description":"The validation rules assigned to the field as a list of validation rule item IDs","example":["{11111111-1111-1111-1111-111111111111}","{22222222-2222-2222-2222-222222222222}"]}},"additionalProperties":false}},"components/schemas/ContentModel":{"id":"components/schemas/ContentModel","kind":"json-schema","title":"ContentModel","data":{"type":"object","properties":{"description":{"type":"string","description":"The content type description.","nullable":true,"example":"Promo content type"},"baseContentTypes":{"type":"array","items":{"$ref":"#/components/schemas/BaseContentModel"},"description":"The base content types this content type inherits from.","nullable":true},"fieldGroups":{"type":"array","items":{"$ref":"#/components/schemas/FieldGroup"},"description":"The content type field groups.","nullable":true},"id":{"type":"string","description":"The content type identifier.","nullable":true,"example":"d4e5f6a7-b8c9-0123-4567-89abcdef0123"},"name":{"type":"string","description":"The content type name.","nullable":true,"example":"Promo"},"system":{"$ref":"#/components/schemas/System"}},"additionalProperties":false,"description":"content type"}},"components/schemas/ContentModelsList":{"id":"components/schemas/ContentModelsList","kind":"json-schema","title":"ContentModelsList","data":{"type":"object","properties":{"count":{"type":"integer","description":"Total count of content types in current request","format":"int32","example":10},"next":{"type":"string","description":"Continuation token","nullable":true,"example":"token-from-previous-response"},"models":{"type":"array","items":{"$ref":"#/components/schemas/ContentModel"},"description":"List of content types","nullable":true}},"additionalProperties":false,"description":"Response for the content type List"}},"components/schemas/CreateContentModelFieldGroupInput":{"id":"components/schemas/CreateContentModelFieldGroupInput","kind":"json-schema","title":"CreateContentModelFieldGroupInput","data":{"type":"object","properties":{"name":{"maxLength":50,"minLength":0,"pattern":"^(?![\\s-])[a-zA-Z0-9_\\s-]*(?<!\\s)$","type":"string","description":"The field group name. Letters, numbers, spaces, underscores, and hyphens only.","nullable":true,"example":"Data"},"sortOrder":{"type":"integer","description":"The numeric position of the field group within the content model.","format":"int32","nullable":true,"example":100},"fields":{"type":"array","items":{"$ref":"#/components/schemas/CreateContentModelFieldInput"},"description":"Fields in the group","nullable":true}},"additionalProperties":false,"description":"Content type field group input"}},"components/schemas/CreateContentModelFieldInput":{"id":"components/schemas/CreateContentModelFieldInput","kind":"json-schema","title":"CreateContentModelFieldInput","data":{"required":["name","type"],"type":"object","properties":{"name":{"maxLength":50,"minLength":0,"pattern":"^(?![\\s-])[a-zA-Z0-9_\\s-]*(?<!\\s)$","type":"string","description":"The field name. Letters, numbers, spaces, underscores, and hyphens only.","example":"PromoText"},"attributes":{"type":"object","additionalProperties":{"type":"string"},"description":"List of field attributes","nullable":true},"type":{"minLength":1,"type":"string","description":"The field type.","example":"Single-Line Text"},"displayName":{"maxLength":50,"minLength":0,"type":"string","description":"The field display name.","nullable":true,"example":"Promo text"},"helperText":{"type":"string","description":"Help text for the field.","nullable":true,"example":"Enter helper text for display"},"value":{"description":"Default value. Accepts object or string.","nullable":true,"example":{"title":"sample title"},"type":"object"},"source":{"type":"string","description":"The source of the field","nullable":true,"example":"/sitecore/content/Tenant/Site/Home"},"sortOrder":{"type":"integer","description":"The sort order.","format":"int32","nullable":true,"example":100},"validationRules":{"type":"array","items":{"type":"string"},"description":"The validation rules assigned to the field as a list of validation rule IDs.","nullable":true,"example":["59D4EE10-627C-4FD3-A964-61A88B092CBC","A76C1092-EE2E-4021-B9EE-21E541CDA1D7"]}},"additionalProperties":false,"description":"Content type field input"}},"components/schemas/CreateContentModelInput":{"id":"components/schemas/CreateContentModelInput","kind":"json-schema","title":"CreateContentModelInput","data":{"required":["name"],"type":"object","properties":{"name":{"maxLength":50,"minLength":0,"pattern":"^(?![\\s-])[a-zA-Z0-9_\\s-]*(?<!\\s)$","type":"string","description":"Content type name.\nLetters, numbers, spaces, underscores, and hyphens only.","example":"Promo"},"description":{"maxLength":100,"minLength":0,"type":"string","description":"Content type description.","nullable":true,"example":"Promo content type"},"parentId":{"type":"string","description":"The identifier of the parent for this content type.","nullable":true,"example":"497f6eca-6276-4993-bfeb-53cbbbba6f08"},"baseContentTypes":{"type":"array","items":{"type":"string"},"description":"The base content types from which this content model inherits fields and properties.","nullable":true,"example":["497f6eca-6276-4993-bfeb-53cbbbba6f08"]},"fieldGroups":{"type":"array","items":{"$ref":"#/components/schemas/CreateContentModelFieldGroupInput"},"description":"The list of field groups.","nullable":true}},"additionalProperties":false,"description":"Content type input"}},"components/schemas/FieldGroup":{"id":"components/schemas/FieldGroup","kind":"json-schema","title":"FieldGroup","data":{"type":"object","properties":{"id":{"type":"string","description":"Field group identifier.","nullable":true,"example":"223cba1d-4714-49b8-8d9a-b0dc1bed9cb3"},"name":{"type":"string","description":"The field group name.","nullable":true,"example":"PromoText"},"sortOrder":{"type":"integer","description":"The numeric position of the field group within the content model. Lower values appear first.","format":"int32","nullable":true,"example":1},"fields":{"type":"array","items":{"$ref":"#/components/schemas/ContentField"},"description":"The content type fields.","nullable":true}},"additionalProperties":false,"description":"Represents a group of fields"}},"components/schemas/FieldSourceElementPaged":{"id":"components/schemas/FieldSourceElementPaged","kind":"json-schema","title":"FieldSourceElementPaged","data":{"type":"object","properties":{"sourceIndex":{"type":"integer","description":"The zero-based source segment index from which this item originated.","format":"int32","example":1},"id":{"type":"string","description":"The id of the field source","nullable":true,"example":"2492bac4-da07-4c86-87f0-9873d40e2276"},"name":{"type":"string","description":"The name of the field source","nullable":true,"example":"SourceItem1"},"version":{"type":"string","description":"The version of the field source","nullable":true,"example":"1"},"displayName":{"type":"string","description":"The display name of the field source","nullable":true,"example":"Source Item 1"},"locale":{"type":"string","description":"The locale of the field source","nullable":true,"example":"en"}},"additionalProperties":false,"description":"A field source item returned by the v2 source-resolution API."}},"components/schemas/FieldSourceModelPaged":{"id":"components/schemas/FieldSourceModelPaged","kind":"json-schema","title":"FieldSourceModelPaged","data":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/FieldSourceElementPaged"},"description":"The source items in the current page.","nullable":true},"continuationToken":{"type":"string","description":"The opaque token for retrieving the next page, or null when complete.","nullable":true}},"additionalProperties":false,"description":"Represents a paged field source returned by the v2 source-resolution API."}},"components/schemas/FieldVersioning":{"id":"components/schemas/FieldVersioning","kind":"json-schema","title":"FieldVersioning","data":{"enum":["VERSIONED","UNVERSIONED","SHARED","UNDEFINED"],"type":"string","description":"The versioning of the template field."}},"components/schemas/IFieldValue":{"id":"components/schemas/IFieldValue","kind":"json-schema","title":"IFieldValue","data":{"type":"object","properties":{"text":{"type":"string","nullable":true,"description":"The text value.","example":"Sample content"},"displayName":{"type":"string","nullable":true,"description":"The file display name.","example":"Brochure"},"name":{"type":"string","nullable":true,"description":"The file  name.","example":"brochure.pdf"},"extension":{"type":"string","nullable":true,"description":"The file  extension.","example":"pdf"},"size":{"type":"integer","format":"int64","nullable":true,"description":"The file size in bytes.","example":120345},"id":{"type":"string","nullable":true,"description":"The file item identifier.","example":"4B9A6BAE-6B8D-4D72-BE0E-0BA769A8C24"},"src":{"type":"string","nullable":true,"description":"The image source URL.","example":"https://xmc.sitecore-staging.cloud/-/media/Project/sites/sample/image.jpeg"},"alt":{"type":"string","nullable":true,"description":"The image alt text.","example":"Sample image"},"width":{"type":"string","nullable":true,"description":"The image width.","example":"800"},"height":{"type":"string","nullable":true,"description":"The image height.","example":"600"},"mediaId":{"type":"string","nullable":true,"description":"The media item identifier.","example":"8B53C9A7-2E80-4B35-B61D-33D7D8D4E24B"},"href":{"type":"string","nullable":true,"description":"The link URL.","example":"https://xmc.sitecore-staging.cloud/en/sitecore/shell/sites/sample/Home/About"},"title":{"type":"string","nullable":true,"description":"The link title.","example":"About"},"type":{"type":"string","nullable":true,"description":"The link type.","example":"internal"},"attributes":{"type":"object","additionalProperties":{"type":"string"},"nullable":true,"description":"Additional link attributes.","example":{"target":"_blank","class":"my-css-class"}},"references":{"type":"array","items":{"$ref":"#/components/schemas/ReferenceElement"},"nullable":true}},"additionalProperties":false}},"components/schemas/ProblemDetails":{"id":"components/schemas/ProblemDetails","kind":"json-schema","title":"ProblemDetails","data":{"type":"object","properties":{"type":{"type":"string","description":"The type of the error response entity.","nullable":true},"title":{"type":"string","description":"The title of the error response entity.","nullable":true},"status":{"type":"integer","description":"The response status code.","format":"int32","nullable":true},"detail":{"type":"string","description":"A detailed explanation, specific to this occurrence of the problem.","nullable":true},"instance":{"type":"string","description":"If available, a URI reference that identifies the specific occurrence of the problem.","nullable":true}},"additionalProperties":{"description":"Any additional optional properties that describe the error(s)."}}},"components/schemas/ReferenceElement":{"id":"components/schemas/ReferenceElement","kind":"json-schema","title":"ReferenceElement","data":{"type":"object","properties":{"id":{"type":"string","nullable":true,"description":"The referenced item id","example":"{110D559A-CA9C-4B4C-8F31-DF8A0E6F447D}"},"name":{"type":"string","nullable":true,"description":"The referenced item name","example":"home"},"displayName":{"type":"string","nullable":true,"description":"The referenced item display name","example":"Home"}},"additionalProperties":false,"description":"The referenced items."}},"components/schemas/System":{"id":"components/schemas/System","kind":"json-schema","title":"System","data":{"type":"object","properties":{"created":{"type":"string","nullable":true,"description":"The creation date.","example":"2024-01-01T12:00:00Z"},"createdBy":{"type":"string","nullable":true,"description":"The user who created this resource.","example":"sitecore\\admin"},"updated":{"type":"string","nullable":true,"description":"The last update date.","example":"2024-01-02T12:00:00Z"},"updatedBy":{"type":"string","nullable":true,"description":"The author of the last update.","example":"sitecore\\admin"}},"additionalProperties":false}},"components/schemas/UpdateContentModelFieldGroupInput":{"id":"components/schemas/UpdateContentModelFieldGroupInput","kind":"json-schema","title":"UpdateContentModelFieldGroupInput","data":{"type":"object","properties":{"id":{"type":"string","description":"Field group identifier. If present, the existing field group will be used. If not, a new field group will be created based on Name.","nullable":true,"example":"db765e2c-d745-462c-aa7b-e6cb11c5da8f"},"name":{"maxLength":50,"minLength":0,"pattern":"^(?![\\s-])[a-zA-Z0-9_\\s-]*(?<!\\s)$","type":"string","description":"The field group name. The name of new field group to create if Id is not provided.\nLetters, numbers, spaces, underscores, and hyphens only.","nullable":true,"example":"Data"},"sortOrder":{"type":"integer","description":"The numeric position of the field group within the content model.","format":"int32","nullable":true,"example":100},"fields":{"type":"array","items":{"$ref":"#/components/schemas/UpdateContentModelFieldInput"},"description":"Fields in the group","nullable":true}},"additionalProperties":false,"description":"Content type field group input"}},"components/schemas/UpdateContentModelFieldInput":{"id":"components/schemas/UpdateContentModelFieldInput","kind":"json-schema","title":"UpdateContentModelFieldInput","data":{"required":["type"],"type":"object","properties":{"id":{"type":"string","description":"The field identifier.","nullable":true,"example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"name":{"maxLength":50,"minLength":0,"pattern":"^(?![\\s-])[a-zA-Z0-9_\\s-]*(?<!\\s)$","type":"string","description":"The field name.\nLetters, numbers, spaces, underscores, and hyphens only.","nullable":true,"example":"PromoText"},"shared":{"type":"boolean","description":"Indicates whether the field is shared.","nullable":true},"type":{"minLength":1,"type":"string","description":"The field type.","example":"Single-Line Text"},"displayName":{"maxLength":50,"minLength":0,"type":"string","description":"The field display name.","nullable":true,"example":"Promo text"},"helperText":{"type":"string","description":"Help text for the field.","nullable":true,"example":"Enter helper text for display"},"value":{"description":"Default value. Accepts object or string.","nullable":true,"example":{"title":"sample title"},"type":"object"},"source":{"type":"string","description":"The source of the field.","nullable":true,"example":"/sitecore/content/Tenant/Site/Home"},"sortOrder":{"type":"integer","description":"The sort order.","format":"int32","nullable":true,"example":100},"validationRules":{"type":"array","items":{"type":"string"},"description":"The validation rules assigned to the field as a list of validation rule IDs.","nullable":true,"example":["59D4EE10-627C-4FD3-A964-61A88B092CBC","A76C1092-EE2E-4021-B9EE-21E541CDA1D7"]}},"additionalProperties":false,"description":"Content type field input"}},"components/schemas/UpdateContentModelInput":{"id":"components/schemas/UpdateContentModelInput","kind":"json-schema","title":"UpdateContentModelInput","data":{"type":"object","properties":{"name":{"maxLength":50,"minLength":0,"pattern":"^(?![\\s-])[a-zA-Z0-9_\\s-]*(?<!\\s)$","type":"string","description":"Content type name.\nLetters, numbers, spaces, underscores, and hyphens only.","nullable":true,"example":"Promo"},"description":{"maxLength":100,"minLength":0,"type":"string","description":"Content type description.","nullable":true,"example":"Promo content type"},"fieldGroups":{"type":"array","items":{"$ref":"#/components/schemas/UpdateContentModelFieldGroupInput"},"description":"The list of field groups.","nullable":true},"baseContentTypes":{"type":"array","items":{"type":"string"},"description":"The base content types from which this content model inherits fields and properties.","nullable":true,"example":["497f6eca-6276-4993-bfeb-53cbbbba6f08"]}},"additionalProperties":false,"description":"Update content type input."}},"components/schemas/ValidationRule":{"id":"components/schemas/ValidationRule","kind":"json-schema","title":"ValidationRule","data":{"type":"object","properties":{"id":{"type":"string","description":"Rule identifier.","nullable":true,"example":"59d4ee10-627c-4fd3-a964-61a88b092cbc"},"name":{"type":"string","description":"Rule name.","nullable":true,"example":"Max Length"},"displayName":{"type":"string","description":"Rule display name.","nullable":true,"example":"Max Length"},"scope":{"type":"string","description":[{"$$mdtype":"Node","type":"paragraph","attributes":{},"children":[{"$$mdtype":"Node","type":"inline","attributes":{},"children":[{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":"Rule scope. Currently supports "},"children":[]},{"$$mdtype":"Node","type":"code","inline":true,"attributes":{"content":"field"},"children":[]},{"$$mdtype":"Node","type":"text","inline":true,"attributes":{"content":" scope for field-level validation."},"children":[]}]}]}],"nullable":true,"example":"field"}},"additionalProperties":false,"description":"Validation rule."}},"schema_1335":{"kind":"json-schema","data":{"type":"string"},"id":"schema_1335"},"schema_1336":{"kind":"json-schema","data":{"type":"integer","format":"int32"},"id":"schema_1336"},"schema_1337":{"kind":"json-schema","data":{"type":"array","items":{"type":"string"}},"id":"schema_1337"},"schema_1338":{"kind":"json-schema","data":{"type":"array","items":{"$ref":"#/components/schemas/ValidationRule"}},"id":"schema_1338"}},"exampleStore":{"paths/~1api~1v1~1content-types~1{modelId}/get/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types~1{modelId}/get/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/get/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types~1{modelId}/get/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/get/responses/404/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.4","title":"Not Found","status":404,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem."},"id":"paths/~1api~1v1~1content-types~1{modelId}/get/responses/404/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/patch/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types~1{modelId}/patch/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/patch/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types~1{modelId}/patch/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/put/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types~1{modelId}/put/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/put/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types~1{modelId}/put/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/delete/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types~1{modelId}/delete/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}/delete/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types~1{modelId}/delete/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/404/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.4","title":"Not Found","status":404,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem."},"id":"paths/~1api~1v1~1content-types~1{modelId}~1{fieldId}~1source/get/responses/404/content/application~1json/example"},"paths/~1api~1v1~1content-types/get/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types/get/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types/get/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types/get/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types/post/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types/post/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types/post/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types/post/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1validation-rules/get/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types~1validation-rules/get/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types~1validation-rules/get/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types~1validation-rules/get/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/400/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem.","traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00","errors":{"sampleProperty":["The sampleProperty field is required"]}},"id":"paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/400/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/401/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7235#section-3.1","title":"Unauthorized","status":401,"traceId":"00-982607166a542147b435be3a847ddd71-fc75498eb9f09d48-00"},"id":"paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/401/content/application~1json/example"},"paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/404/content/application~1json/example":{"value":{"type":"https://tools.ietf.org/html/rfc7231#section-6.5.4","title":"Not Found","status":404,"detail":"A detailed explanation, specific to this occurrence of the problem.","instance":"If available, a URI reference that identifies the specific occurrence of the problem."},"id":"paths/~1api~1v1~1content-types~1{modelId}~1sources/post/responses/404/content/application~1json/example"}},"securitySchemeStore":{"Bearer":{"id":"Bearer","type":"http","scheme":"Bearer","description":"Enter your bearer token in the text input below."}},"servers":[{"url":"https://edge-platform.sitecorecloud.io/authoring","description":"Production server"}],"specType":"openapi"},"options":{"hideInfoMetadata":true,"sanitize":true,"sortRequiredPropsFirst":true,"corsProxyUrl":"https://cors.redoc.ly","mockServer":{"off":true,"position":"off"},"disableRouter":true,"downloadUrls":[{"url":"/_bundle/sai/content-types-api/index.json?download"},{"url":"/_bundle/sai/content-types-api/index.yaml?download"}],"excludeFromSearch":false,"replayFeatures":{"graphql":false},"specType":"openapi","markdocOptions":{"tags":{},"nodes":{},"components":{}},"metadata":{"title":"Content Types API","description":"Use the SitecoreAI Content Types API to manage content types. A content type is a template that defines the structure of content items. \n\n This REST API lets you: \n\n - Retrieve content types. \n\n - Create content types. \n\n - Update content types. \n\n - Retrieve the field source configuration for a content model, if one exists. \n\n# Authorization\nTo authorize your requests, use environment automation client credentials and generate a JSON Web Token (JWT).\n\nNote: To create client credentials, you must be an [Organization Admin](https://doc.sitecore.com/portal/en/developers/sitecore-cloud-portal/roles.html) or Organization Owner.\n\n## Create an automation client\n 1. In the Sitecore Cloud Portal, open the Deploy app.\n 2. Click **Credentials** > **Environment** > **Create credentials** > **Automation**.\n 3. Fill out the automation client details, then click **Create**.\n 4. Copy the client ID and the client secret because you won't be able to view them again in the Deploy app. You'll use them to request a JWT.\n\n## Request a JWT\n\nRun the following cURL command to request a JWT. Replace the placeholder values with your client ID and client secret.\n```curl\n  curl -X POST 'https://auth.sitecorecloud.io/oauth/token' \\\n  --header 'Content-Type: application/x-www-form-urlencoded' \\\n  --data-urlencode 'client_id={YOUR_CLIENT_ID}' \\\n  --data-urlencode 'client_secret={YOUR_CLIENT_SECRET}' \\\n  --data-urlencode 'grant_type=client_credentials' \\\n  --data-urlencode 'audience=https://api.sitecorecloud.io'\n```\n\nIn the response, the `access_token` key contains the JWT:\n\n```json\n  {\n    \"access_token\": \"{YOUR_JWT}\",\n    \"scope\": \"xmcloud.cm:admin\",\n    \"expires_in\": 86400,\n    \"token_type\": \"Bearer\"\n  }\n```\n\nThe JWT expires in 24 hours. If your requests unexpectedly return a response with status `401 Unauthorized`, request a new JWT by repeating this `POST` request.\n\nWe recommend that you cache the JWT for 24 hours to avoid repeating this `POST` request while the JWT is still valid.\n\n## Include the JWT in the request header\n\nYou can now start making REST API requests. You must include the JWT in the request header of every request. For example:\n  ```curl\n  curl -X GET '{YOUR_BASE_URL}/...' \\\n  -H 'Authorization: Bearer {YOUR_JWT}' \\\n  -H 'Accept: application/json'\n  ```","product":"SitecoreAI"}},"baseSlug":"/sai/content-types-api","routesMapping":{}}