PUT CMUserSchedules

Updates a CM User

Request Information

URI Parameters

None.

Body Parameters

Collection of UpdateUserScheduleCommand
Name Type Description Additional information
UserScheduleID integer

None.

UserID integer

None.

JobID integer

None.

SiteID integer

None.

StartDateTime date

None.

EndDateTime date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "UserScheduleID": 1,
    "UserID": 2,
    "JobID": 3,
    "SiteID": 4,
    "StartDateTime": "2024-11-21T07:09:00.1160292+00:00",
    "EndDateTime": "2024-11-21T07:09:00.1160292+00:00"
  },
  {
    "UserScheduleID": 1,
    "UserID": 2,
    "JobID": 3,
    "SiteID": 4,
    "StartDateTime": "2024-11-21T07:09:00.1160292+00:00",
    "EndDateTime": "2024-11-21T07:09:00.1160292+00:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUpdateUserScheduleCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tevalis.API.Core.Models.User.Commands">
  <UpdateUserScheduleCommand>
    <EndDateTime>2024-11-21T07:09:00.1160292+00:00</EndDateTime>
    <JobID>3</JobID>
    <SiteID>4</SiteID>
    <StartDateTime>2024-11-21T07:09:00.1160292+00:00</StartDateTime>
    <UserID>2</UserID>
    <UserScheduleID>1</UserScheduleID>
  </UpdateUserScheduleCommand>
  <UpdateUserScheduleCommand>
    <EndDateTime>2024-11-21T07:09:00.1160292+00:00</EndDateTime>
    <JobID>3</JobID>
    <SiteID>4</SiteID>
    <StartDateTime>2024-11-21T07:09:00.1160292+00:00</StartDateTime>
    <UserID>2</UserID>
    <UserScheduleID>1</UserScheduleID>
  </UpdateUserScheduleCommand>
</ArrayOfUpdateUserScheduleCommand>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of string

Response Formats

application/json, text/json

Sample:
[
  "sample string 1",
  "sample string 2"
]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>