latestOpenAPI 3.0.32026-08-137683171.1 KB

be08f4f706f5

Assets

Bulk-update defect priority for a single (assetType, defectName) tuple

Remaps every existing defect row in the caller's organization whose (assetType, defectName) matches the request to a new priority. Optionally also rewrites the org's active defect_priority_mapping so future CVAT exports use the new value as the schema-derived default.

Reviewer manual overrides are NEVER touched -- the bulk UPDATE filters by priority_source='mapping'.

At least one of applyToExisting or alsoUpdateMapping must be true (otherwise the request is a no-op and is rejected).

Permission: defects:write.

post/defects:bulk-priority

Headers

Idempotency-Keystring uuid

Idempotency key for POST requests. If a transaction with the same key already exists for the org, the server returns the original response without re-executing. Keys are valid for 48 hours.

Request body

assetTypestring required

Slug of the asset_type column (e.g. 'wood_pole').

defectNamestring required

Composed defect_name string (e.g. 'Pole (Wood): Crack/Split - major').

priorityinteger required
applyToExistingboolean

When true, update every matching mapping-derived defect row in the org.

alsoUpdateMappingboolean

When true, also bump defect_priority_mappings to a new active version with this tuple's priority changed.

Response

Success

transactionIdstring uuid required