# Rename a workflow

> Rename a workflow or app and set its description, at the version you read. Needs edit access.

Source: https://docs.generalinput.com/api/workflows/rename



<Endpoint method="PATCH" path="/v1/workflows/:id/name" />

<Access scope="workflows:manage" />

Renames a workflow or app and sets its description without touching the bundle. The write names the version it read, so a concurrent edit is caught rather than overwritten.

## Body [#body]

| Field         | Type    | Required | Notes                                                                    |
| ------------- | ------- | -------- | ------------------------------------------------------------------------ |
| `name`        | string  | yes      | 1 to 200 characters.                                                     |
| `version`     | integer | yes      | The workflow's current version, as [get](/api/workflows/get) returns it. |
| `description` | string  | no       | Up to 2000 characters.                                                   |

## Response [#response]

```json
{ "success": true }
```

## Conflict [#conflict]

A `409` means the workflow moved on since `version` was read. Refetch it and retry with the current version.
