# Reset process configuration

To reset process configuration via API, a user needs to get the **process\_id** from one of the following sources:

* [Get process](https://alphamoon.gitbook.io/documentation/~/changes/E5WHATIwrsF0u91xTwvD/api/get-processes)[es](https://alphamoon.gitbook.io/documentation/~/changes/E5WHATIwrsF0u91xTwvD/api/get-processes) endpoint
* Create process endpoint
* URL\
  **e.g.** <https://workspace.alphamoon.ai/queue/**2080d36bf94c4147b2e543104342fc2f>\*\*

Use the following endpoint to reset the process configuration to default:

## Reset process configuration to default by ID

<mark style="color:green;">`POST`</mark> `/api/v0.3/processes/{process_id}/config/reset`<br>

**Path parameters**

| Name                                         | Type   | Description           |
| -------------------------------------------- | ------ | --------------------- |
| process-id<mark style="color:red;">\*</mark> | String | The ID of the process |

**Response**

{% tabs %}
{% tab title="200: OK Successful Response" %}

```json

  "id": "2080d36bf94c4147b2e543104342fc2f",
  "name": "Custom",
  "typeId": "29b0618e37a94dc9950e7fcfaff338b9",
  "typeName": "Custom",
  "status": "Ready",
  "version": "0.1",
  "usage": null,
  "configId": "5768f90afb99469eb8c9c55aeb8ba19f",
  "orgId": "USER:google-oauth2|106671234597104793600",
  "createdBy": "google-oauth2|106671234597104793600",
  "createdAt": "2023-07-11T14:18:51Z",
  "updatedAt": "2024-04-02T14:24:25Z",
  "lastUpdated": "2024-04-02T14:24:25Z",
  "accesses": {}
}
```

{% endtab %}

{% tab title="422: Unprocessable Entity Validation error" %}

```json
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
```

{% endtab %}
{% endtabs %}

**See the example:**

{% tabs %}
{% tab title="API call" %}

```bash
curl -X 'POST' \
  'https://workspace.alphamoon.ai/api/v0.3/processes/2080d36bf94c4147b2e543104342fc2f/config/reset' \
  -H 'accept: application/json' \
  -H 'Authorization: Basic API_KEY_BASE64_ENCODED'
```

{% endtab %}

{% tab title="Server response" %}

```json
{
  "id": "2080d36bf94c4147b2e543104342fc2f",
  "name": "Custom",
  "typeId": "29b0618e37a94dc9950e7fcfaff338b9",
  "typeName": "Custom",
  "status": "Ready",
  "version": "0.1",
  "usage": null,
  "configId": "5768f90afb99469eb8c9c55aeb8ba19f",
  "orgId": "USER:google-oauth2|106671234597104793600",
  "createdBy": "google-oauth2|106671234597104793600",
  "createdAt": "2023-07-11T14:18:51Z",
  "updatedAt": "2024-04-02T14:24:25Z",
  "lastUpdated": "2024-04-02T14:24:25Z",
  "accesses": {}
}
```

{% endtab %}
{% endtabs %}

**See next:**
