Delete Partner Off Day

Delete partner off days

POST {baseUrl}/partners/offDays/delete

Delete partner off day(s)

Request Body

Name
Type
Description

partnerId*

String

dates*

Array<string>

Sample Success Data

//Sample Request Body
{
    "partnerId": "{{partnerId}}",
    "date":["2024-05-20"]
}
// Sample Response Body - 200 OK
{
    "status": true,
    "message": "Off day deleted successfully",
    "data": []
}

Sample Error Data

// Sample Request Body
{
    "partnerId": "invalid id",
    "date":["2024-05-20"]
}
// Sample Response Body - 400 Bad Request
{
    "status": false,
    "message": "Could not delete off day: Partner not found"
}

Last updated