Creates a role that is used to assign permissions to users.
Role resource.
Role created.
Location | string <uri> Location of the related resource. Example: "https://api.rebilly.com/example" |
Unauthorized access. Invalid credentials used.
Access forbidden.
Invalid data sent.
{- "name": "string",
- "description": "string",
- "acl": [
- {
- "scope": {
- "organizationId": [
- "organizationId-id-1"
]
}, - "permissions": [
- "PostFile",
- "StorefrontGetAccount",
- "StorefrontGetWebsite",
- "StorefrontGetKycDocumentCollection",
- "StorefrontGetKycDocument",
- "StorefrontPostKycDocument"
]
}
], - "allowedIps": [
- "153.12.32.33",
- "201.54.122.0/24",
- "76.*.*.*",
- "2001:0db8:abcd:0012:0000:0000:0000:ffff",
- "2001:db8:abcd:12::0/64"
], - "juniorIds": [
- "string"
]
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string",
- "description": "string",
- "acl": [
- {
- "scope": {
- "organizationId": [
- "organizationId-id-1"
]
}, - "permissions": [
- "PostFile",
- "StorefrontGetAccount",
- "StorefrontGetWebsite",
- "StorefrontGetKycDocumentCollection",
- "StorefrontGetKycDocument",
- "StorefrontPostKycDocument"
]
}
], - "allowedIps": [
- "153.12.32.33",
- "201.54.122.0/24",
- "76.*.*.*",
- "2001:0db8:abcd:0012:0000:0000:0000:ffff",
- "2001:db8:abcd:12::0/64"
], - "seniorIds": [
- "string"
], - "juniorIds": [
- "string"
], - "usersCount": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
], - "_embedded": {
- "juniorRoles": { }
}
}