PUT api/v3/StaffingSchedules/ToggleStaffingSchedule

Toggles and Scheduled Staffing Level Change (Enabling or Disabling It)

Request Information

URI Parameters

None.

Body Parameters

StateInput object with the Staffing to toggle and it's value.

ToggleStaffingScheduleInput
NameDescriptionTypeAdditional information
Id

integer

None.

Act

boolean

None.

Request Formats

application/json

Sample:
{
  "Id": 1,
  "Act": true
}

application/xml, text/xml

Sample:
<ToggleStaffingScheduleInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Resgrid.Web.Services.Controllers.Version3.Models.StaffingSchedules">
  <Act>true</Act>
  <Id>1</Id>
</ToggleStaffingScheduleInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns HttpStatusCode Created if successful, BadRequest otherwise.

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.