POST Workers/Role?validateOnly={validateOnly}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
validateOnly | boolean |
Default value is False |
Body Parameters
WorkerBusinessUnitRoleDTOName | Description | Type | Additional information |
---|---|---|---|
WorkerID | integer |
None. |
|
EntityBusinessUnitRoleID | integer |
None. |
|
RoleID | integer |
None. |
|
RoleName | string |
None. |
|
BUID | integer |
None. |
|
BusinessUnitName | string |
None. |
|
StartDateUtc | date |
None. |
|
StopDateUtc | date |
None. |
|
StopDateUtcEventID | integer |
None. |
|
ReferenceNumber | string |
None. |
|
Props | Collection of Object |
None. |
|
RecordState | RecordState |
None. |
|
Created | AuditDataDTO |
None. |
|
LastUpdated | AuditDataDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "entityBusinessUnitRoleID": 3, "roleID": 4, "roleName": "sample string 5", "buid": 6, "businessUnitName": "sample string 7", "startDateUtc": "2024-12-04T07:55:25.6392459+00:00", "stopDateUtc": "2024-12-04T07:55:25.6392459+00:00", "stopDateUtcEventID": 1, "referenceNumber": "sample string 9", "recordState": 1, "created": { "dateUtc": "2024-12-04T07:55:25.6392459+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 7:55:25 AM" }, "lastUpdated": { "dateUtc": "2024-12-04T07:55:25.6392459+00:00", "userName": "sample string 2", "summary": "sample string 2 on 12/4/2024 7:55:25 AM" }, "workerID": 2 }
application/xml, text/xml
Sample:
<WorkerBusinessUnitRoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcuraGroup.Models"> <BUID>6</BUID> <BusinessUnitName>sample string 7</BusinessUnitName> <Created> <DateUtc>2024-12-04T07:55:25.6392459+00:00</DateUtc> <UserName>sample string 2</UserName> </Created> <EntityBusinessUnitRoleID>3</EntityBusinessUnitRoleID> <EntityID>2</EntityID> <LastUpdated> <DateUtc>2024-12-04T07:55:25.6392459+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> <ReferenceNumber>sample string 9</ReferenceNumber> <RoleID>4</RoleID> <RoleName>sample string 5</RoleName> <StartDateUtc>2024-12-04T07:55:25.6392459+00:00</StartDateUtc> <StopDateUtc>2024-12-04T07:55:25.6392459+00:00</StopDateUtc> <StopDateUtcEventID>1</StopDateUtcEventID> <WorkerID>2</WorkerID> </WorkerBusinessUnitRoleDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/x-compressed-json
Sample:
� �PAN�0���WR�I��VT���dAVc'Zo@Uq�I|�T��^��m��������=�g˻�1X�!���C��� �,:����C��:���QB�Ѷ�� ��\d/";�!^ƚ�HPR�\Md�$�,�*��Jeu%���(�?+n_c�T#�5� }���m���U�8MO�#G�Q�F��U�1 ]\A���s�v�7�{��i1M/��[,��Ag�C�_���EJӪ��h"$N
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. |