Skip to main content
Skip table of contents

Create configurations

Create configurations

POST api/admin/v1/config-templates

Method parameters

string name, name

string description, name

string type, type

string vendor, camera manufacturer

string model, camera model

boolean is_default, default configuration

json body, configuration (required parameter if the type is not archive_range). Should be a JSON string here

int service, service (if the type is archive_range)

200 OK

Returns a configuration object

    "id": 56,
    "type": "OSD_Time",
    "name": "1",
    "description": null,
    "service": "Any",
    "vendor": "HIKVISION",
    "model": "DS-2CD1043G0-I",
    "is_default": 1

401 Unauthorized

Authorization token is not provided or is invalid. Obtaining a token

curl -k --request POST \
	--url 'https://your-domainapi/admin/v1/config-templates' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "name": "string",
    "description": "string",
    "type": "string",
    "vendor": "string",
    "model": "string",
    "is_default": "boolean",
    "body": "json",
    "service": 0
$data = array (
  'name' => 'string',
  'description' => 'string',
  'type' => 'string',
  'vendor' => 'string',
  'model' => 'string',
  'is_default' => 'boolean',
  'body' => 'json',
  'service' => 0,
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
$result = file_get_contents('https://your-domainapi/admin/v1/config-templates', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.