Daily Plan Endpoints
Manage daily work plans β assign tasks to specific days, track daily progress, and coordinate team schedules.
Base Pathβ
/api/daily-plan
Endpointsβ
Get My Daily Plansβ
Retrieves daily plans for the currently authenticated employee.
GET /api/daily-plan/me
Authorization: Bearer {token}
Get Team Daily Plansβ
Retrieves daily plans for all members of the current user's teams.
GET /api/daily-plan/team
Authorization: Bearer {token}
Get Employee's Daily Plansβ
Retrieves daily plans for a specific employee.
GET /api/daily-plan/employee/:id
Authorization: Bearer {token}
Get Daily Plans for a Taskβ
Retrieves all daily plans that contain a specific task.
GET /api/daily-plan/task/:id
Authorization: Bearer {token}
List All Daily Plansβ
GET /api/daily-plan
Authorization: Bearer {token}
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
where | object | Filter conditions |
relations | array | Relations to include |
page | number | Page number |
limit | number | Items per page |
Create Daily Planβ
POST /api/daily-plan
Authorization: Bearer {token}
Content-Type: application/json
{
"date": "2024-03-15",
"status": "OPEN",
"employeeId": "uuid",
"organizationId": "uuid",
"taskIds": ["task-uuid-1", "task-uuid-2"]
}
Response 201 Created.
Update Daily Planβ
PUT /api/daily-plan/:id
Authorization: Bearer {token}
Content-Type: application/json
{
"status": "IN_PROGRESS"
}
Delete Daily Planβ
DELETE /api/daily-plan/:id
Authorization: Bearer {token}
Add Task to Daily Planβ
POST /api/daily-plan/:id/task
Authorization: Bearer {token}
Content-Type: application/json
{
"taskId": "task-uuid"
}
Remove Task from Daily Planβ
PUT /api/daily-plan/:id/task
Authorization: Bearer {token}
Content-Type: application/json
{
"taskId": "task-uuid"
}
Remove Task from Multiple Plansβ
Removes a task from all daily plans where it appears.
PUT /api/daily-plan/task/:taskId
Authorization: Bearer {token}
Content-Type: application/json
{
"planIds": ["plan-uuid-1", "plan-uuid-2"]
}
Data Modelβ
interface IDailyPlan {
id: string;
date: Date;
status: DailyPlanStatusEnum;
employeeId: string;
employee?: IEmployee;
tasks?: ITask[];
organizationId: string;
tenantId: string;
}
enum DailyPlanStatusEnum {
OPEN = "open",
IN_PROGRESS = "in-progress",
COMPLETED = "completed",
}
Permissionsβ
| Action | Required Permission |
|---|---|
| View own plans | ORG_TASK_VIEW |
| View team plans | ORG_TASK_VIEW |
| Create/edit plans | ORG_TASK_EDIT |
Related Pagesβ
- Task Endpoints β task management API
- Daily Plans Feature β feature overview
- Sprint Endpoints β sprint management