Attribute | type | values | default | mandate | comment |
category | string | true | |||
name | string | true | |||
description | string | false | |||
options | string |
Method:/configuration /create
{ "attrs": { "category":"DGS", "name":"SMS", "description":"description", "options": "{ \"provider\":\"clickatell\", \"username\":\"john.smith\", \"password\":\"secret\" }" } } |
{ "error":0 } |
{ "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\" }" } } |
{ "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\" }" } ] } } |
Method:/configuration /delete
{ "id": "configuration object id" } |
{ "error":0 } |
Method:/configuration /set
{ "id": "configuration object id", "attrs": { "category":"DGS", "name":"SMS", "description":"description", "options": "{ \"provider\":\"clickatell\", \"username\":\"john.smith\", \"password\":\"secret\" }" } } |
{ "error":0 } |
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 } |