Api >

Service Portal REST API

POST to validation
Given I am authenticated as Customer K0002
and there are devices:
  • there is a Base Device Type with name base
    and there is Base Device with external identifier 00123
  • there is a Extended Base Device Type with name extended_base
    and there is Extended Base Device with external identifier 00777
  • and there is a XCAPI Device with ID xcapi123
  • and there is an UnprovisionedSip Device Type with name unprovisioned_sip
    and there is a Unprovisioned Sip Device with ID device123
  • and there is a Phone Extension with extension number 17
    and there is a Trunk with numbers +48 (22) 33-65
    and there is an Inbound Trunk Number with extension 33
    and it is assigned to phone extension
    and there is a Lync Option with id 134
    and there is a Lync Softphone Device attached
  • and there is a Standard Device Type with name standard
    and there is a Standard Device with ID 123456789abc
  • and there is a Handset Device Type with name handset
    and there is a Handset Device with ID ABCDEF012345-Port0
  • and there is a Operator Panel Device Type with name operator
    and there is a Operator Panel Device with ID operatorDevice
  • and there is a Media Gateway Device with ID 123AAAAAAAAA
When I send /api/devices/validate-deviceid as application/json; charset=UTF-8 with following body:
{
  "data": [{
    "name": "deviceIds",
    "value": ["12345", "45678", "123456789abc"]
  }]
}
Then I should receive HTTP/1.1 200 OK
with following body
{
  "href": "/api/devices/validate-deviceid",
  "items": [{
    "href": null,
    "links": [],
    "data": [{
      "name": "deviceId",
      "value": "12345"
    }, {
      "name": "manufacturer",
      "value": "UNKNOWN"
    }, {
      "name": "registrationStatus",
      "value": "UNKNOWN"
    }, {
      "name": "phoneExists",
      "value": false
    }]
  }, {
    "href": null,
    "links": [],
    "data": [{
      "name": "deviceId",
      "value": "45678"
    }, {
      "name": "manufacturer",
      "value": "UNKNOWN"
    }, {
      "name": "registrationStatus",
      "value": "UNKNOWN"
    }, {
      "name": "phoneExists",
      "value": false
    }]
  }, {
    "href": null,
    "links": [],
    "data": [{
      "name": "deviceId",
      "value": "123456789abc"
    }, {
      "name": "manufacturer",
      "value": "category"
    }, {
      "name": "registrationStatus",
      "value": "UNKNOWN"
    }, {
      "name": "phoneExists",
      "value": true
    }]
  }],
  "links": null
}