[Index]
This relation implements the workflows to manage SoftKey Templates.
Model ref.: relation/SoftKeyTemplates
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": { "baseSoftkeyTemplateName": { "minItems": 1, "required": true, "type": "string", "maxItems": 1, "title": "Base Softkey Template Name" }, "SKS": { "type": "object", "properties": { "softKeyTemplateName": { "title": "Softkey Template Name", "minItems": 0, "required": false, "readonly": true, "maxItems": 1, "type": "string" }, "addCallStates": { "title": "Add Call States", "minItems": 0, "required": false, "maxItems": 1, "type": [ "object", "null" ], "properties": { "callState": { "name": "callState", "title": "Call State", "minItems": 1, "items": { "type": [ "object", "null" ], "properties": { "softKeys": { "description": "List of mandatory keys for each callstate ::\n\t\t\t\t\t\tOn Hook - NewCall\n\t\t\t\t\t\tConnected - End Call\n\t\t\t\t\t\tOn Hold - Resume\n\t\t\t\t\t\tOff Hook - End Call\n\t\t\t\t\t\tConnected Transfer - Transfer\n\t\t\t\t\t\tDigits After First - Backward\n\t\t\t\t\t\tConnected Conference - Conference\n\t\t\t\t\t\tRing Out - End Call\n\t\t\t\t\t\tOff Hook With Feature - End Call\n\t\t\t\t\t", "title": "Soft Keys", "minItems": 0, "required": false, "maxItems": 1, "type": [ "object", "null" ], "properties": { "softKey": { "name": "softKey", "title": "Soft Key", "minItems": 0, "items": { "type": [ "object", "null" ], "properties": { "positionId": { "description": "\n\t\t\t\t\t\tRead-Only.The positionId has values starting with 0 and get incremented by 1 for each call state.\n\t\t\t\t\t", "title": "Position Id", "minItems": 0, "required": false, "maxItems": 1, "type": "integer", "name": "positionId" }, "softKeyName": { "name": "softKeyName", "title": "Soft Key Name", "minItems": 0, "required": false, "maxItems": 1, "type": "string" } } }, "required": false, "type": "array" } }, "name": "softKeys" }, "callStateName": { "name": "callStateName", "title": "Call State Name", "minItems": 0, "required": false, "maxItems": 1, "type": [ "string", "null" ] } } }, "required": true, "type": "array" } } }, "callStates": { "title": "Call States", "minItems": 12, "required": false, "maxItems": 12, "type": [ "object", "null" ], "properties": { "callState": { "name": "callState", "title": "Call State", "minItems": 12, "items": { "type": [ "object", "null" ], "properties": { "softKeys": { "description": "List of mandatory keys for each callstate ::\n\t\t\t\t\t\tOn Hook - NewCall\n\t\t\t\t\t\tConnected - End Call\n\t\t\t\t\t\tOn Hold - Resume\n\t\t\t\t\t\tOff Hook - End Call\n\t\t\t\t\t\tConnected Transfer - Transfer\n\t\t\t\t\t\tDigits After First - Backward\n\t\t\t\t\t\tConnected Conference - Conference\n\t\t\t\t\t\tRing Out - End Call\n\t\t\t\t\t\tOff Hook With Feature - End Call\n\t\t\t\t\t", "title": "Soft Keys", "minItems": 0, "required": false, "maxItems": 1, "type": [ "object", "null" ], "properties": { "softKey": { "name": "softKey", "title": "Soft Key", "minItems": 0, "items": { "type": [ "object", "null" ], "properties": { "positionId": { "description": "\n\t\t\t\t\t\tRead-Only.The positionId has values starting with 0 and get incremented by 1 for each call state.\n\t\t\t\t\t", "title": "Position Id", "minItems": 0, "required": false, "maxItems": 1, "type": "integer", "name": "positionId" }, "softKeyName": { "name": "softKeyName", "title": "Softkey Name", "minItems": 0, "format": "uri", "required": false, "choices": [], "target_attr": "name", "maxItems": 1, "store_encrypted": false, "target_model_type": "device/cucm/SoftKey", "type": "string", "target": "/api/device/cucm/SoftKey/choices/?field=name&format=json&hierarchy=[hierarchy]&auth_token=[authtoken] } } }, "required": false, "type": "array" } }, "name": "softKeys" }, "callStateName": { "name": "callStateName", "title": "Call State Name", "minItems": 0, "required": false, "maxItems": 1, "type": [ "string", "null" ] } } }, "required": true, "maxItems": 12, "type": "array" } } }, "name": { "description": "Not nullable.", "title": "Name", "minItems": 0, "required": false, "maxItems": 1, "maxLength": 100, "type": "string" }, "removeCallStates": { "title": "Remove Call States", "minItems": 0, "required": false, "maxItems": 1, "type": [ "object", "null" ], "properties": { "callState": { "name": "callState", "title": "Call State", "minItems": 1, "items": { "type": [ "object", "null" ], "properties": { "softKeys": { "description": "List of mandatory keys for each callstate ::\n\t\t\t\t\t\tOn Hook - NewCall\n\t\t\t\t\t\tConnected - End Call\n\t\t\t\t\t\tOn Hold - Resume\n\t\t\t\t\t\tOff Hook - End Call\n\t\t\t\t\t\tConnected Transfer - Transfer\n\t\t\t\t\t\tDigits After First - Backward\n\t\t\t\t\t\tConnected Conference - Conference\n\t\t\t\t\t\tRing Out - End Call\n\t\t\t\t\t\tOff Hook With Feature - End Call\n\t\t\t\t\t", "title": "Soft Keys", "minItems": 0, "required": false, "maxItems": 1, "type": [ "object", "null" ], "properties": { "softKey": { "name": "softKey", "title": "Soft Key", "minItems": 0, "items": { "type": [ "object", "null" ], "properties": { "positionId": { "description": "\n\t\t\t\t\t\tRead-Only.The positionId has values starting with 0 and get incremented by 1 for each call state.\n\t\t\t\t\t", "title": "Position Id", "minItems": 0, "required": false, "maxItems": 1, "type": "integer", "name": "positionId" }, "softKeyName": { "name": "softKeyName", "title": "Soft Key Name", "minItems": 0, "required": false, "maxItems": 1, "type": "string" } } }, "required": false, "type": "array" } }, "name": "softKeys" }, "callStateName": { "name": "callStateName", "title": "Call State Name", "minItems": 0, "required": false, "maxItems": 1, "type": [ "string", "null" ] } } }, "required": true, "type": "array" } } } }, "title": "Sks" }, "name": { "title": "Name", "minItems": 1, "required": true, "maxItems": 1, "maxLength": 100, "type": "string" }, "isDefault": { "minItems": 0, "required": false, "type": "boolean", "maxItems": 1, "title": "Is Default" }, "description": { "title": "Description", "minItems": 1, "required": true, "maxItems": 1, "maxLength": 100, "type": "string" } }, "schema_version": "1.0.0" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/relation/SoftKeyTemplates/add/ |
|
The GUI Add form of relation/SoftKeyTemplates as JSON |
The API call to the /add/ URL can only be made from a hierarchy that allows the model type to be added. The actions in the response shows the url for the POST API call to create an instance.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Create | POST | /api/relation/SoftKeyTemplates/ | hierarchy=[hierarchy] |
|
tool/Transaction/[trans pkid]to inspect the created resource and its instance pkid.
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Bulk delete [pkid1],[pkid2]... | DELETE | /api/relation/SoftKeyTemplates/ | hierarchy=[hierarchy] | {"hrefs":["/api/relation/SoftKeyTemplates/[pkid1]", "/api/relation/SoftKeyTemplates/[pkid2]", ...]} |
GET http://[host-proxy]/api/relation/SoftKeyTemplates/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Move the instance with [pkid] to [target_hierarchy] | POST | /api/tool/DataMove/?model_type=relation/SoftKeyTemplates |
|
{"hrefs": ["/api/relation/SoftKeyTemplates/[pkid]"]} |
Bulk Move | POST | /api/tool/DataMove/?model_type=relation/SoftKeyTemplates |
|
{"hrefs": ["/api/relation/SoftKeyTemplates/[pkid1]", "/api/relation/SoftKeyTemplates/[pkid2]",...]} |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of relation/SoftKeyTemplates; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/relation/SoftKeyTemplates/export/ |
|
{ "hrefs":["/api/relation/SoftKeyTemplates/[pkid1]", "/api/relation/SoftKeyTemplates/[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 relation/SoftKeyTemplates and the JSON format can be used to import instances of relation/SoftKeyTemplates.
GET http://[host-proxy]/api/relation/SoftKeyTemplates/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for relation/SoftKeyTemplates | POST | /api/relation/SoftKeyTemplates/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Configuration Template | GET | /api/relation/SoftKeyTemplates/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/relation/SoftKeyTemplates/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/relation/SoftKeyTemplates/ |
|
The relation/SoftKeyTemplates schema and all instances as JSON. |
(The list will return 0 to 3 relation/SoftKeyTemplates instances)
{ "operations": [ "field_display_policy", "configuration_template", "help", "get", "export_bulkload_template", "move", "list", "update", "remove", "add", "bulk_update", "export" ], "pagination": { "direction": "asc", "order_by": "name", "maximum_limit": 2000, "skip": 0, "current": "/api/relation/SoftKeyTemplates/?skip=0&limit=3&order_by=name&direction=asc&traversal=default", "limit": 3, "total_limit": null, "total": 36 }, "meta": { "tags": [], "cached": true, "title": "", "business_key": {}, "schema_version": "1.0.0", "references": { "device": [ { "pkid": "", "href": "" } ], "self": [ { "pkid": null, "href": "/api/relation/SoftKeyTemplates/None/" } ], "children": [], "parent": [ { "pkid": "6t0ggef2c0deab00hb595101", "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101" } ], "foreign_key": [] }, "actions": [ { "add": { "support_async": false, "class": "add", "href": "/api/relation/SoftKeyTemplates/add/?hierarchy=[hierarchy]", "method": "GET", "title": "Add" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/relation/SoftKeyTemplates/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "move": { "title": "Move", "support_async": true, "class": "move", "href": "/api/tool/DataMove/?hierarchy=[hierarchy]&model_type=relation/SoftKeyTemplates", "method": "POST", "view": "/api/tool/DataMove/?auth_token=[authtoken] } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/SoftKeyTemplates/export/?hierarchy=[hierarchy]", "method": "POST", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "export_bulkload_template": { "support_async": false, "class": "bulkload_template", "href": "/api/relation/SoftKeyTemplates/export_bulkload_template/?hierarchy=[hierarchy]", "method": "POST", "title": "Export Bulk Load Template" } }, { "configuration_template": { "support_async": false, "class": "config", "href": "/api/relation/SoftKeyTemplates/configuration_template/?hierarchy=[hierarchy]", "method": "GET", "title": "Configuration Template" } }, { "field_display_policy": { "support_async": false, "class": "display_policy", "href": "/api/relation/SoftKeyTemplates/field_display_policy/?hierarchy=[hierarchy]", "method": "GET", "title": "Field Display Policy" } }, { "list": { "support_async": false, "class": "list", "href": "/api/relation/SoftKeyTemplates/?hierarchy=[hierarchy]", "method": "GET", "title": "List" } }, { "help": { "support_async": false, "class": "help", "href": "/api/relation/SoftKeyTemplates/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "relation/SoftKeyTemplates", "model_specific_actions": [ "field_display_policy", "configuration_template", "help", "get", "export_bulkload_template", "move", "list", "update", "remove", "add", "export" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "isDefault", "title": "Is Default" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "21.2", "tagged_versions": [] }, "resources": [ { "pkid": "63054ce3c46e74b4687be569", "meta": { "tags": [], "cached": true, "title": "Cisco Assistant with Feature Hardkeys", "business_key": {}, "schema_version": "", "summary": "false", "references": { "owner": [ { "pkid": "" } ], "device": [ { "pkid": "63054c77c46e74b4687bd11b", "href": "/api/v0/data/CallManager/63054c77c46e74b4687bd11b" } ], "self": [ { "pkid": "63054ce3c46e74b4687be569", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/" } ], "parent": [ { "pkid": "63054bfdc46e74b4687bb868", "href": "/api/data/HierarchyNode/63054bfdc46e74b4687bb868" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/", "method": "DELETE", "title": "Delete" } }, { "move": { "title": "Move", "support_async": true, "class": "move", "href": "/api/tool/DataMove/63054ce3c46e74b4687be569/?model_type=relation/SoftKeyTemplates", "method": "POST", "view": "/api/tool/DataMove/" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "class": "get", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/help", "method": "GET", "title": "Help" } } ], "model_type": "relation/SoftKeyTemplates", "path": [ "6t0ggef2c0deab00hb595101", "6305086243fcc416f18ea4ac", "63054bfdc46e74b4687bb868", "63054ce3c46e74b4687be569" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "isDefault", "title": "Is Default" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "Cisco Assistant with Feature Hardkeys", "hierarchy": "63054bfdc46e74b4687bb868", "description": "Standard template for assistant phones - features (Hold, Transfer, etc.) on hardkeys", "baseSoftkeyTemplateName": "Cisco Assistant with Feature Hardkeys", "hierarchy_friendly_name": "CS-P (Provider)", "hierarchy_path": "sys.hcs.CS-P", "isDefault": false, "summary_device": "Shared CUCM, 192.168.100.17, 8443, hcs.CS-P" } }, { "pkid": "63054e0bc46e74b4687c1e09", "meta": { "tags": [], "cached": true, "title": "Cisco Assistant with Feature Hardkeys", "business_key": {}, "schema_version": "", "summary": "false", "references": { "owner": [ { "pkid": "" } ], "device": [ { "pkid": "63054ce5c46e74b4687be61f", "href": "/api/v0/data/CallManager/63054ce5c46e74b4687be61f" } ], "self": [ { "pkid": "63054e0bc46e74b4687c1e09", "href": "/api/relation/SoftKeyTemplates/63054e0bc46e74b4687c1e09/" } ], "parent": [ { "pkid": "63054c4fc46e74b4687bc91b", "href": "/api/data/HierarchyNode/63054c4fc46e74b4687bc91b" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "href": "/api/relation/SoftKeyTemplates/63054e0bc46e74b4687c1e09/", "title": "Modify", "class": "update", "method": "PUT" } }, { "remove": { "support_async": true, "href": "/api/relation/SoftKeyTemplates/63054e0bc46e74b4687c1e09/", "title": "Delete", "class": "delete", "method": "DELETE" } }, { "move": { "title": "Move", "support_async": true, "class": "move", "href": "/api/tool/DataMove/63054e0bc46e74b4687c1e09/?model_type=relation/SoftKeyTemplates", "method": "POST", "view": "/api/tool/DataMove/" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/SoftKeyTemplates/63054e0bc46e74b4687c1e09/export/", "method": "GET", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "href": "/api/relation/SoftKeyTemplates/63054e0bc46e74b4687c1e09/", "title": "Get", "class": "get", "method": "GET" } }, { "help": { "support_async": false, "href": "/api/relation/SoftKeyTemplates/63054e0bc46e74b4687c1e09/help", "title": "Help", "class": "help", "method": "GET" } } ], "model_type": "relation/SoftKeyTemplates", "path": [ "6t0ggef2c0deab00hb595101", "6305086243fcc416f18ea4ac", "63054bfdc46e74b4687bb868", "63054c3bc46e74b4687bc61b", "63054c4fc46e74b4687bc91b", "63054e0bc46e74b4687c1e09" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "isDefault", "title": "Is Default" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "Cisco Assistant with Feature Hardkeys", "hierarchy": "63054c4fc46e74b4687bc91b", "description": "Standard template for assistant phones - features (Hold, Transfer, etc.) on hardkeys", "baseSoftkeyTemplateName": "Cisco Assistant with Feature Hardkeys", "hierarchy_friendly_name": "AAAGlobal (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-NB.AAAGlobal", "isDefault": false, "summary_device": "Dedicated CUCM, 192.168.100.15, 8443, hcs.CS-P.CS-NB.AAAGlobal" } }, { "pkid": "63054fb0c46e74b4687cb175", "meta": { "tags": [], "cached": true, "title": "Cisco Assistant with Feature Hardkeys", "business_key": {}, "schema_version": "", "summary": "false", "references": { "owner": [ { "pkid": "" } ], "device": [ { "pkid": "63054d97c46e74b4687c0528", "href": "/api/v0/data/CallManager/63054d97c46e74b4687c0528" } ], "self": [ { "pkid": "63054fb0c46e74b4687cb175", "href": "/api/relation/SoftKeyTemplates/63054fb0c46e74b4687cb175/" } ], "parent": [ { "pkid": "63054c4fc46e74b4687bc91b", "href": "/api/data/HierarchyNode/63054c4fc46e74b4687bc91b" } ], "foreign_key": [] }, "actions": [ { "update": { "support_async": true, "method": "PUT", "href": "/api/relation/SoftKeyTemplates/63054fb0c46e74b4687cb175/", "class": "update", "title": "Modify" } }, { "remove": { "support_async": true, "method": "DELETE", "href": "/api/relation/SoftKeyTemplates/63054fb0c46e74b4687cb175/", "class": "delete", "title": "Delete" } }, { "move": { "title": "Move", "support_async": true, "method": "POST", "href": "/api/tool/DataMove/63054fb0c46e74b4687cb175/?model_type=relation/SoftKeyTemplates", "class": "move", "view": "/api/tool/DataMove/" } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "method": "GET", "href": "/api/relation/SoftKeyTemplates/63054fb0c46e74b4687cb175/export/", "class": "export", "view": "/api/view/ExportData/add/" } }, { "get": { "support_async": false, "method": "GET", "href": "/api/relation/SoftKeyTemplates/63054fb0c46e74b4687cb175/", "class": "get", "title": "Get" } }, { "help": { "support_async": false, "method": "GET", "href": "/api/relation/SoftKeyTemplates/63054fb0c46e74b4687cb175/help", "class": "help", "title": "Help" } } ], "model_type": "relation/SoftKeyTemplates", "path": [ "6t0ggef2c0deab00hb595101", "6305086243fcc416f18ea4ac", "63054bfdc46e74b4687bb868", "63054c3bc46e74b4687bc61b", "63054c4fc46e74b4687bc91b", "63054fb0c46e74b4687cb175" ], "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "isDefault", "title": "Is Default" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "name": "Cisco Assistant with Feature Hardkeys", "hierarchy": "63054c4fc46e74b4687bc91b", "description": "Standard template for assistant phones - features (Hold, Transfer, etc.) on hardkeys", "baseSoftkeyTemplateName": "Cisco Assistant with Feature Hardkeys", "hierarchy_friendly_name": "AAAGlobal (Customer)", "hierarchy_path": "sys.hcs.CS-P.CS-NB.AAAGlobal", "isDefault": false, "summary_device": "Dedicated CUCM, 192.168.100.16, 8443, hcs.CS-P.CS-NB.AAAGlobal" } } ] }
(Show the first instance)
{ "pkid": "63054ce3c46e74b4687be569", "meta": { "tags": [], "cached": true, "cache_control_policy": "cache_then_device", "title": "Cisco Assistant with Feature Hardkeys", "business_key": {}, "schema_version": "1.0.0", "references": { "device": [ { "pkid": "63054c77c46e74b4687bd11b", "href": "/api/v0/data/CallManager/63054c77c46e74b4687bd11b" } ], "self": [ { "pkid": "63054ce3c46e74b4687be569", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/" } ], "children": [], "parent": [ { "pkid": "63054bfdc46e74b4687bb868", "href": "/api/data/HierarchyNode/63054bfdc46e74b4687bb868" } ] }, "actions": [ { "update": { "support_async": true, "class": "update", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/?hierarchy=[hierarchy]", "method": "PUT", "title": "Modify" } }, { "remove": { "support_async": true, "class": "delete", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/?hierarchy=[hierarchy]", "method": "DELETE", "title": "Delete" } }, { "move": { "title": "Move", "support_async": true, "class": "move", "href": "/api/tool/DataMove/63054ce3c46e74b4687be569/?hierarchy=[hierarchy]&model_type=relation/SoftKeyTemplates", "method": "POST", "view": "/api/tool/DataMove/?auth_token=[authtoken] } }, { "export": { "title": "Export", "support_async": false, "submit": "payload", "class": "export", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/export/?hierarchy=[hierarchy]", "method": "GET", "view": "/api/view/ExportData/add/?auth_token=[authtoken] } }, { "get": { "support_async": false, "class": "get", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/?hierarchy=[hierarchy]", "method": "GET", "title": "Get" } }, { "help": { "support_async": false, "class": "help", "href": "/api/relation/SoftKeyTemplates/63054ce3c46e74b4687be569/help?hierarchy=[hierarchy]", "method": "GET", "title": "Help" } } ], "model_type": "relation/SoftKeyTemplates", "summary_attrs": [ { "name": "name", "title": "Name" }, { "name": "description", "title": "Description" }, { "name": "isDefault", "title": "Is Default" }, { "allow_filtering": true, "name": "hierarchy_friendly_name", "title": "Located At" }, { "allow_filtering": false, "name": "summary_device", "title": "Device" } ], "api_version": "21.2", "tagged_versions": [] }, "data": { "baseSoftkeyTemplateName": "Cisco Assistant with Feature Hardkeys", "SKS": { "softKeyTemplateName": "Cisco Assistant with Feature Hardkeys", "callStates": { "callState": [ { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Redial" }, { "positionId": 1, "softKeyName": "NewCall" }, { "positionId": 2, "softKeyName": "Forward All" } ] }, "callStateName": "On Hook" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Undefined" }, { "positionId": 1, "softKeyName": "End Call" }, { "positionId": 2, "softKeyName": "Redirect" }, { "positionId": 3, "softKeyName": "Conference List" }, { "positionId": 4, "softKeyName": "Transfer to Voice Mail" }, { "positionId": 5, "softKeyName": "Park" } ] }, "callStateName": "Connected" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Resume" }, { "positionId": 1, "softKeyName": "NewCall" }, { "positionId": 2, "softKeyName": "Redirect" }, { "positionId": 3, "softKeyName": "Transfer to Voice Mail" } ] }, "callStateName": "On Hold" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Answer" }, { "positionId": 1, "softKeyName": "Redirect" }, { "positionId": 2, "softKeyName": "Transfer to Voice Mail" } ] }, "callStateName": "Ring In" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Redial" }, { "positionId": 1, "softKeyName": "End Call" }, { "positionId": 2, "softKeyName": "Forward All" }, { "positionId": 3, "softKeyName": "Pick Up" }, { "positionId": 4, "softKeyName": "Group Pick Up" }, { "positionId": 5, "softKeyName": "Meet Me" } ] }, "callStateName": "Off Hook" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Undefined" }, { "positionId": 1, "softKeyName": "End Call" }, { "positionId": 2, "softKeyName": "Transfer" } ] }, "callStateName": "Connected Transfer" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Backward" }, { "positionId": 1, "softKeyName": "End Call" } ] }, "callStateName": "Digits After First" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Undefined" }, { "positionId": 1, "softKeyName": "End Call" }, { "positionId": 2, "softKeyName": "Conference" } ] }, "callStateName": "Connected Conference" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Undefined" }, { "positionId": 1, "softKeyName": "End Call" } ] }, "callStateName": "Ring Out" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Redial" }, { "positionId": 1, "softKeyName": "End Call" } ] }, "callStateName": "Off Hook With Feature" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Barge" }, { "positionId": 1, "softKeyName": "NewCall" } ] }, "callStateName": "Remote In Use" }, { "softKeys": { "softKey": [ { "positionId": 0, "softKeyName": "Undefined" }, { "positionId": 1, "softKeyName": "End Call" } ] }, "callStateName": "Connected No Feature" } ] } }, "name": "Cisco Assistant with Feature Hardkeys", "isDefault": false, "description": "Standard template for assistant phones - features (Hold, Transfer, etc.) on hardkeys" } }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for relation/SoftKeyTemplates. | GET | /api/relation/SoftKeyTemplates/help | hierarchy=[hierarchy] | On-line help of Model ref.: relation/SoftKeyTemplates as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/relation/SoftKeyTemplates/[pkid]/ | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/relation/SoftKeyTemplates/[pkid]/ | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Move | POST | /api/tool/DataMove/[pkid]/?model_type=relation/SoftKeyTemplates | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a selected [export_format] of the schema and a single instance with [pkid] of relation/SoftKeyTemplates; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/relation/SoftKeyTemplates/[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 relation/SoftKeyTemplates and the JSON format can be used to import instances of relation/SoftKeyTemplates.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/relation/SoftKeyTemplates/[pkid]/ | hierarchy=[hierarchy] | The relation/SoftKeyTemplates instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/relation/SoftKeyTemplates/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for relation/SoftKeyTemplates. |