update_tasks_priority

imerit_ango.sdk.SDK.

update_tasks_priority(project_id, priority, filters)

Update the priority of specific tasks within a project.

Parameters

  • project_id: string

  • priority: int

    • The new priority value to assign to the selected tasks.

    • Note: The priority value must be between -1000 and 1000. Higher values indicate higher priority.

  • filters: dict, default None

    • A dictionary of filters to specify the tasks to requeue.

      • taskIds: List[str]

      • externalIds: List[str]

      • assetIds: List[str]

      • batches: List[str]

      • fromStageIds: List[str]

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

sdk_response = ango_sdk.update_tasks_priority(project_id=project_id,
                                              priority=15,
                                              filters={"externalIds": ["image-1.jpg", "image-2.jpg"]})

Last updated