# Execute a workflow action

## Execute workflow action

<mark style="color:orange;">`PUT`</mark> `https://ris.rightsline.com/v4/:entityType/:id/execute-workflow-action/:actionID`

This endpoint allows you to execute a workflow action on an entity.

#### Path Parameters

| Name       | Type    | Description                                                                                                       |
| ---------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
| entityType | string  | <p>The type of entity to perform the workflow action on. <br>ex: deal, catalog-item, financial-document, etc.</p> |
| id         | integer | ID of the entity to perform the action on.                                                                        |
| actionID   | integer | ID of the action to take.                                                                                         |

#### Headers

| Name           | Type   | Description             |
| -------------- | ------ | ----------------------- |
| x-api-key      | string | Your company's API key. |
| Authentication | string | Authentication token.   |

{% tabs %}
{% tab title="200 Workflow action executed successfully." %}

```
"Workflow Action Executed Successfully"
```

{% endtab %}

{% tab title="500: Internal Server Error Entity validation failed." %}

```json
{
    "message": "Entity Invalid"
}
```

{% endtab %}

{% tab title="404: Not Found Entity not found." %}

```json
{
    "message": "Entity Not Found"
}
```

{% endtab %}

{% tab title="403: Forbidden Action not available from current status." %}

```json
{
    "message": "Action 3 not available to be taken from status 1"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api-docs.rightsline.com/workflow/workflow-execute.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
