# Update Step

## Update Process

<mark style="color:green;">`POST`</mark> `https://biometrid.com/api/processes/:id/step`

This endpoint allows you to update a process step.

#### Path Parameters

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

#### Headers

| Name            | Type   | Description                             |
| --------------- | ------ | --------------------------------------- |
| Accept-Language | string | en (default), pt                        |
| Content-Type    | string | application/json or multipart/form-data |
| Authorization   | string | Authentication account token            |

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

```bash
{
  "data": {SHOW_CURRENT_STEP},
  "meta": {
    "message": "ProcessStep updated with success."
  },
  "status": true
}

// Process finished (no more steps)
{
  "data": {
    "finished": true
  },
  "meta": {
    "message": "Process finished with success."
  },
  "status": true
}
```

{% endtab %}

{% tab title="404 " %}

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

{% endtab %}

{% tab title="422 " %}

```javascript
{
  "data": {},
  "meta": {
    "message": "Field validation failed",
    "code": "BIOPCUS009",
    "errors": [{Object)]
  },
  "status": false
}
```

{% endtab %}
{% endtabs %}

The payload request is expected to be the action fields in the current step.
