> For the complete documentation index, see [llms.txt](https://docs.microreact.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.microreact.org/api/editing-projects.md).

# Updating Projects via API

## Update Project

<mark style="color:green;">`POST`</mark> `https://microreact.org/api/projects/update/`

#### Query Parameters

| Name    | Type   | Description                                                                                       |
| ------- | ------ | ------------------------------------------------------------------------------------------------- |
| project | string | <p>The ID of the project to be updated (e.g.</p><p><code>gb7RzDg87aJK2yGAqQiai</code></p><p>)</p> |

#### Headers

| Name         | Type   | Description                                                                      |
| ------------ | ------ | -------------------------------------------------------------------------------- |
| Content-Type | string | <p>Should be</p><p><code>Content-Type application/json; charset=utf-8</code></p> |
| Access-Token | string | An API access token.                                                             |

#### Request Body

| Name | Type   | Description                                                       |
| ---- | ------ | ----------------------------------------------------------------- |
|      | object | <p>A valid</p><p><code>.microreact</code></p><p>JSON document</p> |

{% tabs %}
{% tab title="200 A JSON document which include the ID and the URL of the project." %}

```javascript
{
  "id": "gb7RzDg87aJK2yGAqQiaiu",
  "url": "https://microreact.org/project/gb7RzDg87aJK2yGAqQiaiu"
}
```

{% endtab %}
{% endtabs %}

See [API Access Tokens](/api/access-tokens.md)

### Example

{% tabs %}
{% tab title="cURL + Bash" %}

```bash
curl \
  --header "Content-Type: application/json; charset=utf-8" \
  --header "Access-Token: eyJhbGciOiJIUzUxMiJ9..." \
  --data "@project.microreact" \
  https://microreact.org/api/projects/update?project=gb7RzDg87aJK2yGAqQiai
```

{% endtab %}
{% endtabs %}
