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.
- C#
- cURL
- JavaScript
// Tip: Find more about .NET SDKs at https://kontent.ai/learn/net using Kontent.Ai.Management; var client = new ManagementClient(new ManagementOptions { ApiKey = "<YOUR_API_KEY>", ProjectId = "<YOUR_ENVIRONMENT_ID>" }); var response = await client.InitiateProjectAsyncValidationTaskAsync();
- 202
{- "id": "12cf6682-3960-4cfc-851b-e765716e463a",
- "status": "queued",
- "validation_result": "none"
}