Start permissions emulation

Starts permissions emulation.

Emulation during emulation is not supported. If request sent during an ongoing emulation then 403 is sent in response.

Escalation is not supported.

SecurityAPI Key: SecretApiKey or HTTP: JWT
Request
Request Body schema: application/json
permissions
required
Array of strings <operationId> (AclPermissions)

List of permissions to be emulated.

post
/permissions-emulation
Request samples
application/json
{ "permissions": [ "PostFile", "StorefrontGetAccount", "StorefrontGetWebsite", "StorefrontGetKycDocumentCollection", "StorefrontGetKycDocument", "StorefrontPostKycDocument" ] }
Responses

201

Session created.

401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

422

Invalid data sent.

Response samples
application/json
{ "id": "jwt_0YV7DEJX80CDRAKVTV478ZNJDR", "token": "string", "permissions": [ "PostFile", "StorefrontGetAccount", "StorefrontGetWebsite", "StorefrontGetKycDocumentCollection", "StorefrontGetKycDocument", "StorefrontPostKycDocument" ], "userId": "usr_0YVCEENYJ3D7Q9EN6BN16HA0G4", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "expiredTime": "2019-08-24T14:15:22Z", "_links": [ ] }