[Index]
Model ref.: view/SmartAddPhone
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": { "phone_template": { "required": true, "type": "string", "description": "User selects the Phone Configuration Template", "title": "Phone Template" }, "product": { "type": "string", "description": "Phone Product from selected Phone Configuration Template", "title": "Phone Product" }, "protocol": { "type": "string", "description": "Protocol from selected Phone Configuration Template", "title": "Protocol" }, "button_template": { "type": "string", "description": "User optionally selects a different Phone Button Template", "title": "Phone Button Template" }, "pac_dd_enabled": { "type": "boolean", "description": "", "title": "Device Defaults PAC setting" }, "enable_activation_code": { "type": "boolean", "description": "Enabling this checbox will instruct this workflow to add the phone using the Activation-Code based registration method. The code will be automatically generated.", "title": "Use Activation Code Onboarding" }, "allowMraMode": { "type": "boolean", "description": "Allow MRA Mode", "title": "Allow MRA Mode" }, "mraServiceDomain": { "type": "string", "title": "MRA Service Domain" }, "device_name": { "required": true, "type": "string", "description": "User enters Device Name for the Phone to be added", "title": "Device Name" }, "Line_Partition": { "type": "string", "description": "Message field to indicate what default site line partition is being used from the Site Defaults Doc", "title": "Default Line Partition" }, "lines": { "items": { "type": "object", "properties": { "line_filter": { "title": "Inventory Filter", "default": "default", "required": false, "choices": [ { "value": "default", "title": "Default" }, { "value": "lines_unused_only_local", "title": "Show Unused Numbers (Site Only)" }, { "value": "lines_unused_only", "title": "Show Unused Numbers" }, { "value": "lines_e164_unused_local", "title": "Show Unused Numbers with Associated E164's (Site Only)" }, { "value": "lines_e164_unused", "title": "Show Unused Numbers with Associated E164's" }, { "value": "lines_used_only_local", "title": "Show Used Numbers (Site Only)" }, { "value": "lines_used_only", "title": "Show Used Numbers" } ], "type": "string" }, "directory_number": { "type": "string", "title": "Directory Number" } } }, "required": false, "type": "array", "title": "Lines" } }, "schema_version": "1.4" }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the GUI Add form. | GET | /api/view/SmartAddPhone/add/ |
|
The GUI Add form of view/SmartAddPhone 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/view/SmartAddPhone | hierarchy=[hierarchy] |
|
tool/Transaction/[trans pkid]shows the View resource has no instance pkid, because a view model stores no instances.
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get a compressed format of the Bulk Load spreadsheet template for view/SmartAddPhone | POST | /api/view/SmartAddPhone/export_bulkload_template/ |
|
The response is an attachment of the format: filetype_bulkloadsheet.xlsx.gz |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag | PATCH | /api/view/SmartAddPhone/+tag/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Tag Version | PATCH | /api/view/SmartAddPhone/+tag_version/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Configuration Template | GET | /api/view/SmartAddPhone/configuration_template/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/ConfigurationTemplate/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Field Display Policy | GET | /api/view/SmartAddPhone/field_display_policy/ | hierarchy=[hierarchy] |
|
POST http://[host-proxy]/api/data/FieldDisplayPolicy/?hierarchy=[hierarchy]
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
List | GET | /api/view/SmartAddPhone/ |
|
The view/SmartAddPhone schema and all instances as JSON. |
(The list will return 0 to 3 view/SmartAddPhone instances)
{ "pagination": { "skip": 0, "limit": 3, "maximum_limit": 2000, "total": 0, "total_limit": null, "order_by": null, "direction": "asc", "current": "/api/view/SmartAddPhone/?skip=0&limit=3&order_by=None&direction=asc&traversal=down" }, "operations": [ "add", "help", "configuration_template", "field_display_policy", "export_bulkload_template", "transform" ], "meta": { "model_type": "view/SmartAddPhone", "summary_attrs": [ { "name": "hierarchy_friendly_name", "title": "Located At", "allow_filtering": true } ], "tagged_versions": [], "tags": [], "title": "", "business_key": {}, "api_version": "21.2", "cached": true, "references": { "children": [], "parent": [ { "href": "/api/data/HierarchyNode/6t0ggef2c0deab00hb595101", "pkid": "6t0ggef2c0deab00hb595101" } ], "device": [ { "href": "", "pkid": "" } ], "foreign_key": [] }, "model_specific_actions": [ "add" ], "schema_version": "1.4", "actions": [ { "add": { "method": "GET", "class": "add", "href": "/api/view/SmartAddPhone/add/?hierarchy=[hierarchy]", "support_async": false, "title": "Add" } }, { "export_bulkload_template": { "method": "POST", "class": "bulkload_template", "href": "/api/view/SmartAddPhone/export_bulkload_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Export Bulk Load Template" } }, { "tag": { "method": "PATCH", "class": "tag", "href": "/api/view/SmartAddPhone/+tag/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag", "view": "/api/view/TagNameForm/add/?auth_token=[authtoken] } }, { "tag_version": { "method": "PATCH", "class": "tag_version", "href": "/api/view/SmartAddPhone/+tag_version/?hierarchy=[hierarchy]", "support_async": true, "title": "Tag Version", "view": "/api/view/TagVersionForm/add/?auth_token=[authtoken] } }, { "configuration_template": { "method": "GET", "class": "config", "href": "/api/view/SmartAddPhone/configuration_template/?hierarchy=[hierarchy]", "support_async": false, "title": "Configuration Template" } }, { "field_display_policy": { "method": "GET", "class": "display_policy", "href": "/api/view/SmartAddPhone/field_display_policy/?hierarchy=[hierarchy]", "support_async": false, "title": "Field Display Policy" } }, { "list": { "method": "GET", "class": "list", "href": "/api/view/SmartAddPhone/?hierarchy=[hierarchy]", "support_async": false, "title": "List" } }, { "help": { "method": "GET", "class": "help", "href": "/api/view/SmartAddPhone/help?hierarchy=[hierarchy]", "support_async": false, "title": "Help" } }, { "transform": { "method": "GET", "class": "transform", "href": "/api/view/SmartAddPhone/transform/?hierarchy=[hierarchy]", "support_async": false, "title": "Transform Template" } } ] }, "resources": [] }
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get the on-line Help for view/SmartAddPhone. | GET | /api/view/SmartAddPhone/help | hierarchy=[hierarchy] | On-line help of Model ref.: view/SmartAddPhone as HTML |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Transform Template | GET | /api/view/SmartAddPhone/transform/ |
|
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Clone instance with [pkid]. The schema rules are applied. | GET | /api/view/SmartAddPhone/[pkid]/clone/?schema=&schema_rules=true |
|
A JSON payload with:
|
GET http://[host-proxy]/api/view/SmartAddPhone/?hierarchy=[hierarchy]&format=json
Task | Call | URL | Parameters | Payload |
---|---|---|---|---|
Tag | PATCH | /api/view/SmartAddPhone/[pkid]/+tag | hierarchy=[hierarchy] | If payload required: |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Get | GET | /api/view/SmartAddPhone/[pkid] | hierarchy=[hierarchy] | The view/SmartAddPhone instance with [pkid]. |
Task | Call | URL | Parameters | Response |
---|---|---|---|---|
Help | GET | /api/view/SmartAddPhone/[pkid]/help | hierarchy=[hierarchy] | The on-line Help for view/SmartAddPhone. |