create_issue

imerit_ango.sdk.SDK.

create_issue(task_id, content, position)

Opens an issue to the specified task, with given content on the given position.

Parameters

  • task_id: string

    • ID of the task to be assigned. Task IDs can be obtained from the UI and from get_tasks.

    • Example: '0000000aa0a00a0000aaaa0a'

  • content: string

    • The text content of the issue.

    • Example: 'The bounding box here should reach the edges.'

  • position: List[integer]

    • Position, in pixel, of where the issue should be placed on the image asset.

    • Example: [25, 15]

Returns:

  • output: dict

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)

task_id = '<YOUR TASK ID>'
content = 'Hey! Check this annotation.'
position = [25, 15]

ango_sdk.create_issue(task_id, content, position)

Last updated