Add Partner Off Days

Add partner off days

POST {baseUrl}/partners/offDays

Add partner off day(s)

Request Body

Name
Type
Description

partnerId*

String

dates*

Array<string>

Sample Success Data

// Sample Request Body
{
    "partnerId": "{{partnerId}}",
    "dates":["2024-05-20"]
}
// Sample Response Body - 200 OK
{
    "status": true,
    "message": "Off days added successfully",
    "data": [
        "2024-05-20T00:00:00.000Z"
    ]
}

Sample Error Data

// Sample Request Body
{
    "dates":["2024-05-20"]
}
// Sample Response Body - 400 Bad Request
{
    "status": false,
    "message": "Could not add off day: Partner not found"
}

Last updated