[Index]
Configuration Templates are applied to data models and domain models. When they are created, all the attribute fields of the model are exposed. Default values or macros can then be assigned to these fields as required. For array elements of the related data- and domain models, a list and a variable can be specified to loop through so that a value is applied to the model array. More than one Configuration Template can be created for a model. When an instance of the model is added or updated, the Configuration Template that has been enabled for the model applies.
Model ref.: data/ConfigurationTemplate
The full URL would include the host-proxy name: https://[host-proxy].
Variables are enclosed in square brackets.
{ "$schema": "http://json-schema.org/draft-03/schema", "type": "object", "properties": { "name": { "required": true, "type": "string", "description": "The name that is given to the Configuration Template.", "title": "Name" }, "template": { "required": true, "type": "string", "description": "The contents of the template, such as defaults and macros. The names shown in the template are determined by the attribute names of the Target Model Type.", "title": "Template" }, "foreach": { "items": { "type": "object", "properties": { "property": { "required": true, "type": "string", "description": "The field/property to iterate over.", "title": "Property" }, "context_var": { "required": true, "type": "string", "description": "The context variable that will contain the data from the iteration.", "title": "Context Variable" }, "macro_list": { "required": true, "type": "string", "description": "The macro that produces the list to iterate over.", "title": "Macro List" } } }, "required": false, "type": "array", "description": "Iterates over the list returned by the macro and appends array elements to the specified field.", "title": "Foreach Elements" }, "merge_strategy": { "description": "Determines how this CFT will be merged into another CFT when it is being processed in a PWF.", "title": "Merge Strategy", "default": "additive", "required": false, "choices": [ { "value": "additive", "title": "Additive" }, { "value": "replace", "title": "Replace" } ], "type": "string" }, "target_model_type": { "required": true, "type": "string", "description": "The target model type and name that the Configuration Template applies to.", "title": "Target Model Type" }, "feature_usage": { "items": { "type": "string" }, "type": "array", "description": "Custom feature usage identifier, is the feature name and is used as an additional filter for gui rule filtering", "title": "Custom feature usage identifier" }, "schema_defaults": { "items": { "type": "string" }, "required": false, "type": "array", "description": "Applicable when the configuration template is used directly in API requests. This attribute contains a list of paths to the properties of the template section that must be used to enrich the default values of the schema. All paths specified must refer to array attributes.", "title": "Schema Defaults" }, "description": { "required": false, "type": "string", "description": "A description for the Configuration Template instance.", "title": "Description" } }, "schema_version": "0.1.9" }
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk delete [pkid1],[pkid2]... | DELETE | /api/data/ConfigurationTemplate/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/ConfigurationTemplate/[pkid1]", "/api/data/ConfigurationTemplate/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Bulk Modify | GET | /api/data/ConfigurationTemplate/bulk_update/?schema=&schema_rules=true |
|
|
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk Modify | POST | /api/data/ConfigurationTemplate/bulk_update/ |
|
For example: {"data":{"name":"value"}, "meta":{}, "request_meta":{ "hrefs":["/api/v0/data/ConfigurationTemplate/[pkid1]", "/api/v0/data/ConfigurationTemplate/[pkid2]",...]}} |
GET http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/ConfigurationTemplate; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/ConfigurationTemplate/export/ |
|
{ "hrefs":["/api/data/ConfigurationTemplate/[pkid1]", "/api/data/ConfigurationTemplate/[pkid2]",...]}} |
For export_format=json, the response is a time stamped zip file of data in JSON as in the system database. Item properties such as strings that are empty or Boolean values that are not set, are not included. The filename in the response is of the format as the example:
Content-Disposition: attachment; filename=export_2013-05-17_14:20:19.186444.json.zip Content-Language:en Content-Type:application/x-zip
For export_format=raw_xlsx, the response is a MS Excel spreadsheet with columns corresponding to the JSON format export and a response filename format:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
For export_format=xlsx, the response is a MS Excel spreadsheet, arranged by any Field Display Policies that apply. The columns correspond with those of a Bulk Load Template export sheet. The response filename format is:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_formatted_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
The XLSX format can be used to bulk load instances of data/ConfigurationTemplate and the JSON format can be used to import instances of data/ConfigurationTemplate.
GET http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/ConfigurationTemplate | POST | /api/data/ConfigurationTemplate/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Migration Template | GET | /api/data/ConfigurationTemplate/migration/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/ConfigurationTemplate/ |
|
The data/ConfigurationTemplate schema and all instances as JSON. |
(The list will return 0 to 3 data/ConfigurationTemplate instances)
{ "operations": [ "help", "get", "export_bulkload_template", "list", "update", "remove", "move", "transform", "export", "migration", "bulk_update_form" ], "pagination": { "direction": "asc", "order_by": "name", "maximum_limit": 2000, "skip": 0, "current": "/api/data/ConfigurationTemplate/?skip=0&limit=3&order_by=name&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 2204 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": { "hierarchy": true, "unique": [ "name", "target_model_type" ] }, "schema_version": "0.1.9", "references": { "device": [ { "pkid": "", "href": "" } ], "children": [], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "remove": { "support_async": true, "class": "delete", "href": "/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "bulk_update_form": { "support_async": false, "class": "update", "href": "/api/data/ConfigurationTemplate/bulk_update/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Bulk Modify" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/ConfigurationTemplate/export/?hierarchy=[hierarchy]", "method": "POST", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "export_bulkload_template": { "support_async": false, "class": "bulkload_template", "href": "/api/data/ConfigurationTemplate/export_bulkload_template/?hierarchy=[hierarchy]", "method": "POST", "title": "Export Bulk Load Template" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/ConfigurationTemplate/+tag/?hierarchy=[hierarchy]", "class": "tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/ConfigurationTemplate/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "migration": { "support_async": false, "class": "migration", "href": "/api/data/ConfigurationTemplate/migration/?hierarchy=[hierarchy]", "method": "GET", "title": "Migration Template" } }, { "list": { "support_async": false, "class": "list", "href": "/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/ConfigurationTemplate/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "data/ConfigurationTemplate", "model_specific_actions": [ "bulk_update_form", "clone", "export", "export_bulkload_template", "get", "help", "list", "migration", "remove", "tag", "tag_version", "update" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "target_model_type", "title": "Target Model Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "resources": [ { "pkid": "5df35f6fce894e0012b34e2a", "meta": { "tags": [ "HcsDialPlan", "V4UC", "ba_SYSdotHCS_with_hcmf" ], "cached": true, "title": "__DP_UpdateSite_CT - data/DpSite", "business_key": { "hierarchy": true, "unique": [ "name", "target_model_type" ] }, "schema_version": "0.1.9", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df35f6fce894e0012b34e2a", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/" } ], "parent": [ { "pkid": "5df35e48ce894e0012b345a1", "href": "/api/data/HierarchyNode/5df35e48ce894e0012b345a1" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/clone/?schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/+tag/", "class": "tag", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/+tag_version/", "class": "tag_version", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/help", "method": "GET", "title": "Help" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35e48ce894e0012b345a1", "5df35f6fce894e0012b34e2a" ], "model_type": "data/ConfigurationTemplate", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "target_model_type", "title": "Target Model Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "entity_": "data/ConfigurationTemplate", "description": "Template to activate a dial plan site.", "pkid": "5df35f6fce894e0012b34e2b", "name": "__DP_UpdateSite_CT", "template": { "extLen": "{{ previous.extLen }}", "siteName": "{{ previous.siteName }}", "emerNumber": "{{ pwf.evalEmerNumber }}", "custName": "{{ previous.custName }}", "ext": "{{ previous.ext }}", "extPrefixReq": "(( previous.extPrefixReq == True )) <(( True ))> <(( False ))>", "siteId": "{{ previous.siteId }}", "active": "(( input.active == True )) <(( True ))> <(( False ))>", "pubNumber": "{{ pwf.evalPubNumber }}", "slc": "{{ previous.slc }}" }, "target_model_type": "data/DpSite", "hierarchy_friendly_name": "hcs (Hcs)", "hierarchy_path": "sys.hcs" } }, { "pkid": "5df35d87ce894e0012b33c80", "meta": { "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "cached": true, "title": "_DPCountryCSSCFT - device/cucm/Css", "business_key": { "hierarchy": true, "unique": [ "name", "target_model_type" ] }, "schema_version": "0.1.9", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df35d87ce894e0012b33c80", "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "clone": { "support_async": false, "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/clone/?schema=&schema_rules=true", "title": "Clone", "class": "clone", "method": "GET" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "support_async": false, "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/data/ConfigurationTemplate/5df35d87ce894e0012b33c80/help", "title": "Help", "class": "help", "method": "GET" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35d87ce894e0012b33c80" ], "model_type": "data/ConfigurationTemplate", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "target_model_type", "title": "Target Model Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "_DPCountryCSSCFT", "pkid": "5df35d87ce894e0012b33c81", "foreach": [ { "property": "members.member", "context_var": "COUNTRYMEMPT", "macro_list": "{# input.COUNTRYCSS.CountryPartition #}" } ], "template": { "name": "{{input.COUNTRYCSS.CountryCSS}}", "members": { "member": [ { "index": "{{ cft.COUNTRYMEMPT.SEQ}}", "routePartitionName": "{{ cft.COUNTRYMEMPT.CountryMemPT }}" } ] }, "partitionUsage": "General" }, "target_model_type": "device/cucm/Css", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" } }, { "pkid": "5df35d5dce894e0012b33b80", "meta": { "tags": [ "feature_tag_add_dialplan", "V4UC", "ba_EndToEnd" ], "cached": true, "title": "_DPCountryEDXFCFT - device/cucm/CalledPartyTransformationPattern", "business_key": { "hierarchy": true, "unique": [ "name", "target_model_type" ] }, "schema_version": "0.1.9", "summary": "false", "references": { "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "self": [ { "pkid": "5df35d5dce894e0012b33b80", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/" } ], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/", "class": "delete", "title": "Delete" } }, { "clone": { "support_async": false, "method": "GET", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/clone/?schema=&schema_rules=true", "class": "clone", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "method": "GET", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/export/", "class": "export", "view": "/api/view/ExportData/add/" } }, { "tag": { "title": "Tag", "support_async": true, "class": "tag", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/+tag/", "method": "PATCH", "view": "/api/view/TagNameForm/add/" } }, { "tag_version": { "title": "Tag Version", "support_async": true, "class": "tag_version", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/+tag_version/", "method": "PATCH", "view": "/api/view/TagVersionForm/add/" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/data/ConfigurationTemplate/5df35d5dce894e0012b33b80/help", "class": "help", "title": "Help" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35d5dce894e0012b33b80" ], "model_type": "data/ConfigurationTemplate", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "target_model_type", "title": "Target Model Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "_DPCountryEDXFCFT", "pkid": "5df35d5dce894e0012b33b81", "template": { "pattern": "{{input.COUNTRYEDXF.CountryDNISXF}}", "routePartitionName": "{{input.COUNTRYEDXF.CountryDNISXFPT}}" }, "target_model_type": "device/cucm/CalledPartyTransformationPattern", "hierarchy_friendly_name": "sys (System)", "hierarchy_path": "sys" } } ] }
(Show the first instance)
{ "pkid": "5df35f6fce894e0012b34e2a", "meta": { "tags": [ "HcsDialPlan", "V4UC", "ba_SYSdotHCS_with_hcmf" ], "cached": false, "title": "__DP_UpdateSite_CT - data/DpSite", "business_key": { "hierarchy": true, "unique": [ "name", "target_model_type" ] }, "schema_version": "0.1.9", "references": { "parent": [ { "pkid": "5df35e48ce894e0012b345a1", "href": "/api/data/HierarchyNode/5df35e48ce894e0012b345a1" } ], "self": [ { "pkid": "5df35f6fce894e0012b34e2a", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/" } ], "foreign_key": [], "device": [ { "pkid": "", "href": "" } ], "owner": [ { "pkid": "" } ], "children": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "clone": { "support_async": false, "class": "clone", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/clone/?hierarchy=[hierarchy]&schema=&schema_rules=true", "method": "GET", "title": "Clone" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "tag": { "title": "Tag", "support_async": true, "method": "PATCH", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/+tag/?hierarchy=[hierarchy]", "class": "tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "title": "Tag Version", "support_async": true, "method": "PATCH", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/+tag_version/?hierarchy=[hierarchy]", "class": "tag_version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "get": { "support_async": false, "class": "get", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/data/ConfigurationTemplate/5df35f6fce894e0012b34e2a/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "path": [ "6t0ggef2c0deab00hb595101", "5df35e48ce894e0012b345a1", "5df35f6fce894e0012b34e2a" ], "model_type": "data/ConfigurationTemplate", "system_resource": true, "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "target_model_type", "title": "Target Model Type" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "entity_": "data/ConfigurationTemplate", "description": "Template to activate a dial plan site.", "pkid": "5df35f6fce894e0012b34e2b", "template": { "extLen": "{{ previous.extLen }}", "siteName": "{{ previous.siteName }}", "emerNumber": "{{ pwf.evalEmerNumber }}", "custName": "{{ previous.custName }}", "ext": "{{ previous.ext }}", "extPrefixReq": "(( previous.extPrefixReq == True )) <(( True ))> <(( False ))>", "siteId": "{{ previous.siteId }}", "active": "(( input.active == True )) <(( True ))> <(( False ))>", "pubNumber": "{{ pwf.evalPubNumber }}", "slc": "{{ previous.slc }}" }, "target_model_type": "data/DpSite", "name": "__DP_UpdateSite_CT" } }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/ConfigurationTemplate. | GET | /api/data/ConfigurationTemplate/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/ConfigurationTemplate as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/ConfigurationTemplate/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/ConfigurationTemplate/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/data/ConfigurationTemplate/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a selected [export_format] of the schema and a single instance with [pkid] of data/ConfigurationTemplate; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/ConfigurationTemplate/[pkid]/export |
|
The response is an attachment. Refer to the list below. |
For export_format=raw_xlsx, the response is a "raw" MS Excel spreadsheet with columns corresponding to the JSON format export and a response format:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
For export_format=xlsx, the response is a MS Excel spreadsheet, formatted to show all columns and a response format:
Content-Disposition: attachment; filename=<resource_type>_<resource_name>_exportedsheet_formatted_CCYY-MM-DD_HH-MM-SS.xlsx Content-Language:en Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
For export_format=json, the response is a time stamped zip file of data in JSON and a response format:
Content-Disposition: attachment; filename=export_2013-05-17_14:20:19.186444.json.zip Content-Language:en Content-Type:application/x-zip
The XLSX format can be used to bulk load instances of data/ConfigurationTemplate and the JSON format can be used to import instances of data/ConfigurationTemplate.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Tag | PATCH | /api/data/ConfigurationTemplate/[pkid]/+tag | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/ConfigurationTemplate/[pkid] | hierarchy=[hierarchy] | The data/ConfigurationTemplate instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/ConfigurationTemplate/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/ConfigurationTemplate. |