# Create 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>`id`</td><td>int</td><td>The id for the flag</td><td>No</td></tr><tr><td>`name`</td><td>string</td><td>The name of the flag</td><td>Yes</td></tr><tr><td>`color`</td><td>hexcode</td><td>The color of the flag (format ##RRGGBB)</td><td>Yes</td></tr></tbody></table>

#### Example Request

```
POST /api/flags/
```

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

#### Example Response

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