# Update Status

## Update Step status by ID

<mark style="color:purple;">`PATCH`</mark> `https://biometridon.polygon.pt/api/steps/:id/status`

This endpoint allows you to update the step status field.

#### Path Parameters

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

#### Headers

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

#### Request Body

| Name   | Type    | Description   |
| ------ | ------- | ------------- |
| active | boolean | Active status |

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

```bash
{
  "data": {
    "label": "Step 1111",
    "aliasId": "STEP_1",
    "type": "form",
    "settings": {
      "fields": [
        {
          "type": "text",
          "aliasId": "fieldtest1",
          "label": "Test field 1",
          "editable": false,
          "rules": [
            {
              "type": "required"
            }
          ]
        }
      ]
    },
    "required": null,
    "clientId": "5f06dd360d2a954da80c098f",
    "forAllClients": null,
    "active": true,
    "created_at": "2020-07-10T13:52:43.905Z",
    "updated_at": "2020-07-10T14:02:50.972Z",
    "id": "5f0872abae1e08524034ec65"
  },
  "meta": {
    "message": "Step Updated with success."
  },
  "status": true
}
```

{% endtab %}

{% tab title="404 " %}

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

{% endtab %}
{% endtabs %}
