GET http://[host-proxy]/api/view/AddRemoveDeviceAppUser/schema/?hierarchy=[hierarchy]&format=json&schema=1
{
"$schema": "http://json-schema.org/draft-03/schema",
"type": "object",
"properties": {
"userid": {
"target": "/api/device/cucm/AppUser/choices/?field=userid&format=json&hierarchy=[hierarchy]&auth_token=[authtoken],
"format": "uri",
"description": "Filters a list of Application Users.",
"required": true,
"target_attr": "userid",
"title": "Application User",
"type": "string",
"target_model_type": "device/cucm/AppUser",
"choices": []
},
"device_action": {
"description": "Select Action to display a filtered list of devices to associate or disassociate to the Application User.",
"title": "Action",
"required": true,
"choices": [
{
"value": "add",
"title": "Associate Devices"
},
{
"value": "remove",
"title": "Disassociate Devices"
},
{
"value": "",
"title": ""
}
],
"type": "string"
},
"filterDevices": {
"required": false,
"type": "string",
"description": "Use this to filter Devices which contain.",
"title": "Filter Devices"
},
"devices": {
"target": "device/cucm/Phone",
"title": "Phones to Associate or Disassociate",
"minItems": 1,
"items": {
"type": "string"
},
"description": "A filtered list of Phones and CTI Route Points depending on the Application User and Action selected.",
"required": false,
"type": "array"
},
"filterDeviceProfiles": {
"required": false,
"type": "string",
"description": "Use this to filter Device Profiles which contain.",
"title": "Filter Device Profiles"
},
"deviceProfile": {
"description": "A filtered list of Device Profiles depending on the Application User and Action selected",
"title": "Device Profiles to Associate or Disassociate",
"minItems": 1,
"items": {
"type": "string"
},
"required": false,
"type": "array"
}
},
"schema_version": "1.0"
}