POST api/shifts/addShiftsFromTemplate

Request Information

URI Parameters

None.

Body Parameters

Collection of Shift
NameDescriptionTypeAdditional information
iShift

globally unique identifier

None.

code

string

None.

startTime

time interval

None.

endTime

time interval

None.

description

string

None.

visible

boolean

None.

createdAt

date

None.

updatedAt

date

None.

customFields

Collection of CustomFieldValue

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "iShift": "c38c384c-df89-4395-8c0e-b49af6453244",
    "code": "sample string 2",
    "startTime": "00:00:00.1234567",
    "endTime": "00:00:00.1234567",
    "description": "sample string 5",
    "visible": true,
    "createdAt": "2025-12-11T06:41:55.3837109-08:00",
    "updatedAt": "2025-12-11T06:41:55.3837109-08:00",
    "customFields": [
      {
        "iCustomFieldValue": "ee6deecf-ffba-4cb7-a9d9-65481869f6e4",
        "iCustomField": "7185af52-29ee-4a67-886a-2d7eb9446aa5",
        "iCustomTable": "fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a",
        "iContext": "c338cd33-e613-48b8-a933-20560c9aaaad",
        "name": "sample string 5",
        "datatype": "sample string 6",
        "defaultValue": "sample string 7",
        "options": "sample string 8",
        "required": true,
        "value": "sample string 10"
      },
      {
        "iCustomFieldValue": "ee6deecf-ffba-4cb7-a9d9-65481869f6e4",
        "iCustomField": "7185af52-29ee-4a67-886a-2d7eb9446aa5",
        "iCustomTable": "fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a",
        "iContext": "c338cd33-e613-48b8-a933-20560c9aaaad",
        "name": "sample string 5",
        "datatype": "sample string 6",
        "defaultValue": "sample string 7",
        "options": "sample string 8",
        "required": true,
        "value": "sample string 10"
      }
    ]
  },
  {
    "iShift": "c38c384c-df89-4395-8c0e-b49af6453244",
    "code": "sample string 2",
    "startTime": "00:00:00.1234567",
    "endTime": "00:00:00.1234567",
    "description": "sample string 5",
    "visible": true,
    "createdAt": "2025-12-11T06:41:55.3837109-08:00",
    "updatedAt": "2025-12-11T06:41:55.3837109-08:00",
    "customFields": [
      {
        "iCustomFieldValue": "ee6deecf-ffba-4cb7-a9d9-65481869f6e4",
        "iCustomField": "7185af52-29ee-4a67-886a-2d7eb9446aa5",
        "iCustomTable": "fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a",
        "iContext": "c338cd33-e613-48b8-a933-20560c9aaaad",
        "name": "sample string 5",
        "datatype": "sample string 6",
        "defaultValue": "sample string 7",
        "options": "sample string 8",
        "required": true,
        "value": "sample string 10"
      },
      {
        "iCustomFieldValue": "ee6deecf-ffba-4cb7-a9d9-65481869f6e4",
        "iCustomField": "7185af52-29ee-4a67-886a-2d7eb9446aa5",
        "iCustomTable": "fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a",
        "iContext": "c338cd33-e613-48b8-a933-20560c9aaaad",
        "name": "sample string 5",
        "datatype": "sample string 6",
        "defaultValue": "sample string 7",
        "options": "sample string 8",
        "required": true,
        "value": "sample string 10"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfShift xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Shifts">
  <Shift>
    <code>sample string 2</code>
    <createdAt>2025-12-11T06:41:55.3837109-08:00</createdAt>
    <customFields xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Custom">
      <d3p1:CustomFieldValue>
        <d3p1:datatype>sample string 6</d3p1:datatype>
        <d3p1:defaultValue>sample string 7</d3p1:defaultValue>
        <d3p1:iContext>c338cd33-e613-48b8-a933-20560c9aaaad</d3p1:iContext>
        <d3p1:iCustomField>7185af52-29ee-4a67-886a-2d7eb9446aa5</d3p1:iCustomField>
        <d3p1:iCustomFieldValue>ee6deecf-ffba-4cb7-a9d9-65481869f6e4</d3p1:iCustomFieldValue>
        <d3p1:iCustomTable>fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a</d3p1:iCustomTable>
        <d3p1:name>sample string 5</d3p1:name>
        <d3p1:options>sample string 8</d3p1:options>
        <d3p1:required>true</d3p1:required>
        <d3p1:value>sample string 10</d3p1:value>
      </d3p1:CustomFieldValue>
      <d3p1:CustomFieldValue>
        <d3p1:datatype>sample string 6</d3p1:datatype>
        <d3p1:defaultValue>sample string 7</d3p1:defaultValue>
        <d3p1:iContext>c338cd33-e613-48b8-a933-20560c9aaaad</d3p1:iContext>
        <d3p1:iCustomField>7185af52-29ee-4a67-886a-2d7eb9446aa5</d3p1:iCustomField>
        <d3p1:iCustomFieldValue>ee6deecf-ffba-4cb7-a9d9-65481869f6e4</d3p1:iCustomFieldValue>
        <d3p1:iCustomTable>fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a</d3p1:iCustomTable>
        <d3p1:name>sample string 5</d3p1:name>
        <d3p1:options>sample string 8</d3p1:options>
        <d3p1:required>true</d3p1:required>
        <d3p1:value>sample string 10</d3p1:value>
      </d3p1:CustomFieldValue>
    </customFields>
    <description>sample string 5</description>
    <endTime>PT0.1234567S</endTime>
    <iShift>c38c384c-df89-4395-8c0e-b49af6453244</iShift>
    <startTime>PT0.1234567S</startTime>
    <updatedAt>2025-12-11T06:41:55.3837109-08:00</updatedAt>
    <visible>true</visible>
  </Shift>
  <Shift>
    <code>sample string 2</code>
    <createdAt>2025-12-11T06:41:55.3837109-08:00</createdAt>
    <customFields xmlns:d3p1="http://schemas.datacontract.org/2004/07/eDHRApi.Models.Custom">
      <d3p1:CustomFieldValue>
        <d3p1:datatype>sample string 6</d3p1:datatype>
        <d3p1:defaultValue>sample string 7</d3p1:defaultValue>
        <d3p1:iContext>c338cd33-e613-48b8-a933-20560c9aaaad</d3p1:iContext>
        <d3p1:iCustomField>7185af52-29ee-4a67-886a-2d7eb9446aa5</d3p1:iCustomField>
        <d3p1:iCustomFieldValue>ee6deecf-ffba-4cb7-a9d9-65481869f6e4</d3p1:iCustomFieldValue>
        <d3p1:iCustomTable>fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a</d3p1:iCustomTable>
        <d3p1:name>sample string 5</d3p1:name>
        <d3p1:options>sample string 8</d3p1:options>
        <d3p1:required>true</d3p1:required>
        <d3p1:value>sample string 10</d3p1:value>
      </d3p1:CustomFieldValue>
      <d3p1:CustomFieldValue>
        <d3p1:datatype>sample string 6</d3p1:datatype>
        <d3p1:defaultValue>sample string 7</d3p1:defaultValue>
        <d3p1:iContext>c338cd33-e613-48b8-a933-20560c9aaaad</d3p1:iContext>
        <d3p1:iCustomField>7185af52-29ee-4a67-886a-2d7eb9446aa5</d3p1:iCustomField>
        <d3p1:iCustomFieldValue>ee6deecf-ffba-4cb7-a9d9-65481869f6e4</d3p1:iCustomFieldValue>
        <d3p1:iCustomTable>fdf3f0f1-bf95-4cb9-b86b-5576e1cdea0a</d3p1:iCustomTable>
        <d3p1:name>sample string 5</d3p1:name>
        <d3p1:options>sample string 8</d3p1:options>
        <d3p1:required>true</d3p1:required>
        <d3p1:value>sample string 10</d3p1:value>
      </d3p1:CustomFieldValue>
    </customFields>
    <description>sample string 5</description>
    <endTime>PT0.1234567S</endTime>
    <iShift>c38c384c-df89-4395-8c0e-b49af6453244</iShift>
    <startTime>PT0.1234567S</startTime>
    <updatedAt>2025-12-11T06:41:55.3837109-08:00</updatedAt>
    <visible>true</visible>
  </Shift>
</ArrayOfShift>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.