optimization_templates

Copy Template To Project

Copy an existing template into a target project as a new template.

Parameters

template_id : str The ID of the source template to copy. body : CopyOptimizationTemplateRequest The target project ID.

Returns

OptimizationTemplate The newly created copy in the target project.

Raises

NotFoundError If no template with the given ID exists. ConflictError If a template with the same name already exists in the target project.

post/optimization_templates/{template_id}/copy

Path parameters

template_idstring required

Request body

project_idstring required

Response

Successful Response

namestring required

The name of the optimization template.

descriptionstring nullable

An optional description for the template.

initial_form_dataobject nullable

Initial form data values.

idstring required

The unique identifier for the template.

organization_idstring required

The ID of the organization this template belongs to.

project_idstring nullable

The ID of the owner project (None for system templates).

access_levelstring

Template scope: 'system' for built-in, 'project' for user-created.

created_atstring date-time required

Timestamp of when the template was created.

updated_atstring date-time required

Timestamp of when the template was last updated.

created_bystring nullable

User ID of the creator.

Changes

No recorded changes to this endpoint across all 1 revision of this API.