Start content validation
Start validating the specified environment's content to check for issues such as:
- Missing objects that are referenced in content items.
- Content element values that don't meet the limitations configured in content types.
- Content types that reference missing taxonomy groups.
Depending on the amount of content in your environment, the validation might take several minutes.
After you start the content validation, you get a validation task. With the validation task, you can check validation progress and list validation results once the validation is finished.
This endpoint requires either a Management API key with the Read content permission or a Personal API key.
A content validation task.
- TypeScript
- .NET
- REST
// Tip: Find more about JS/TS SDKs at https://kontent.ai/learn/javascript import { ManagementClient } from '@kontent-ai/management-sdk'; const client = new ManagementClient({ environmentId: 'KONTENT_AI_ENVIRONMENT_ID', apiKey: 'KONTENT_AI_MANAGEMENT_API_KEY' }); const response = await client .startEnvironmentValidation() .byTaskId('15c68e60-dc30-4d34-a921-396563abd08d') .toPromise()
- 202
{- "id": "12cf6682-3960-4cfc-851b-e765716e463a",
- "status": "queued",
- "validation_result": "none"
}