Custom Attributes

Get Attributes

Get Custom Attributes

GET /dashboard/settings/attributes

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Your admin bearer Token

{
    "data": [
        {
            "id": 2,
            "fieldname": "umur",
            "label": "Umur",
            "type": "text",
            "notes": "",
            "options": null,
            "is_private": 0,
            "is_required": 1
        },
        {
            "id": 6,
            "fieldname": "panjang_umur",
            "label": "Panjang Umur",
            "type": "text",
            "notes": null,
            "options": null,
            "is_private": 0,
            "is_required": 0
        },
        {
            "id": 7,
            "fieldname": "profesi",
            "label": "Profesi",
            "type": "dropdown",
            "notes": "",
            "options": [
                {
                    "key": "guru",
                    "name": "Guru"
                },
                {
                    "key": "polisi",
                    "name": "Polisi"
                }
            ],
            "is_private": 0,
            "is_required": 1
        },
        {
            "id": 8,
            "fieldname": "apa",
            "label": "Apa",
            "type": "number",
            "notes": "",
            "options": null,
            "is_private": 0,
            "is_required": 1
        }
    ]
}

Create Attribute

Create Custom Attribute

POST /dashboard/settings/attributes

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Request Body

Name
Type
Description

label*

String

Label of the attributes

type*

String

Type of the attributes, options: date, text, number, dropdown

notes

String

Notes of the attribute

options

Array

Consist of key and name

is_private

Boolean

Default: false

is_required

Boolean

Default: false

Get Attribute Detail

Get Custom Attribute Detail

GET /dashboard/settings/attributes/{id}

Path Parameters

Name
Type
Description

id*

Integer

ID of attribute

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Update Attribute

Update Custom Attribute

PUT /dashboard/settings/attributes/{id}

Path Parameters

Name
Type
Description

id*

Integer

ID of attribute

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Request Body

Name
Type
Description

label*

String

Label of the attributes

type*

String

Type of the attributes, options: date, text, number, dropdown

notes

String

Notes of the attribute

options

Array

Consist of key and name

is_private

Boolean

Default: false

is_required

Boolean

Default: false

Delete Attribute

Delete Custom Attribute

DELETE /dashboard/settings/attributes/{id}

Path Parameters

Name
Type
Description

id*

Integer

ID of the attribute

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Example Request

Last updated