[Index]
Associate a voice mail pilot number to a site. Each site can have at most one pilot number.
Model ref.: data/HcsDpAssociateVmPilotToSiteDAT
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": { "siteName": { "title": "Site Name", "description": "The site for which we are associating a voice mail service pilot number.", "type": "string", "maxLength": 1024, "format": "uri", "required": false, "readonly": false, "is_password": false, "displayable": false, "target": "/api/data/BaseSiteDAT/choices/?field=SiteName&format=json&hierarchy=[hierarchy]&auth_token=[authtoken], "target_attr": "SiteName", "target_model_type": "data/BaseSiteDAT", "choices": [] }, "voiceMailService": { "title": "Voice Mail Service", "description": "The Voice Mail Service to associate with the site.", "type": "string", "maxLength": 1024, "required": true, "readonly": false, "is_password": false, "displayable": false }, "pilotNumber": { "title": "Voice Mail Service Pilot Number", "description": "The voice mail pilot number to associate with the site.", "type": "string", "maxLength": 1024, "required": true, "readonly": false, "is_password": false, "displayable": false }, "e164Number": { "title": "E164 Number", "description": "The E164 Number to associate with the Pilot Number.", "type": "string", "maxLength": 1024, "required": false, "readonly": false, "is_password": false, "displayable": false } }, "schema_version": "2.1" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/data/HcsDpAssociateVmPilotToSiteDAT/add/ |
|
The GUI Add form of data/HcsDpAssociateVmPilotToSiteDAT 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/data/HcsDpAssociateVmPilotToSiteDAT | 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/data/HcsDpAssociateVmPilotToSiteDAT/ | hierarchy=[hierarchy] | {"hrefs":["/api/data/HcsDpAssociateVmPilotToSiteDAT/[pkid1]", "/api/data/HcsDpAssociateVmPilotToSiteDAT/[pkid2]", ...]} |
GET http://[host-proxy]/api/data/HcsDpAssociateVmPilotToSiteDAT/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Get a selected [export_format] of the schema and instances [pkid1], [pkid2],... of data/HcsDpAssociateVmPilotToSiteDAT; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | POST | /api/data/HcsDpAssociateVmPilotToSiteDAT/export/ |
|
{ "hrefs":["/api/data/HcsDpAssociateVmPilotToSiteDAT/[pkid1]", "/api/data/HcsDpAssociateVmPilotToSiteDAT/[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/HcsDpAssociateVmPilotToSiteDAT and the JSON format can be used to import instances of data/HcsDpAssociateVmPilotToSiteDAT.
GET http://[host-proxy]/api/data/HcsDpAssociateVmPilotToSiteDAT/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for data/HcsDpAssociateVmPilotToSiteDAT | POST | /api/data/HcsDpAssociateVmPilotToSiteDAT/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/data/HcsDpAssociateVmPilotToSiteDAT/ |
|
The data/HcsDpAssociateVmPilotToSiteDAT schema and all instances as JSON. |
(The list will return 0 to 3 data/HcsDpAssociateVmPilotToSiteDAT instances)
{ "pagination": { "skip": 0, "limit": 3, "maximum_limit": 2000, "total": 8, "total_limit": null, "order_by": "voiceMailService", "direction": "asc", "current": "/api/data/HcsDpAssociateVmPilotToSiteDAT/?skip=0&limit=3&order_by=voiceMailService&direction=asc&traversal=down" }, "operations": [ "help", "bulk_update_form", "update", "add", "export", "get", "list", "export_bulkload_template", "migration", "remove", "transform", "configuration_template", "field_display_policy" ], "meta": { "model_type": "data/HcsDpAssociateVmPilotToSiteDAT", "summary_attrs": [ { "name": "voiceMailService", "title": "Voice Mail Service" }, { "name": "pilotNumber", "title": "Voice Mail Service Pilot Number" }, { "name": "siteName", "title": "Site Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "", "business_key": { "unique": [ "siteName" ], "hierarchy": true }, "api_version": "21.2", "cached": true, "references": { "children": [], "parent": [ { "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101", "pkid": "6t0ggef2c0deab00hb595101" } ], "device": [ { "href": "", "pkid": "" } ], "foreign_key": [] }, "model_specific_actions": [ "get", "list", "add", "update", "remove", "help", "export", "export_bulkload_template", "help" ], "schema_version": "2.1", "actions": [ { "add": { "method": "GET", "class": "add", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/add/?hierarchy=[hierarchy]", "support_async": false, "title": "Add" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "export": { "method": "POST", "class": "export", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/export/?hierarchy=[hierarchy]", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/?auth_token=[authtoken], "submit": "payload" } }, { "export_bulkload_template": { "method": "POST", "class": "bulkload_template", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/export_bulkload_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Export Bulk Load Template" } }, { "list": { "method": "GET", "class": "list", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/?hierarchy=[hierarchy]", "support_async": false, "title": "List" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "resources": [ { "data": { "siteName": "CL1-AB-C-Paris", "e164Number": "\\+33561933299", "pilotNumber": "8880001", "voiceMailService": "ABG-VMS-1", "pkid": "5df0bb23ce894e00127725d5", "hierarchy_friendly_name": "CL1-AB-C-Paris (Site)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group.AB-C.CL1-AB-C-Paris" }, "meta": { "model_type": "data/HcsDpAssociateVmPilotToSiteDAT", "summary_attrs": [ { "name": "voiceMailService", "title": "Voice Mail Service" }, { "name": "pilotNumber", "title": "Voice Mail Service Pilot Number" }, { "name": "siteName", "title": "Site Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "title format", "business_key": { "hierarchy": true, "unique": [ "siteName" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5df0b737ce894e001275e4a7", "href": "/api/data/HierarchyNode/5df0b737ce894e001275e4a7" } ], "foreign_key": [ { "pkid": "5df0b73cce894e001275e67e", "path": "siteName", "model_type": "data/BaseSiteDAT" } ], "self": [ { "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/", "pkid": "5df0bb23ce894e00127725d2" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5da4c643ce894e0012225c90", "5df0b338ce894e001275535c", "5df0b3a3ce894e0012756904", "5df0b66bce894e001275a913", "5df0b6b6ce894e001275ca48", "5df0b737ce894e001275e4a7", "5df0bb23ce894e00127725d2" ], "schema_version": "2.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/", "support_async": true, "title": "Delete" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5df0bb23ce894e00127725d2" }, { "data": { "siteName": "CL1-AB-C-Grenoble", "e164Number": "\\+33561935499", "pilotNumber": "8880001", "voiceMailService": "ABG-VMS-1", "pkid": "5df0bb29ce894e0012772722", "hierarchy_friendly_name": "CL1-AB-C-Grenoble (Site)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group.AB-C.CL1-AB-C-Grenoble" }, "meta": { "model_type": "data/HcsDpAssociateVmPilotToSiteDAT", "summary_attrs": [ { "name": "voiceMailService", "title": "Voice Mail Service" }, { "name": "pilotNumber", "title": "Voice Mail Service Pilot Number" }, { "name": "siteName", "title": "Site Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "title format", "business_key": { "hierarchy": true, "unique": [ "siteName" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5df0b73fce894e001275e736", "href": "/api/data/HierarchyNode/5df0b73fce894e001275e736" } ], "foreign_key": [ { "pkid": "5df0b747ce894e001275e8cf", "path": "siteName", "model_type": "data/BaseSiteDAT" } ], "self": [ { "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb29ce894e001277271f/", "pkid": "5df0bb29ce894e001277271f" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5da4c643ce894e0012225c90", "5df0b338ce894e001275535c", "5df0b3a3ce894e0012756904", "5df0b66bce894e001275a913", "5df0b6b6ce894e001275ca48", "5df0b73fce894e001275e736", "5df0bb29ce894e001277271f" ], "schema_version": "2.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb29ce894e001277271f/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb29ce894e001277271f/", "support_async": true, "title": "Delete" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb29ce894e001277271f/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb29ce894e001277271f/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb29ce894e001277271f/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5df0bb29ce894e001277271f" }, { "data": { "siteName": "CL1-AB-C-Rennes", "e164Number": "\\+33251196999", "pilotNumber": "8880001", "voiceMailService": "ABG-VMS-1", "pkid": "5df0bb2dce894e001277286f", "hierarchy_friendly_name": "CL1-AB-C-Rennes (Site)", "hierarchy_path": "sys.hcs.CS-P.CS-AB.AB_Group.AB-C.CL1-AB-C-Rennes" }, "meta": { "model_type": "data/HcsDpAssociateVmPilotToSiteDAT", "summary_attrs": [ { "name": "voiceMailService", "title": "Voice Mail Service" }, { "name": "pilotNumber", "title": "Voice Mail Service Pilot Number" }, { "name": "siteName", "title": "Site Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "title format", "business_key": { "hierarchy": true, "unique": [ "siteName" ] }, "api_version": "21.2", "cached": true, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "pkid": "5df0b74ace894e001275e95a", "href": "/api/data/HierarchyNode/5df0b74ace894e001275e95a" } ], "foreign_key": [ { "pkid": "5df0b74fce894e001275eb72", "path": "siteName", "model_type": "data/BaseSiteDAT" } ], "self": [ { "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb2cce894e001277286c/", "pkid": "5df0bb2cce894e001277286c" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5da4c643ce894e0012225c90", "5df0b338ce894e001275535c", "5df0b3a3ce894e0012756904", "5df0b66bce894e001275a913", "5df0b6b6ce894e001275ca48", "5df0b74ace894e001275e95a", "5df0bb2cce894e001277286c" ], "schema_version": "2.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb2cce894e001277286c/", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb2cce894e001277286c/", "support_async": true, "title": "Delete" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb2cce894e001277286c/export/", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/", "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb2cce894e001277286c/", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb2cce894e001277286c/help", "support_async": false, "title": "Help" } } ], "summary": "false" }, "pkid": "5df0bb2cce894e001277286c" } ] }
(Show the first instance)
{ "data": { "siteName": "CL1-AB-C-Paris", "e164Number": "\\+33561933299", "pilotNumber": "8880001", "voiceMailService": "ABG-VMS-1", "pkid": "5df0bb23ce894e00127725d5" }, "meta": { "model_type": "data/HcsDpAssociateVmPilotToSiteDAT", "summary_attrs": [ { "name": "voiceMailService", "title": "Voice Mail Service" }, { "name": "pilotNumber", "title": "Voice Mail Service Pilot Number" }, { "name": "siteName", "title": "Site Name" }, { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "title format", "business_key": { "unique": [ "siteName" ], "hierarchy": true }, "api_version": "21.2", "cached": false, "references": { "device": [ { "href": "", "pkid": "" } ], "owner": [ { "pkid": "" } ], "parent": [ { "href": "/api/data/HierarchyNode/5df0b737ce894e001275e4a7", "pkid": "5df0b737ce894e001275e4a7" } ], "foreign_key": [ { "pkid": "5df0b73cce894e001275e67e", "path": "siteName", "model_type": "data/BaseSiteDAT" } ], "children": [], "self": [ { "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/", "pkid": "5df0bb23ce894e00127725d2" } ] }, "path": [ "6t0ggef2c0deab00hb595101", "5da4c643ce894e0012225c90", "5df0b338ce894e001275535c", "5df0b3a3ce894e0012756904", "5df0b66bce894e001275a913", "5df0b6b6ce894e001275ca48", "5df0b737ce894e001275e4a7", "5df0bb23ce894e00127725d2" ], "schema_version": "2.1", "actions": [ { "update": { "method": "PUT", "class": "update", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/?hierarchy=[hierarchy]", "support_async": true, "title": "Modify" } }, { "remove": { "method": "DELETE", "class": "delete", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/?hierarchy=[hierarchy]", "support_async": true, "title": "Delete" } }, { "export": { "method": "GET", "class": "export", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/export/?hierarchy=[hierarchy]", "support_async": false, "title": "Export", "view": "/api/view/ExportData/add/?auth_token=[authtoken], "submit": "payload" } }, { "get": { "method": "GET", "class": "get", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/?hierarchy=[hierarchy]", "support_async": false, "title": "Get" } }, { "help": { "method": "GET", "class": "help", "href": "/api/data/HcsDpAssociateVmPilotToSiteDAT/5df0bb23ce894e00127725d2/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } } ] }, "pkid": "5df0bb23ce894e00127725d2" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for data/HcsDpAssociateVmPilotToSiteDAT. | GET | /api/data/HcsDpAssociateVmPilotToSiteDAT/help | hierarchy=[hierarchy] | On-line help of Model ref.: data/HcsDpAssociateVmPilotToSiteDAT as HTML |
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Modify | PUT | /api/data/HcsDpAssociateVmPilotToSiteDAT/[pkid] | hierarchy=[hierarchy] | (For payload specification) |
For Bulk modification, refer to the Bulk Modify section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Delete | DELETE | /api/data/HcsDpAssociateVmPilotToSiteDAT/[pkid] | hierarchy=[hierarchy] |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a selected [export_format] of the schema and a single instance with [pkid] of data/HcsDpAssociateVmPilotToSiteDAT; optionally with tag_version at [version] and Configuration Template as [configtemplate]. | GET | /api/data/HcsDpAssociateVmPilotToSiteDAT/[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/HcsDpAssociateVmPilotToSiteDAT and the JSON format can be used to import instances of data/HcsDpAssociateVmPilotToSiteDAT.
For Bulk Export, refer to the Bulk Export section.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/data/HcsDpAssociateVmPilotToSiteDAT/[pkid] | hierarchy=[hierarchy] | The data/HcsDpAssociateVmPilotToSiteDAT instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/data/HcsDpAssociateVmPilotToSiteDAT/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for data/HcsDpAssociateVmPilotToSiteDAT. |