B2B Gateway
- B2B Gateway
- All Products
/public/core/v3/roles
Field
| Type
| Required
| Description
|
---|---|---|---|
name
| String
| Yes
| Name of the role.
|
description
| String
| -
| Description of the role.
|
privileges
| Array
| Yes
| IDs of the privileges to assign to the role. A role must have at least one privilege assigned to it.
|
POST <baseApiUrl>/public/core/v3/roles Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "name" : "CAIviewer", "description": "A role to view Application Integration designer and assets", "privileges" : ["aQwUdcM8RcQewA1yWphZ4F", "0nTOXl8dzEwlSFoM0cO8gI"] }
{ "id": "8j2MPlr8ubZgteIOwleSCk", "orgId": "cPYWk02I4aBeuLEvYRtaMS", "createdBy": "a@abc.com", "updatedBy": "a@abc.com", "createTime": "2019-03-20T18:33:33.361Z", "updateTime": "2019-03-20T18:33:33.428Z", "roleName": "CAIviewer", "description": "A role to view Application Integration designer and assets", "displayName": "CAIviewer", "displayDescription": "A role to view Application Integration designer and assets", "systemRole": false, "status": "Enabled", "privileges": [ { "id": "0nTOXl8dzEwlSFoM0cO8gI", "name": "view.ai.designer", "description": "View application integration designer" }, { "id": "aQwUdcM8RcQewA1yWphZ4F", "name": "view.ai.assets", "description": "View application integration assets" } ] }