# Update

Acquire Agent Update API in you can do update your agents details. This API in you can not update Email address.

#### **How to get id**&#x20;

if you create own dashboard then first use agents **list** API and get **`id`** for update API parameter.

| Parameter     | Value                                              |
| ------------- | -------------------------------------------------- |
| Path          | <https://app.acquire.io/api/account/agents/update> |
| Method        | POST                                               |
| Authorization | Bearer **`[YOUR_API_AUTH_TOKEN]`**                 |
| Content-type  | application/x-www-form-urlencoded                  |

#### **Body (urlencoded)**

| Parameter | Value                                                |
| --------- | ---------------------------------------------------- |
| id        | 5128  ( use&#x72;**`id`**)                           |
| role      | 1/2 (**`Administrator`** = 1 AND **`Operator`** = 2) |
| name      | david Klok                                           |
| email     | <devidklok@acquire.io>                               |
| password  | 123456789                                            |
| status    | active/disable                                       |

#### Response JSON

```javascript
{
    "success": true,
    "error": null,
    "data": "Agent updated successfully"
}
```


---

# 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://developer.acquire.io/master/rest-apis/agent/update.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.
