# Manage workflows and templates

Create, view, update, pause, or delete workflows, and manage reusable workflow templates. This page handles workflow definitions and templates. To start, resume, or retry a specific job, see [Run, resume, and retry workflow jobs](workflow-jobs-recovery.md).

## Prerequisites

Prepare credentials that can access the target workspace. For service endpoints, authentication, and general request formats, see [Prepare to call an API](../../api-call-basics.md).

Before updating, pausing, resuming, or deleting, obtain target IDs from the workflow or template list or details.

## Call sequence

1. List workflows and templates to decide whether to reuse an existing object or maintain a target object.
2. Update a workflow or template to adjust its definition. Create a workflow when you need to use it for later jobs.
3. Pause a workflow to stop it temporarily, then resume it to continue. Confirm current information through details.
4. Delete an object only after confirming it is no longer needed.

## API operations

### Manage workflows

| What you need to do | API operation | Use it when |
| --- | --- | --- |
| Query workflows | [List workflows](../../../../reference/api/ai-studio/data-processing/workflows/list-workflows.md) | Find a workflow or obtain a target ID. |
| Query workflow details | [Get workflow details](../../../../reference/api/ai-studio/data-processing/workflows/get-workflow.md) | Inspect current information for one workflow. |
| Update a workflow | [Update a workflow](../../../../reference/api/ai-studio/data-processing/workflows/update-workflow.md) | Modify an existing workflow. |
| Create a workflow | [Create a workflow](../../../../reference/api/ai-studio/data-processing/workflows/create-workflow.md) | You prepared workflow DSL and need to create a workflow. |
| Pause a workflow | [Pause a workflow](../../../../reference/api/ai-studio/data-processing/workflows/pause-workflow.md) | Stop a workflow temporarily. |
| Resume a workflow | [Resume a workflow](../../../../reference/api/ai-studio/data-processing/workflows/resume-workflow.md) | Continue a paused workflow. |
| Delete a workflow | [Delete a workflow](../../../../reference/api/ai-studio/data-processing/workflows/delete-workflow.md) | You confirmed that the workflow is no longer needed. |

### Manage workflow templates

| What you need to do | API operation | Use it when |
| --- | --- | --- |
| Query workflow templates | [List workflow templates](../../../../reference/api/ai-studio/data-processing/workflow-templates/list-workflow-templates.md) | Find a reusable template or obtain a template ID. |
| Query workflow template details | [Get workflow template details](../../../../reference/api/ai-studio/data-processing/workflow-templates/get-workflow-template.md) | Inspect current information for one template. |
| Create a workflow template | [Create a workflow template](../../../../reference/api/ai-studio/data-processing/workflow-templates/create-workflow-template.md) | Add a reusable template. |
| Update a workflow template | [Update a workflow template](../../../../reference/api/ai-studio/data-processing/workflow-templates/update-workflow-template.md) | Modify an existing template. |
| Delete a workflow template | [Delete a workflow template](../../../../reference/api/ai-studio/data-processing/workflow-templates/delete-workflow-template.md) | You confirmed that the template is no longer needed. |

## Confirm the result

After creation, update, pause, or resume, use [Get workflow details](../../../../reference/api/ai-studio/data-processing/workflows/get-workflow.md) to confirm current workflow information. After creating, updating, or deleting a template, use template details or the list to confirm the target object.

## Limitations and notes

- Workflow definitions and individual jobs are different objects. This page does not confirm actual job results.
- Before deleting a workflow or template, confirm that no later operation still depends on it.

## Next steps

- [Run, resume, and retry workflow jobs](workflow-jobs-recovery.md)
- [Manage workflow artifacts and data lineage](workflow-artifacts-lineage.md)
