Add or Update an Absence Type
This service either adds a new absence type or updates an existing type when an absence type id is provided.
When updating, either or both the name and colour can be updated. When adding both, the name and colour must be included.
Query String Parameters
Name | Type | Description | Required |
---|---|---|---|
Action | String | AbsenceTypeSave | Required |
AbsenceTypeId | Int | Id of the absence type to update. | Required, when updating |
AbsenceTypeName | String | Name of the absence type. | Required, when adding |
AbsenceTypeColor | String | Colour to display in BigChange
| Required, when adding |
tip
Absence type colours are case sensitive. The different casing on "plum" is correct.
Response Codes
Example
- Request
- Response
Request URL
https://webservice.bigchange.com/v01/services.ashx?action=AbsenceTypeSave&AbsenceTypeName=New Test Type&AbsenceTypeColor=plum
Response Data
{ "Code": 0, "Result": { "AbsenceTypeId": 26445 } }