PUT Api/Resource/TimeRegistration/V2/Submit

Submit the registration.

Request Information

URI Parameters

None.

Body Parameters

Collection of UpdateRegistrationScheduling
NameDescriptionTypeAdditional information
RegistrationId

integer

None.

UniqueIdentifier

string

None.

UserId

integer

None.

ForEmployeeId

string

None.

Date

date

None.

StartTime

date

None.

EndTime

date

None.

CodeType

integer

None.

CodeId

string

None.

Remark

string

None.

Submit

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "RegistrationId": 1,
    "UniqueIdentifier": "sample string 2",
    "UserId": 3,
    "ForEmployeeId": "sample string 4",
    "Date": "2024-12-22T08:00:33.4711261+01:00",
    "StartTime": "2024-12-22T08:00:33.4711261+01:00",
    "EndTime": "2024-12-22T08:00:33.4711261+01:00",
    "CodeType": 8,
    "CodeId": "sample string 9",
    "Remark": "sample string 10",
    "Submit": true
  },
  {
    "RegistrationId": 1,
    "UniqueIdentifier": "sample string 2",
    "UserId": 3,
    "ForEmployeeId": "sample string 4",
    "Date": "2024-12-22T08:00:33.4711261+01:00",
    "StartTime": "2024-12-22T08:00:33.4711261+01:00",
    "EndTime": "2024-12-22T08:00:33.4711261+01:00",
    "CodeType": 8,
    "CodeId": "sample string 9",
    "Remark": "sample string 10",
    "Submit": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateRegistrationScheduling xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.TimeRegistrationObjects.TimeRegistration">
  <UpdateRegistrationScheduling>
    <RegistrationId>1</RegistrationId>
    <UniqueIdentifier>sample string 2</UniqueIdentifier>
    <UserId>3</UserId>
    <ForEmployeeId>sample string 4</ForEmployeeId>
    <Date>2024-12-22T08:00:33.4711261+01:00</Date>
    <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
    <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
    <CodeType>8</CodeType>
    <CodeId>sample string 9</CodeId>
    <Remark>sample string 10</Remark>
    <Submit>true</Submit>
  </UpdateRegistrationScheduling>
  <UpdateRegistrationScheduling>
    <RegistrationId>1</RegistrationId>
    <UniqueIdentifier>sample string 2</UniqueIdentifier>
    <UserId>3</UserId>
    <ForEmployeeId>sample string 4</ForEmployeeId>
    <Date>2024-12-22T08:00:33.4711261+01:00</Date>
    <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
    <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
    <CodeType>8</CodeType>
    <CodeId>sample string 9</CodeId>
    <Remark>sample string 10</Remark>
    <Submit>true</Submit>
  </UpdateRegistrationScheduling>
</ArrayOfUpdateRegistrationScheduling>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RegistrationResult
NameDescriptionTypeAdditional information
RegistrationCodePerCodeType

Dictionary of CodeType [key] and Collection of RegistrationCode [value]

None.

RegistrationSchedulingResults

Collection of RegistrationSchedulingResult

None.

Response Formats

application/json, text/json

Sample:
{
  "RegistrationCodePerCodeType": {
    "Activity": [
      {
        "Id": "sample string 1",
        "Name": "sample string 2",
        "Details1": "sample string 3",
        "Details2": "sample string 4",
        "Color": 5,
        "ActivityInfo": {
          "Location": "sample string 1",
          "Customer": "sample string 2"
        }
      },
      {
        "Id": "sample string 1",
        "Name": "sample string 2",
        "Details1": "sample string 3",
        "Details2": "sample string 4",
        "Color": 5,
        "ActivityInfo": {
          "Location": "sample string 1",
          "Customer": "sample string 2"
        }
      }
    ]
  },
  "RegistrationSchedulingResults": [
    {
      "UpdateErrors": [
        0,
        0
      ],
      "RegistrationId": 1,
      "UniqueIdentifier": "sample string 2",
      "Date": "2024-12-22T08:00:33.4711261+01:00",
      "StartTime": "2024-12-22T08:00:33.4711261+01:00",
      "EndTime": "2024-12-22T08:00:33.4711261+01:00",
      "ScheduledCodeId": "sample string 6",
      "ExtraRequiredCode": "sample string 7",
      "CodeType": 1,
      "Status": [
        {
          "StatusId": 1,
          "CreateDate": "2024-12-22T08:00:33.4711261+01:00",
          "CreatedById": 3,
          "Date": "2024-12-22T08:00:33.4711261+01:00",
          "StartTime": "2024-12-22T08:00:33.4711261+01:00",
          "EndTime": "2024-12-22T08:00:33.4711261+01:00",
          "ScheduledCodeId": "sample string 7",
          "Status": 0,
          "Remark": "sample string 8",
          "Reason": 0,
          "Result": 0
        },
        {
          "StatusId": 1,
          "CreateDate": "2024-12-22T08:00:33.4711261+01:00",
          "CreatedById": 3,
          "Date": "2024-12-22T08:00:33.4711261+01:00",
          "StartTime": "2024-12-22T08:00:33.4711261+01:00",
          "EndTime": "2024-12-22T08:00:33.4711261+01:00",
          "ScheduledCodeId": "sample string 7",
          "Status": 0,
          "Remark": "sample string 8",
          "Reason": 0,
          "Result": 0
        }
      ],
      "IsDeleted": true,
      "IsValidRegistration": true,
      "RegistrationType": 0
    },
    {
      "UpdateErrors": [
        0,
        0
      ],
      "RegistrationId": 1,
      "UniqueIdentifier": "sample string 2",
      "Date": "2024-12-22T08:00:33.4711261+01:00",
      "StartTime": "2024-12-22T08:00:33.4711261+01:00",
      "EndTime": "2024-12-22T08:00:33.4711261+01:00",
      "ScheduledCodeId": "sample string 6",
      "ExtraRequiredCode": "sample string 7",
      "CodeType": 1,
      "Status": [
        {
          "StatusId": 1,
          "CreateDate": "2024-12-22T08:00:33.4711261+01:00",
          "CreatedById": 3,
          "Date": "2024-12-22T08:00:33.4711261+01:00",
          "StartTime": "2024-12-22T08:00:33.4711261+01:00",
          "EndTime": "2024-12-22T08:00:33.4711261+01:00",
          "ScheduledCodeId": "sample string 7",
          "Status": 0,
          "Remark": "sample string 8",
          "Reason": 0,
          "Result": 0
        },
        {
          "StatusId": 1,
          "CreateDate": "2024-12-22T08:00:33.4711261+01:00",
          "CreatedById": 3,
          "Date": "2024-12-22T08:00:33.4711261+01:00",
          "StartTime": "2024-12-22T08:00:33.4711261+01:00",
          "EndTime": "2024-12-22T08:00:33.4711261+01:00",
          "ScheduledCodeId": "sample string 7",
          "Status": 0,
          "Remark": "sample string 8",
          "Reason": 0,
          "Result": 0
        }
      ],
      "IsDeleted": true,
      "IsValidRegistration": true,
      "RegistrationType": 0
    }
  ]
}

application/xml, text/xml

Sample:
<RegistrationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Paralax.TimeRegistrationObjects.TimeRegistration">
  <RegistrationCodePerCodeType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfCodeTypeArrayOfRegistrationCodesxcaOXaY>
      <d2p1:Key>Activity</d2p1:Key>
      <d2p1:Value>
        <RegistrationCode>
          <Id>sample string 1</Id>
          <Name>sample string 2</Name>
          <Details1>sample string 3</Details1>
          <Details2>sample string 4</Details2>
          <Color>5</Color>
          <ActivityInfo>
            <Location>sample string 1</Location>
            <Customer>sample string 2</Customer>
          </ActivityInfo>
        </RegistrationCode>
        <RegistrationCode>
          <Id>sample string 1</Id>
          <Name>sample string 2</Name>
          <Details1>sample string 3</Details1>
          <Details2>sample string 4</Details2>
          <Color>5</Color>
          <ActivityInfo>
            <Location>sample string 1</Location>
            <Customer>sample string 2</Customer>
          </ActivityInfo>
        </RegistrationCode>
      </d2p1:Value>
    </d2p1:KeyValueOfCodeTypeArrayOfRegistrationCodesxcaOXaY>
  </RegistrationCodePerCodeType>
  <RegistrationSchedulingResults>
    <RegistrationSchedulingResult>
      <RegistrationId>1</RegistrationId>
      <UniqueIdentifier>sample string 2</UniqueIdentifier>
      <Date>2024-12-22T08:00:33.4711261+01:00</Date>
      <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
      <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
      <ScheduledCodeId>sample string 6</ScheduledCodeId>
      <ExtraRequiredCode>sample string 7</ExtraRequiredCode>
      <CodeType>Activity</CodeType>
      <Status>
        <RegistrationSchedulingStatus>
          <StatusId>1</StatusId>
          <CreateDate>2024-12-22T08:00:33.4711261+01:00</CreateDate>
          <CreatedById>3</CreatedById>
          <Date>2024-12-22T08:00:33.4711261+01:00</Date>
          <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
          <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
          <ScheduledCodeId>sample string 7</ScheduledCodeId>
          <Status>New</Status>
          <Remark>sample string 8</Remark>
          <Reason>None</Reason>
          <Result>None</Result>
        </RegistrationSchedulingStatus>
        <RegistrationSchedulingStatus>
          <StatusId>1</StatusId>
          <CreateDate>2024-12-22T08:00:33.4711261+01:00</CreateDate>
          <CreatedById>3</CreatedById>
          <Date>2024-12-22T08:00:33.4711261+01:00</Date>
          <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
          <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
          <ScheduledCodeId>sample string 7</ScheduledCodeId>
          <Status>New</Status>
          <Remark>sample string 8</Remark>
          <Reason>None</Reason>
          <Result>None</Result>
        </RegistrationSchedulingStatus>
      </Status>
      <IsDeleted>true</IsDeleted>
      <IsValidRegistration>true</IsValidRegistration>
      <RegistrationType>Unknown</RegistrationType>
      <UpdateErrors>
        <UpdateError>EmployeeID_Is_Null</UpdateError>
        <UpdateError>EmployeeID_Is_Null</UpdateError>
      </UpdateErrors>
    </RegistrationSchedulingResult>
    <RegistrationSchedulingResult>
      <RegistrationId>1</RegistrationId>
      <UniqueIdentifier>sample string 2</UniqueIdentifier>
      <Date>2024-12-22T08:00:33.4711261+01:00</Date>
      <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
      <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
      <ScheduledCodeId>sample string 6</ScheduledCodeId>
      <ExtraRequiredCode>sample string 7</ExtraRequiredCode>
      <CodeType>Activity</CodeType>
      <Status>
        <RegistrationSchedulingStatus>
          <StatusId>1</StatusId>
          <CreateDate>2024-12-22T08:00:33.4711261+01:00</CreateDate>
          <CreatedById>3</CreatedById>
          <Date>2024-12-22T08:00:33.4711261+01:00</Date>
          <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
          <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
          <ScheduledCodeId>sample string 7</ScheduledCodeId>
          <Status>New</Status>
          <Remark>sample string 8</Remark>
          <Reason>None</Reason>
          <Result>None</Result>
        </RegistrationSchedulingStatus>
        <RegistrationSchedulingStatus>
          <StatusId>1</StatusId>
          <CreateDate>2024-12-22T08:00:33.4711261+01:00</CreateDate>
          <CreatedById>3</CreatedById>
          <Date>2024-12-22T08:00:33.4711261+01:00</Date>
          <StartTime>2024-12-22T08:00:33.4711261+01:00</StartTime>
          <EndTime>2024-12-22T08:00:33.4711261+01:00</EndTime>
          <ScheduledCodeId>sample string 7</ScheduledCodeId>
          <Status>New</Status>
          <Remark>sample string 8</Remark>
          <Reason>None</Reason>
          <Result>None</Result>
        </RegistrationSchedulingStatus>
      </Status>
      <IsDeleted>true</IsDeleted>
      <IsValidRegistration>true</IsValidRegistration>
      <RegistrationType>Unknown</RegistrationType>
      <UpdateErrors>
        <UpdateError>EmployeeID_Is_Null</UpdateError>
        <UpdateError>EmployeeID_Is_Null</UpdateError>
      </UpdateErrors>
    </RegistrationSchedulingResult>
  </RegistrationSchedulingResults>
</RegistrationResult>