For the complete documentation index, see llms.txt. This page is also available as Markdown.

clone_project

imerit_ango.sdk.SDK.

clone_project(project_id, category_schema, assigned_to, batches, workflow, plugin_presets, project_general_settings)

Creates a new project in the same organization by copying selected settings from an existing project.

The cloned project is named <SOURCE PROJECT NAME> copy. Assets, task records, and saved annotations are not copied. The project's category schema can be copied with the category_schema option.

The API key must belong to a project manager for the source project.

Parameters

  • project_id: string

  • category_schema: bool, Optional, default True

    • Copies the project's tools, classifications, and relations.

  • assigned_to: bool, Optional, default True

    • Copies the project's assigned users.

  • batches: bool, Optional, default True

    • Copies the project's batches.

  • workflow: bool, Optional, default True

    • Copies the project's workflow.

  • plugin_presets: bool, Optional, default True

    • Copies the project's plugin presets.

  • project_general_settings: bool, Optional, default True

    • Copies the project's general settings.

The optional settings are keyword-only parameters. Set a parameter to False to exclude that section from the cloned project.

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Includes a status field indicating whether the request was successful and a data field containing the cloned project.

How to verify in Ango Hub?

After successfully executing the clone_project function, navigate to Projects and confirm that the cloned project appears in the project list.

Open the cloned project and verify that the settings you selected were copied.

Changes made via the SDK are reflected in Ango Hub in near real-time. If the cloned project is not immediately visible, please refresh the page.

Example

Clone all supported project settings:

Clone a project with only its category schema and workflow:

Last updated