Click or drag to resize

ServiceRouterAddHolidayList Method

Adds a AddHolidayListModel 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 AddHolidayListOut AddHolidayList(
	AddHolidayListIn input
)

Parameters

input  AddHolidayListIn
A new AddHolidayListIn object

Return Value

AddHolidayListOut
A AddHolidayListOut results structure
Remarks
Adds a AddHolidayListModel and returns a list of AddResult structures.
The structures give a status for the AddHolidayListModel passed in.
Caution note  Caution
All Holidays must have a name. The name must be between 1 and 50 characters

Caution note  Caution
HolidayList names must be unique

Example
JSON Request
{
    "AuthToken":"...",
    "Payload":[{
        "Name":"Test Holiday List"
    }]
}
JSON Response
{
    "Report": {
        "APIVersion": "2.0",
        "ProcessTime": "0.0262408",
        "RequestTime": "/Date(1559659222525-0700)/",
        "ResponseTime": "/Date(1559659222552-0700)/",
        "Results": 1
    },
    "Results": [
        {
            "ID": 4,
            "Messages": [
                "Success Add for : 'Test Holiday List'. Added with HolidayListID : 4"
            ],
            "Status": 1
        }
    ]
}
See Also