# Actions

## Create an action

<mark style="color:green;">`POST`</mark> `/v1/games/:game_id/actions`

#### Request Body

| Name         | Type   | Description |
| ------------ | ------ | ----------- |
| custom\_id   | string |             |
| name         | string |             |
| description  | string |             |
| custom\_data | string |             |
| reactions    | array  |             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Retrieve an action

<mark style="color:blue;">`GET`</mark> `/v1/games/:game_id/actions/:id`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Update an action

<mark style="color:orange;">`PUT`</mark> `/v1/games/:game_id/actions/:id`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Delete an action

<mark style="color:red;">`DELETE`</mark> `/v1/games/:game_id/actions/:id`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## List all actions

<mark style="color:blue;">`GET`</mark> `/v1/games/:game_id/actions`

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
