Api >

Service Portal REST API

Cannot change sip credentials of standard device for Customer
Given I am authenticated as Customer K0002
and there is a Standard Device Type with name standard
and there is a Standard Device with ID 123456789abc
and SIP Username K00020A08F
and SIP Secret kSIzxm76EE2
When I send /api/customers/K0002/devices/standard/123456789abc/activation-credentials-renewal using application/json; charset=UTF-8
with empty body:
{}
Then I should receive HTTP/1.1 403 Forbidden
with following body
{
  "detail": "Required role is missing",
  "title": "Access forbidden",
  "described_by": "http://api.nfon.net/probs/invalid-authorization"
}
Cannot change sip credentials of standard device for SystemIntegrator
Given I am authenticated as System Integrator S0002
and there is a Standard Device Type with name standard
and there is a Standard Device with ID 123456789abc
and SIP Username K00020A08F
and SIP Secret kSIzxm76EE2
When I send /api/customers/K0002/devices/standard/123456789abc/activation-credentials-renewal using application/json; charset=UTF-8
with empty body:
{}
Then I should receive HTTP/1.1 403 Forbidden
with following body
{
  "detail": "Required role is missing",
  "title": "Access forbidden",
  "described_by": "http://api.nfon.net/probs/invalid-authorization"
}
Cannot change sip credentials of standard device for Operator
Given I am authenticated as Operator C0002
and there is a Standard Device Type with name standard
and there is a Standard Device with ID 123456789abc
and SIP Username K00020A08F
and SIP Secret kSIzxm76EE2
When I send /api/customers/K0002/devices/standard/123456789abc/activation-credentials-renewal using application/json; charset=UTF-8
with empty body:
{}
Then I should receive HTTP/1.1 403 Forbidden
with following body
{
  "detail": "Required role is missing",
  "title": "Access forbidden",
  "described_by": "http://api.nfon.net/probs/invalid-authorization"
}
PUT changes sip credentials of standard device
Given I am authenticated as Admin
and there is a Standard Device Type with name standard
and there is a Standard Device with ID 123456789abc
and SIP Username K00020A08F
and SIP Secret kSIzxm76EE2
When I send /api/customers/K0002/devices/standard/123456789abc/activation-credentials-renewal using application/json; charset=UTF-8
with empty body:
{}
--> Then I should receive HTTP/1.1 200 OK
And sip credentials are changed