update_label_validation
imerit_ango.sdk.SDK.
update_label_validation(project_id, custom_validation_enabled, validation_function, external_validation)
Updates the label validation settings of your project.
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projectsfunction.
custom_validation_enabled: bool, Optional, default None
Enables or disables custom label validation logic for the project.
validation_function: string, Optional, default None
A Javascript source code string that defines the custom label validation logic executed by the platform.
external_validation: dict, Optional, default None
Configuration for delegating validation to an external system or service.
Available only for PCT projects.
external_validation = {
"enabled": True, # bool: Enable/disable external validation
"apiUrl": "https://...", # str: Validation API endpoint URL
"singleFrame": False, # bool: Validate only a single frame
"specificFrame": False, # bool: Validate a specific frame (or set of frames)
"frameNumbers": 5 # int: Number of frames to validate
}Returns:
output: dict
A dictionary containing the result of the operation.
Including a
statusfield indicating whether the request was successful and adatafield containing the response payload with updated resources produced by the operation.
Example
Last updated

