Hi,
I want to associate permissions with a role using API.
This is my request:
request({ method: 'POST', url: {url} + '/api/v2/roles/' + {roleID} + '/permissions', headers: { 'content-type': 'application/json', authorization: `Bearer ${accessToken}` }, body: { permissions: [ { 'resource_server_identifier': {apiID}, 'permission_name': 'permission name', 'description': 'description' } ] }, json: true }, function (error, response, body) {});
I’m getting the following error:
statusCode: 400, error: 'Bad Request', message: 'Payload validation error: \'Additional properties not allowed: description\' on property permissions[0] ({description}).', errorCode: 'invalid_body'
It works OK without “description” property, but in that case how can I give a description to the permission?