Skip to content

asset.updated

Python model

AssetUpdatedEvent — from kili_events import AssetUpdatedEvent

Description

This event is raised once Kili backend successfully updates an asset. If a user updates N assets, it creates N events, one per asset that was updated.

Properties

event

  • Required
  • The name of the event.
  • Constant value: "asset.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 did the action.

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
  • Properties
    • fields
      • Required
      • Type: array
      • The list of fields that were updated in the asset.
        • Items
        • Type: string
    • asset_id
      • Required
      • Type: string
      • Id of the targeted asset.
    • external_id
      • Required
      • Types: string, null
      • External id of the targeted asset.

event

  • Required
  • The name of the event.
  • Constant value: "asset.updated"

projectId

  • Required
  • Type: string
  • Id of the project in which the action was done.

userId

  • Required
  • Type: string
  • Id of the user who did the action.

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
  • Properties
    • fields
      • Required
      • Type: array
      • The list of fields that were updated in the asset.
        • Items
        • Type: string
    • assetId
      • Required
      • Type: string
      • Id of the targeted asset.
    • externalId
      • Required
      • Types: string, null
      • External id of the targeted asset.