GET api/admin/v1/config-templates/{config}
int config, unique identifier of the configuration
int
200 OK
OK
Returns a list of configuration objects
{ "id": 56, "type": "OSD_Time", "body": "{\"token\":\"OsdToken_101\",\"VideoSourceConfigurationToken\":{\"_\":\"VideoSourceToken\"},\"Type\":\"Text\",\"Position\":{\"Type\":\"Custom\",\"Pos\":{\"x\":-1,\"y\":0.888889}},\"TextString\":{\"Type\":\"DateAndTime\",\"DateFormat\":\"MM/dd/yyyy\",\"TimeFormat\":\"HH:mm:ss\",\"FontSize\":32,\"FontColor\":{\"Color\":{\"X\":0,\"Y\":0,\"Z\":0,\"Colorspace\":\"http://www.onvif.org/ver10/colorspace/YCbCr\"}},\"Extension\":{\"any\":\"<tt:ChannelName>false</tt:ChannelName>\"}}}", "name": "1", "description": null, "service": "Any", "vendor": "HIKVISION", "model": "DS-2CD1043G0-I", "is_default": 1 }
401 Unauthorized
Unauthorized
Authorization token is not provided or is invalid. Obtaining a token
curl -k --request POST \ --url 'https://your-domainapi/admin/v1/config-templates/{config}' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "config": 0 }'
$data = array ( 'config' => 0, ); $context = stream_context_create([ 'ssl'=>['verify_peer' => false], 'http' => [ 'method' => 'GET', 'header' => "Content-Type: application/json\r Accept: application/json", 'content'=>json_encode($data) ] ]); $result = file_get_contents('https://your-domainapi/admin/v1/config-templates/{config}', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.