PUT Setup/Role/{roleID}?validateOnly={validateOnly}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
roleID | integer |
Required |
|
validateOnly | boolean |
Default value is False |
Body Parameters
RoleDTOName | Description | Type | Additional information |
---|---|---|---|
RoleID | integer |
None. |
|
BusinessUnits | Collection of RoleBusinessUnitDTO |
None. |
|
CategoryID | integer |
None. |
|
CategoryName | string |
None. |
|
RoleName | string |
None. |
|
Props | Collection of Object |
None. |
|
RecordState | RecordState |
None. |
|
Created | AuditDataDTO |
None. |
|
LastUpdated | AuditDataDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "roleID": 1, "businessUnits": [ { "buid": 1, "roleID": 2, "recordState": 1, "created": { "dateUtc": "2024-12-04T08:04:20.7437764+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:04:20 AM" }, "lastUpdated": { "dateUtc": "2024-12-04T08:04:20.7437764+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:04:20 AM" } }, { "buid": 1, "roleID": 2, "recordState": 1, "created": { "dateUtc": "2024-12-04T08:04:20.7437764+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:04:20 AM" }, "lastUpdated": { "dateUtc": "2024-12-04T08:04:20.7437764+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:04:20 AM" } } ], "categoryID": 2, "categoryName": "sample string 3", "roleName": "sample string 4", "recordState": 1, "created": { "dateUtc": "2024-12-04T08:04:20.7437764+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:04:20 AM" }, "lastUpdated": { "dateUtc": "2024-12-04T08:04:20.7437764+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:04:20 AM" } }
application/xml, text/xml
Sample:
<RoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcuraGroup.Models"> <BusinessUnits> <RoleBusinessUnitDTO> <BUID>1</BUID> <Created> <DateUtc>2024-12-04T08:04:20.7437764+00:00</DateUtc> <UserName>sample string 2</UserName> </Created> <LastUpdated> <DateUtc>2024-12-04T08:04:20.7437764+00:00</DateUtc> <UserName>sample string 2</UserName> </LastUpdated> <RecordState>Active</RecordState> <RoleID>2</RoleID> </RoleBusinessUnitDTO> <RoleBusinessUnitDTO> <BUID>1</BUID> <Created> <DateUtc>2024-12-04T08:04:20.7437764+00:00</DateUtc> <UserName>sample string 2</UserName> </Created> <LastUpdated> <DateUtc>2024-12-04T08:04:20.7437764+00:00</DateUtc> <UserName>sample string 2</UserName> </LastUpdated> <RecordState>Active</RecordState> <RoleID>2</RoleID> </RoleBusinessUnitDTO> </BusinessUnits> <CategoryID>2</CategoryID> <CategoryName>sample string 3</CategoryName> <Created> <DateUtc>2024-12-04T08:04:20.7437764+00:00</DateUtc> <UserName>sample string 2</UserName> </Created> <LastUpdated> <DateUtc>2024-12-04T08:04:20.7437764+00:00</DateUtc> <UserName>sample string 2</UserName> </LastUpdated> <Props xmlns:d2p1="http://schemas.datacontract.org/2004/07/ProcuraGroup.Common" i:nil="true" /> <RecordState>Active</RecordState> <RoleID>1</RoleID> <RoleName>sample string 4</RoleName> </RoleDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/x-compressed-json
Sample:
� �;�0��y��"��!�0��Ch#T��CU�d�+`^H,l��Y�����\���t�����Dq�y�i���7��mR�t卷7�8ˑ�ZH9�> �ꇲ�j��JKDjEc�CԈ@M�-M�[�Lqȭ �r/$C��¸敉������x��t�||H�.����ߖ����5u����5�� ��?w���
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |