> For the complete documentation index, see [llms.txt](https://anunzi-ai.gitbook.io/anunzi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anunzi-ai.gitbook.io/anunzi-docs/api-widgets/trabajar-con-la-api-de-llamadas/actions/detach-action.md).

# Desasignar acción de agente

**POST**\
`https://api.anunzi.net/v2/actions/detach`

Detach one or more custom actions from an AI assistant in your Anunzi environment.

***

#### **Body Parameters**

| Parameter  | Type             | Required | Description                                                                                                   |
| ---------- | ---------------- | -------- | ------------------------------------------------------------------------------------------------------------- |
| `model_id` | string           | Yes      | The Model ID of the assistant from which actions will be detached.                                            |
| `actions`  | array of strings | No\*     | A list of Action IDs that will be detached from the assistant. If not provided, all actions will be detached. |

***

#### **Example Request (cURL)**

```bash
curl --request POST \
     --url https://api.anunzi.net/v2/actions/detach \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'Authorization: Bearer API_KEY' \
     --data '
{
  "model_id": "131851351381x13153184",
  "actions": [
    "161861531x1531681"
  ]
}
'
```

***

#### **Example Response (200 OK)**

```json
{
  "status": "success",
  "response": {}
}
```

***

#### **Status Codes**

| Code | Description                                 |
| ---- | ------------------------------------------- |
| 200  | Actions detached successfully.              |
| 400  | Bad Request. Invalid or missing parameters. |
