Attributes

Attribute

type

values

default

mandate

comment

category

string



true


name

string



true


description

string



false


options

string






/ configuration / create

Method:/configuration /create

{
    "attrs":
    {
        "category":"DGS",
        "name":"SMS",
        "description":"description",
        "options":
         "{
             \"provider\":\"clickatell\",
             \"username\":\"john.smith\",
             \"password\":\"secret\"
         }"
    }
}


{
    "error":0
}

/ configuration / get


{
    "match":
    [
        ["category", "=", "DGS"],
        ["name", "=", "SMS"]
    ],
    "return":["*"]
}


{
    "error":0
    "result":
    {
        "id": "id",
        "category": "DGS",
        "name":"SMS",
        "description":"description",
        "options":
        "{
             \"provider\":\"clickatell\",
             \"username\":\"john.smith\",
             \"password\":\"secret\"
         }"
    }
}

/ configuration / search


{
    "match":
    [
        ["category", "=", "DGS"],
        ["name", "=", "SMS"]
    ],
    "return":["*"]
}


{
    "error":0
    "result":
    {
        "total": 1,
        "rows":
        [
             {
                  "id": "id",
                  "category": "DGS",
                  "name":"SMS",
                  "description":"description",
                  "options":
                  "{
                       \"provider\":\"clickatell\",
                       \"username\":\"john.smith\",
                       \"password\":\"secret\"
                   }"
             }
         ]
    }
}


/ configuration / delete

Method:/configuration /delete

{
    "id": "configuration object id"
}


{
    "error":0
}

/ configuration / set

Method:/configuration /set


{
    "id": "configuration object id",
    "attrs":
    {
        "category":"DGS",
        "name":"SMS",
        "description":"description",
        "options":
         "{
             \"provider\":\"clickatell\",
             \"username\":\"john.smith\",
             \"password\":\"secret\"
         }"
    }
}


{
    "error":0
}


/ configuration / update

Method:/configuration /update

This API will create the configuration if it doesn't exist. Or it will update it, if it already exists.

{
    "attrs":
    {
        "category":"DGS",
        "name":"SMS",
        "description":"description",
        "options":
         "{
             \"provider\":\"clickatell\",
             \"username\":\"john.smith\",
             \"password\":\"secret\"
         }"
    }
}


{
    "error":0
}