Create one or more inherited roles
post/roles/inherited
Creates one or more inherited roles at the context from roles assigned at the parent context.
Authorization: Requires the Manage Roles privilege and read access to the role context.
1{2 "value": {3 "links": [4 {5 "method": "GET",6 "rel": "self",7 "href": "/clinicalRepository/roles?sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",8 "uri": "/clinicalRepository/roles?sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",9 "type": "application/vnd.sas.collection",10 "itemType": "application/vnd.sas.clinical.role+json"11 },12 {13 "method": "GET",14 "rel": "collection",15 "href": "/clinicalRepository/roles",16 "uri": "/clinicalRepository/roles",17 "type": "application/vnd.sas.collection",18 "itemType": "application/vnd.sas.clinical.role+json"19 }20 ],21 "name": "roles",22 "accept": "application/vnd.sas.clinical.role+json",23 "start": 0,24 "count": 2,25 "items": [26 {27 "version": 1,28 "createdBy": "sastest1",29 "creationTimeStamp": "2023-09-13T13:35:54.593000Z",30 "modifiedBy": "sastest1",31 "modifiedTimeStamp": "2023-09-13T13:35:54.593000Z",32 "id": "1d629863-ec6f-4c9c-9f60-147695d73849",33 "typeId": "roleassignment",34 "createdByDisplayName": "SAS Test User 1 (sastest1)",35 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",36 "name": "buTestRole",37 "displayName": "buTestRole (Business Unit)",38 "assignedContextId": "4437483c-dc7f-4512-986e-cde49d97d507",39 "assignedContextTypeId": "therapeuticarea",40 "definedContextId": "cac68a83-2f9b-4e45-859f-1163581edf1e",41 "definedContextTypeId": "businessunit",42 "inherited": true43 },44 {45 "version": 1,46 "createdBy": "sastest1",47 "creationTimeStamp": "2023-09-26T15:46:09.962000Z",48 "modifiedBy": "sastest1",49 "modifiedTimeStamp": "2023-09-26T15:46:09.962000Z",50 "id": "c39cf904-5dc5-4dab-b17e-f7960182feb0",51 "typeId": "roleassignment",52 "createdByDisplayName": "SAS Test User 1 (sastest1)",53 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",54 "name": "taAdminRole",55 "displayName": "taAdminRole",56 "description": "Role for the therapeutic area administrator.",57 "assignedContextId": "4437483c-dc7f-4512-986e-cde49d97d507",58 "assignedContextTypeId": "therapeuticarea",59 "definedContextId": "4437483c-dc7f-4512-986e-cde49d97d507",60 "definedContextTypeId": "therapeuticarea",61 "inherited": false62 }63 ],64 "limit": 100,65 "version": 266 }67}
| Name | Type | Required | Description |
|---|---|---|---|
contextId | string | true | The unique identifier of the context in which to add inherited roles. |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 201 | Created | One or more inherited roles were created at the current context. | Schema | |
| 400 | Bad Request | Bad Request |