Click or drag to resize

ServiceRouterAddHolidayListDetail Method

Adds a list of HolidayListDetailModel to an account and returns a list of AddResult status structures

Namespace: AppOne.Services.V2
Assembly: AppOne.Web.Service (in AppOne.Web.Service.dll) Version: 1.0.141
Syntax
public AddHolidayListDetailOut AddHolidayListDetail(
	AddHolidayListDetailIn input
)

Parameters

input  AddHolidayListDetailIn
A new AddHolidayListIn object

Return Value

AddHolidayListDetailOut
A AddHolidayListOut results structure
Remarks
Adds a list of HolidayListDetailModel and returns a list of AddResult structures.
The structures give a status for the HolidayListDetailModel passed in.

Example
JSON Request
{    
    "AuthToken":"....",
    "Payload":[{
            "HolidayDate": "/Date(1545955200000)/",
            "ParentID": 4,
            "Name": "Test",
            "IncludeWeekend": false,
            "IsCompanyWorked": false,
            "NumberOfDays": 1}]
}
JSON Response
{
    "Report": {
        "APIVersion": "2.0",
        "ProcessTime": "0.0527606",
        "RequestTime": "/Date(1559659285016-0700)/",
        "ResponseTime": "/Date(1559659285069-0700)/",
        "Results": 1
    },
    "Results": [
        {
            "ID": 5,
            "Messages": [
                "'Test' successfully added to Holiday List: '4' for 12/28/2018"
            ],
            "Status": 1
        }
    ]
}
See Also