Delete Weekly Availability
This endpoint allows you to permanently remove a weekly availability schedule from the system. This operation cannot be undone and should be used with caution.
πΉ Endpoint Detailsβ
DELETE /api/v1/weekly-schedules/{id}
π Authenticationβ
Header | Required | Description |
---|---|---|
Content-Type | Yes | Must be application/json |
Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Request Structureβ
Path Parametersβ
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
id | string (UUID) | Yes | Unique identifier of the schedule to delete | "f57b71ad-c1cc-4af6-853b-616ecb7d234c" |
π§© Request Exampleβ
curl -X DELETE "https://openapi.onlive.site/api/v1/weekly-schedules/f57b71ad-c1cc-4af6-853b-616ecb7d234c" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
π€ Response Formatβ
Successful Response (200 OK)β
{
"id": "f57b71ad-c1cc-4af6-853b-616ecb7d234c",
"name": "Test Drive Availability",
"calendarId": "4fb502ee-35cf-4e75-ad68-49b46b505a46",
"createdAt": "2025-05-22T12:45:06.490Z",
"updatedAt": "2025-05-22T12:45:06.490Z",
"deletedAt": "2025-05-22T13:00:00.000Z"
}
β Error Responsesβ
401 Unauthorizedβ
{
"statusCode": 401,
"message": "Invalid or missing authorization credentials"
}
403 Forbiddenβ
{
"statusCode": 403,
"message": "User does not have permission to delete this schedule"
}
404 Not Foundβ
{
"statusCode": 404,
"message": "Schedule not found"
}
π Notesβ
- This operation permanently removes the schedule
- All schedule configurations will be deleted
- Future availability will be affected
- The deletion cannot be undone
- System tracks deletion time (
deletedAt
) - Only schedules in your organization can be deleted
- Consider updating instead of deleting if temporary change needed
β οΈ Pre-deletion Checklistβ
-
Service Impact
- Check associated services
- Review dependent schedules
- Document configurations
-
Availability Review
- Check future appointments
- Review service availability
- Consider business impact
-
System Impact
- Evaluate scheduling system
- Check integration dependencies
- Review automated processes
π Post-deletion Actionsβ
-
System Updates
- Update service configurations
- Adjust availability calculations
- Clean up related data
-
Service Management
- Update service availability
- Modify booking rules
- Adjust scheduling options
-
Documentation
- Update schedule records
- Archive configurations
- Document changes
β Best Practicesβ
- π Verify ID: Double-check schedule ID before deletion
- π Document Reason: Keep records of deletion reasons
- π Access Control: Ensure proper authorization
- π± Communication: Inform affected stakeholders
- π Alternative: Consider deactivation instead of deletion
π« Limitationsβ
-
Cannot Delete If
- Schedule is required by system
- Active appointments depend on it
- Required by service configuration
-
System Constraints
- Operation is permanent
- No partial deletion
- All or nothing process