# Update Flag Endpoint

## Structure

<table border="1" id="bkmrk-name-type-descriptio" style="border-collapse: collapse; width: 100%; height: 737.907px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td><td style="height: 29.7969px;">**Required**  
</td></tr><tr><td>`name`</td><td>string</td><td>The name of the flag</td><td>No</td></tr><tr><td>`color`</td><td>hexcode</td><td>The color of the flag (format ##RRGGBB)</td><td>No</td></tr></tbody></table>

## Example Request

```
PUT /api/flags/{id|name}
```

```json
{
    "name": "API Flag Updated",
    "color": "#A1B2C3",
}
```

## Example Response

```json
{
    "flag": {
        "id": 1
    }
}
```