Skip to main content
POST
/
api
/
v1
/
timemanagement
/
schedule
/
delete
Delete schedule
curl --request POST \
  --url https://app.thareja.ai/api/v1/timemanagement/schedule/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "type": "this",
  "sid": "abc123def4",
  "member_id": 5
}
'

Overview

Delete work schedules. You can delete a single schedule occurrence or all future occurrences of a recurring schedule. Only team owners and managers can delete schedules.

Request Body

id
integer
required
The unique identifier of the schedule to delete.Example: 123
type
string
required
Type of deletion to perform.Allowed values:
  • "this" - Delete only this specific schedule occurrence
  • "future" - Delete this and all future occurrences
Example: "this"
sid
string
Schedule ID (required when type is "future"). Groups related schedule entries.Example: "abc123def4"
member_id
integer
User ID (required when type is "future"). Deletes only schedules for this specific member.Example: 5

Response

success
string
Success message confirming the schedule was deleted.
status
integer
HTTP status code (200).

Example Request - Delete Single Schedule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
integer<int64>
required

The unique identifier of the schedule to delete

Example:

123

type
enum<string>
required

Type of deletion

Available options:
this,
future
Example:

"this"

sid
string

Schedule ID (required for 'future' type)

Example:

"abc123def4"

member_id
integer<int64>

User ID (required for 'future' type)

Example:

5