POST Events/ShiftCode?validateOnly={validateOnly}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
validateOnly

boolean

Default value is False

Body Parameters

EventShiftCodeDTO
NameDescriptionTypeAdditional information
EventShiftCodeID

integer

None.

Code

string

None.

Description

string

None.

DefaultTimes

boolean

None.

DefaultStartTimeUtc

date

None.

DefaultStopTimeUtc

date

None.

BusinessUnits

Collection of EventShiftCodeBusinessUnitDTO

None.

StartTime

time interval

None.

StopTime

time interval

None.

SortOrder

integer

None.

Props

Collection of Object

None.

RecordState

RecordState

None.

Created

AuditDataDTO

None.

LastUpdated

AuditDataDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "eventShiftCodeID": 1,
  "code": "sample string 2",
  "description": "sample string 3",
  "defaultTimes": true,
  "defaultStartTimeUtc": "2024-12-04T08:04:33.4638348+00:00",
  "defaultStopTimeUtc": "2024-12-04T08:04:33.4638348+00:00",
  "businessUnits": [
    {
      "buid": 1,
      "eventShiftCodesID": 2,
      "recordState": 1,
      "created": {
        "dateUtc": "2024-12-04T08:04:33.4638348+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:33 AM"
      },
      "lastUpdated": {
        "dateUtc": "2024-12-04T08:04:33.4638348+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:33 AM"
      },
      "businessUnitName": "sample string 3"
    },
    {
      "buid": 1,
      "eventShiftCodesID": 2,
      "recordState": 1,
      "created": {
        "dateUtc": "2024-12-04T08:04:33.4638348+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:33 AM"
      },
      "lastUpdated": {
        "dateUtc": "2024-12-04T08:04:33.4638348+00:00",
        "userName": "sample string 2",
        "summary": "sample string 2 on 12/4/2024 8:04:33 AM"
      },
      "businessUnitName": "sample string 3"
    }
  ],
  "startTime": "00:00:00.1234567",
  "stopTime": "00:00:00.1234567",
  "sortOrder": 5,
  "recordState": 1,
  "created": {
    "dateUtc": "2024-12-04T08:04:33.4638348+00:00",
    "userName": "sample string 2",
    "summary": "sample string 2 on 12/4/2024 8:04:33 AM"
  },
  "lastUpdated": {
    "dateUtc": "2024-12-04T08:04:33.4638348+00:00",
    "userName": "sample string 2",
    "summary": "sample string 2 on 12/4/2024 8:04:33 AM"
  }
}

application/xml, text/xml

Sample:
<EventShiftCodeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProcuraGroup.Models">
  <BusinessUnits>
    <EventShiftCodeBusinessUnitDTO>
      <BUID>1</BUID>
      <BusinessUnitName>sample string 3</BusinessUnitName>
      <Created>
        <DateUtc>2024-12-04T08:04:33.4638348+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </Created>
      <EventShiftCodesID>2</EventShiftCodesID>
      <LastUpdated>
        <DateUtc>2024-12-04T08:04:33.4638348+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </LastUpdated>
      <RecordState>Active</RecordState>
    </EventShiftCodeBusinessUnitDTO>
    <EventShiftCodeBusinessUnitDTO>
      <BUID>1</BUID>
      <BusinessUnitName>sample string 3</BusinessUnitName>
      <Created>
        <DateUtc>2024-12-04T08:04:33.4638348+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </Created>
      <EventShiftCodesID>2</EventShiftCodesID>
      <LastUpdated>
        <DateUtc>2024-12-04T08:04:33.4638348+00:00</DateUtc>
        <UserName>sample string 2</UserName>
      </LastUpdated>
      <RecordState>Active</RecordState>
    </EventShiftCodeBusinessUnitDTO>
  </BusinessUnits>
  <Code>sample string 2</Code>
  <Created>
    <DateUtc>2024-12-04T08:04:33.4638348+00:00</DateUtc>
    <UserName>sample string 2</UserName>
  </Created>
  <DefaultStartTimeUtc>2024-12-04T08:04:33.4638348+00:00</DefaultStartTimeUtc>
  <DefaultStopTimeUtc>2024-12-04T08:04:33.4638348+00:00</DefaultStopTimeUtc>
  <DefaultTimes>true</DefaultTimes>
  <Description>sample string 3</Description>
  <EventShiftCodeID>1</EventShiftCodeID>
  <LastUpdated>
    <DateUtc>2024-12-04T08:04:33.4638348+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>
  <SortOrder>5</SortOrder>
  <StartTime>PT0.1234567S</StartTime>
  <StopTime>PT0.1234567S</StopTime>
</EventShiftCodeDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/x-compressed-json

Sample:
��S�N�0��V�ֱ�yC�0C�	1��
�;�$���$~7T�"�1T�p�w��ݳ���|B�fϝ���yU
ABPM[#	��@d�1T޴�8���_����`}�_�yT~�X%.�L�r6�bAI��|,f��8�TR
[L���x�c1�Қ�t��)c���}�za����y�$F�0�c
����'w��j����Q�y#Β�M�d=�lz��+XeP��V�9�����S���?��.�����b�猋��t=zsB?����у���P9�w�纪@

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.