# Create Token Block

## Properties

| Block Property   | Definition                                                                                      | Example Input                              | Status |
| ---------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------ | ------ |
| type             | A type of the block which creates a form from the schema, and sends the document to the server. | **Create Token Block** (Can't be changed). |        |
| tag              | Unique name for the logic block.                                                                | add\_new\_installer\_request.              |        |
| permissions      | Which entity has rights to interact at this part of the workflow.                               | Standard Registry.                         |        |
| defaultActive    | Shows whether this block is active at this time and whether it needs to be shown.               | Checked or unchecked.                      |        |
| stop propagation | End processing here, don't pass control to the next block.                                      | Checked or Unchecked.                      |        |
| Token Template   | We can set template by which we want to create token                                            | token\_template\_\_\_0                     |        |

## UI Properties

| UI Property          | Definition                                                                                                                                                                    |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Type                 | Style of the render of the form. It can be either a Page (the form is rendered as a page) or Dialogue (displays a button, which opens a dialogue with the form when clicked). |
| Title                | Provides the Page or Dialogue box a title.                                                                                                                                    |
| Description          | Provides the Page or Dialogue box a description.                                                                                                                              |
| Button Content       | Text to fill inside a button. Needs the Dialogue box to be selected from the "Type."                                                                                          |
| Dialogue Text        | Provides a tile inside the Dialogue box. Needs the dialogue box to be selected from the "Type."                                                                               |
| Dialogue Description | Provides a description inside the Dialogue box. Needs the dialogue box to be selected from the "Type."                                                                        |

### API Parameters

<mark style="color:blue;">`GET`</mark> `/policies/{policyId}/blocks/{uuid}`

#### Path Parameters

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| policyId<mark style="color:red;">\*</mark> | String | Policy ID   |
| uuid<mark style="color:red;">\*</mark>     | String | Block UUID  |

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

```javascript
{
  "id": "a411e417-bff7-49dc-bbf0-a4e5b7501b73",
  "blockType": "createTokenBlock",
  "uiMetaData": {
    "type": "page",
    "title": "Create Token",
    "description": "Please enter token info"
  },
  "active": true,
  "data": {
    "templateTokenTag": "token_template_0",
    "tokenType": "fungible",
    "decimals": 3,
    "enableAdmin": true,
    "changeSupply": true
  }
}
```

{% endtab %}
{% endtabs %}

<mark style="color:green;">`POST`</mark> `/policies/{policyId}/blocks/{uuid}`

#### Path Parameters

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| policyId<mark style="color:red;">\*</mark> | String | Policy ID   |
| uuid<mark style="color:red;">\*</mark>     | String | Block UUID  |

#### Request Body

| Name                                           | Type    | Description              |
| ---------------------------------------------- | ------- | ------------------------ |
| tokenName<mark style="color:red;">\*</mark>    | String  | Token Name               |
| tokenSymbol<mark style="color:red;">\*</mark>  | String  | Token Symbol             |
| tokenType<mark style="color:red;">\*</mark>    | String  | Fungible or Non Fungible |
| decimals<mark style="color:red;">\*</mark>     | String  | Token decimals           |
| enableAdmin<mark style="color:red;">\*</mark>  | Boolean | Enable Admin Flag        |
| enableSupply<mark style="color:red;">\*</mark> | Boolean | Enable Supply Flag       |
| enableFreeze<mark style="color:red;">\*</mark> | Boolean | Enable Freeze Flag       |
| enableKYC<mark style="color:red;">\*</mark>    | Boolean | Enable KYC Flag          |
| enableWipe<mark style="color:red;">\*</mark>   | Boolean | Enable Wipe Flag         |
