# Update Unit Status

## Update Unit Status

<mark style="color:green;">`POST`</mark> `https://therocketcad.com/api/1.1/wf/cad_updatestatus`

This endpoint will update the status of a unit.

#### Request Body

| Name        | Type   | Description                                                                                   |
| ----------- | ------ | --------------------------------------------------------------------------------------------- |
| Status      | string | The status you which to set the unit to (Must match the options under Owner Panel > 10 Codes) |
| Identifier  | string | The identifier of the unit                                                                    |
| ServerID    | string | The ID of your Server (Owner Panel > FiveM Integration)                                       |
| CommunityID | string | The ID of your Community (Found on therocketcad.com/integrate)                                |

{% tabs %}
{% tab title="200 Status successfully modified" %}

```
Status successfully modified!
```

{% endtab %}

{% tab title="400 " %}

```
ERROR
```

{% 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://docs.therocketcad.com/developers/mdt-functions/update-unit-status.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.
