---
title: "REST - Action Button"
canonical: "https://help.agiloft.com/space/HELP/43717142/REST+-+Action+Button"
format: markdown
---
The EWActionButton operation runs an [action button](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43715918) from a specified record, as an asynchronous call.

- **Returns**: the record ID and callback ID.
- **Supported Content-Type**: <span style="color: #505050">application/</span>x-www-form-urlencoded
- Compatible with [EWAsyncStatus](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43712580), which can be used to check the status of the call.
- Accepts a URL with URL-encoded parameters and record data. For more information about general URL conventions, see [REST Interface](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43715778).
- Additionally, the URL must contain the table name, the ID of the record, and the name of the field that contains the action button to run.

> ⚠️ This operation must use a POST request.

## Example

Here is an example using the cUrl utility:

```
curl -is -X POST "https://your.server.com/ewws/async/EWActionButton?%24KB=Demo&%24login=admin&%24password=****&%24lang=en&%24table=case&name=ab_field&id=82"
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: charset=UTF-8;charset=UTF-8
Content-Length: 48
Date: Fri, 14 Aug 2020 10:12:53 GMT
 
EWREST_id='82';
EWREST_EWCALLBACK_ID='10100_1';
```

# Error Codes

These error codes are for EWActionButton only, but are not an extensive list of possible error codes. For any errors not listed here, consult the General Error Codes section of [https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43715778](https://agiloft-public.atlassian.net/wiki/spaces/HELP/pages/43715778).

|  |  |  |  |
| --- | --- | --- | --- |
| **Scenario** | **Type** | **Code** | **Description** |
| sequence parameter provided in the request is invalid | VALIDATION | 400 | EWWrongDataException → Wrong value for 'sequence' parameter |
| actionField (column name) provided in the request is invalid | VALIDATION | 400 | EWWrongDataException → No information for requested column <fieldName> |

> Macro (hide-if)
> 
> #### Related articles
> 
> > Macro (contentbylabel)