# Create

## Create Step

<mark style="color:green;">`POST`</mark> `https://biometridon.polygon.pt/api/steps`

This endpoint allows you to create steps.

#### Headers

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

#### Request Body

| Name          | Type    | Description                |
| ------------- | ------- | -------------------------- |
| description   | string  |                            |
| label         | string  | Unique label               |
| aliasId       | string  | Unique aliasId             |
| type          | string  | Types available: form      |
| settings      | object  | Settings object            |
| required      | boolean |                            |
| clientId      | string  | Client id (Master User)    |
| forAllClients | string  | Availability (Master User) |

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

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

{% endtab %}
{% endtabs %}

```javascript
// Example

{
	"label": "Step 1",
	"description": "",
	"aliasId": "step_1",
	"type": "form",
	"settings": {
		"fields": [
			{
				"type": "text",
				"aliasId": "fieldtest1",
				"label": "Test field 1",
				"editable": false,
				"rules": [
					{
						"type": "required"
					}
				]
			}
		]
	}
}
```
