POST Setup/Role?validateOnly={validateOnly}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
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:08:34.6712044+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:08:34 AM" }, "lastUpdated": { "dateUtc": "2024-12-04T08:08:34.6712044+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:08:34 AM" } }, { "buid": 1, "roleID": 2, "recordState": 1, "created": { "dateUtc": "2024-12-04T08:08:34.6712044+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:08:34 AM" }, "lastUpdated": { "dateUtc": "2024-12-04T08:08:34.6712044+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:08:34 AM" } } ], "categoryID": 2, "categoryName": "sample string 3", "roleName": "sample string 4", "recordState": 1, "created": { "dateUtc": "2024-12-04T08:08:34.6712044+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:08:34 AM" }, "lastUpdated": { "dateUtc": "2024-12-04T08:08:34.6712044+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 8:08:34 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:08:34.6712044+00:00</DateUtc> <UserName>sample string 2</UserName> </Created> <LastUpdated> <DateUtc>2024-12-04T08:08:34.6712044+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:08:34.6712044+00:00</DateUtc> <UserName>sample string 2</UserName> </Created> <LastUpdated> <DateUtc>2024-12-04T08:08:34.6712044+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:08:34.6712044+00:00</DateUtc> <UserName>sample string 2</UserName> </Created> <LastUpdated> <DateUtc>2024-12-04T08:08:34.6712044+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�_%�j�iT� .�h'q�m(��#����|$_��꤃�� d�����.�s���j *���`VĨ���wTɒ=�EW6�:�̀bk(R[ ��Š@p!�@�\��\��x:�rĹ�<h�؍.h �.��0t6+S&bSڶ��U%�DNn+�c6[��� ��:��sz���+rC��m�߷kB�k~%��,� ��
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. |