# Set Corrections

## Set Corrections

<mark style="color:orange;">`PUT`</mark> `https://biometridon.polygon.pt/api/processes/:id/corrections`

This endpoint allows you to get free cakes.

#### Path Parameters

| Name | Type   | Description              |
| ---- | ------ | ------------------------ |
| id   | string | ID of the process to get |

#### Headers

| Name          | Type   | Description               |
| ------------- | ------ | ------------------------- |
| Content-Type  | string | application/json          |
| Authorization | string | Authentication user token |

{% tabs %}
{% tab title="200 " %}

```bash
{
  "data": {
    "_id": "5f0cd76511cf0913a8938728",
    "clientId": "5f0c47f039d7fa2b986c6510",
    "flowId": "5f0c47f65bef7a1fd4898328",
    "remainingSteps": [
      "5f0c47f3170f5f0a900cbf1e",
      "5f0c47f3170f5f0a900cbf1f",
      "5f0c47f3170f5f0a900cbf22",
      "5f0c47f3170f5f0a900cbf23",
      "5f0c47f3170f5f0a900cbf25",
      "5f0c47f3170f5f0a900cbf26",
      "5f0c47f3170f5f0a900cbf27",
      "5f0c47f3170f5f0a900cbf28",
      "5f0c47f3170f5f0a900cbf24"
    ],
    "stepData": [
      {
        "step": "5f0c47f3170f5f0a900cbf1e",
        "data": {
          "account_type": "123456",
          "account_holder": "1",
          "client_account_purpose": "P01",
          "funds_origin": "OU",
          "other_funds_origin": "1",
          "accept_terms_conditions": "1",
          "date_of_accept_term_conditions": "01/01/2019",
          "name": "ruben",
          "surname": "rocha",
          "client_email": "ruben.rocha@polygon.pt",
          "client_phonenumber": "913354444",
          "personal_data_aut1": "1",
          "client_nif": "123456789",
          "personal_data_aut2": "1",
          "telef_verif_ind": "1",
          "date_of_phone_validation": "01/01/2019"
        }
      }
    ],
    "status": "pending-user-review",
    "deviceType": "other",
    "settings": {
      "guide": [],
      "processUsername": [
        "stepData.data.name",
        "stepData.data.surname"
      ]
    },
    "videos": [],
    "notes": [],
    "log": [
      {
        "action": "process-require-corrections",
        "entityType": "agent",
        "entityId": "5f0c47f039d7fa2b986c6513",
        "data": [
          {
            "step": "5f0c47f3170f5f0a900cbf1e",
            "message": "fix test"
          }
        ],
        "created_at": "2020-07-13T21:51:53.995Z"
      }
    ],
    "corrections": [
      {
        "step": "5f0c47f3170f5f0a900cbf1e",
        "message": "fix test"
      }
    ],
    "delete_at": "2020-07-15T21:51:33.055Z",
    "created_at": "2020-07-13T21:51:33.056Z",
    "updated_at": "2020-07-13T21:51:53.996Z"
  },
  "meta": {
    "message": "Process Updated with success."
  },
  "status": true
}
```

{% endtab %}

{% tab title="404 " %}

```bash
{
  "data": {},
  "meta": {
    "message": "Step not found",
    "code": "4001"
  },
  "status": false
}

{
  "data": {},
  "meta": {
    "message": "Process not found",
    "code": "4015"
  },
  "status": false
}
```

{% endtab %}
{% endtabs %}

```bash
{
	"corrections":
	[
		{
			"stepId":"5f0c47f3170f5f0a900cbf1e",
			"message":"fix test"
		}
	]
}
```
