Get All parameter types

The "Get All parameter types" endpoint return the list of all available types. By default these types are grouped under the parameter group, so we can retrieve them through a standard Get All arke of Group

Headers

KeyValue
arke-project-key<YOUR_PROJECT_ID>
AuthorizationBearer <ACCESS_TOKEN>
content-typeapplication/json

Params

KeyValueDetail
offsetStart offset for paginationDiscover more
limitCount limit for paginationDiscover more
orderSorting definition ex. asc;updated_atDiscover more
filterFilter response with condition ex. eq(name,test)Discover more
load_linksLoad links dataDiscover more
depthDefine depth of load_linksDiscover more

HTTP Response status

Status codeDescription
200OK
401Unauthorized
403Forbidden
500Internal server error
Code samples for "Get All parameter types"
GET
/api/lib/group/parameter/arke
curl --location 'https://arkehub.com/api/lib/group/parameter/arke' \
-H "Arke-Project-Key: <YOUR_PROJECT_ID>" \
-H "Authorization: <ACCESS_TOKEN>" \
-H 'Content-Type: application/json' \
Response with types list
{
    "content": {
        "count": 12,
        "items": [
            {
                "active": true,
                "arke_id": "arke",
                "id": "binary",
                "label": "Binary",
                "parameters": ["id","arke_id","default_binary","helper_text","only_run_time","required",...],
                "type": "arke",
                ...
            },
            {
                "active": true,
                "arke_id": "arke",
                "id": "boolean",
                "label": "Boolean",
                "parameters": ["id","arke_id","default_binary","helper_text","only_run_time","required",...],
                "type": "arke",
                ...
            },
            {
                "active": true,
                "arke_id": "arke",
                "id": "date",
                "label": "Date",
                "parameters": ["id","arke_id","default_binary","helper_text","only_run_time","required",...],
                "type": "arke",
                ...
            },
            ...
        ]
    },
    "messages": []
}

Create Parameter

The "Create Parameter" endpoint create a Parameter with the specified information.

Headers

KeyValue
arke-project-key<YOUR_PROJECT_ID>
AuthorizationBearer <ACCESS_TOKEN>
content-typeapplication/json

Body

KeyValue
<PARAMETER_ID><VALUE>
<PARAMETER_ID_2><VALUE>
<PARAMETER_ID_3><VALUE>

HTTP Response status

Status codeDescription
200OK
401Unauthorized
403Forbidden
500Internal server error
Code samples for "Create Arke"
POST
/api/lib/{parameter_type_id}/unit
curl --location 'https://arkehub.com/api/lib/{parameter_type_id}/unit' \
-H "Arke-Project-Key: <YOUR_PROJECT_ID>" \
-H "Authorization: <ACCESS_TOKEN>" \
-H 'Content-Type: application/json' \
Response with Parameter details created
{
    "content": {
        "arke_id": "string",
        "default_string": null,
        "format": "attribute",
        "helper_text": null,
        "id": "docs_parameter",
        "inserted_at": "2024-04-04T18:59:26Z",
        "is_primary": false,
        "label": "Docs parameter",
        "max_length": null,
        "metadata": {},
        "min_length": null,
        "multiple": false,
        "nullable": true,
        "only_run_time": false,
        "persistence": "arke_parameter",
        "required": false,
        "strip": false,
        "unique": false,
        "updated_at": "2024-04-04T18:59:26Z",
        "values": null,
    },
    "messages": []
}

Edit Parameter

The "Edit Parameter" endpoint update the specified Parameter information

Headers

KeyValue
arke-project-key<YOUR_PROJECT_ID>
AuthorizationBearer <ACCESS_TOKEN>
content-typeapplication/json

Body

KeyValue
<PARAMETER_ID><NEW_VALUE>

HTTP Response status

Status codeDescription
200OK
401Unauthorized
403Forbidden
500Internal server error
Code samples for "Edit Parameter"
PUT
/api/lib/{parameter_type_id}/unit/{parameter_id}
curl --location 'https://arkehub.com/api/lib/{parameter_type_id}/unit/{parameter_id}' \
-H "Arke-Project-Key: <YOUR_PROJECT_ID>" \
-H "Authorization: <ACCESS_TOKEN>" \
-H 'Content-Type: application/json' \
Response with Parameter details updated
{
    "content": {
        {
            "arke_id": "string",
            "default_string": null,
            "format": "attribute",
            "helper_text": null,
            "label": "Edited Docs parameter",
            "id": "docs_parameter",
            "inserted_at": "2024-04-04T18:59:26Z",
            "updated_at": "2024-04-04T19:59:26Z",
        },
    },
    "messages": []
}

Delete Parameter

The "Delete Parameter" endpoint delete the specified Parameter

Headers

KeyValue
arke-project-key<YOUR_PROJECT_ID>
AuthorizationBearer <ACCESS_TOKEN>
content-typeapplication/json

HTTP Response status

Status codeDescription
204OK
401Unauthorized
500Internal server error
Code samples for "Delete Parameter"
DELETE
/api/lib/{parameter_type_id}/unit/{parameter_id}
curl --location 'https://arkehub.com/api/lib/{parameter_type_id}/unit/{parameter_id}' \
-H "Arke-Project-Key: <YOUR_PROJECT_ID>" \
-H "Authorization: <ACCESS_TOKEN>" \
-H 'Content-Type: application/json' \
Response with no content
{
    "content": null,
    "messages": []
}