asset.ontology.updated
Python model
AssetOntologyUpdatedEvent — from kili_events import AssetOntologyUpdatedEvent
Description
This event is raised when an asset moves to a newer ontology version: a new label on that version was appended to its latest one, by an update of existing assets or by a manual revision. Earlier labels are unchanged.
Properties
event
- Required
- The name of the event.
- Constant value: "asset.ontology.updated"
project_id
- Required
- Type:
string - Id of the project in which the action was done.
user_id
- Required
- Type:
string - Id of the user who started the update, or who submitted the revision.
organization_id
- Required
- Type:
string - Id of the organization in which the action was done. For project related event, it references the project author organization.
payload
- Required
- Type:
object -
asset_id- Required
- Type:
string - Id of the targeted asset.
external_id- Required
- Types:
string,null - External id of the targeted asset.
from_version- Required
- Type:
integer - The ontology version the asset was on.
- Range: ≥ 1
Properties
-
to_version- Required
- Type:
integer - The ontology version the asset is on now.
- Range: ≥ 1
-
label_id- Required
- Type:
string - Id of the new label on toVersion.
update_id- Required
- Types:
string,null - Id of the update that made the label, as in project.ontology.update.started; null for a manual revision.
is_cleaned_up- Required
- Type:
boolean - Whether the new label lost content toVersion no longer has, and is to check.
event
- Required
- The name of the event.
- Constant value: "asset.ontology.updated"
projectId
- Required
- Type:
string - Id of the project in which the action was done.
userId
- Required
- Type:
string - Id of the user who started the update, or who submitted the revision.
organizationId
- Required
- Type:
string - Id of the organization in which the action was done. For project related event, it references the project author organization.
payload
- Required
- Type:
object -
assetId- Required
- Type:
string - Id of the targeted asset.
externalId- Required
- Types:
string,null - External id of the targeted asset.
fromVersion- Required
- Type:
integer - The ontology version the asset was on.
- Range: ≥ 1
Properties
-
toVersion- Required
- Type:
integer - The ontology version the asset is on now.
- Range: ≥ 1
-
labelId- Required
- Type:
string - Id of the new label on toVersion.
updateId- Required
- Types:
string,null - Id of the update that made the label, as in project.ontology.update.started; null for a manual revision.
isCleanedUp- Required
- Type:
boolean - Whether the new label lost content toVersion no longer has, and is to check.