Entity Subscription Endpoints
Subscribe to entities (tasks, projects, etc.) to receive notifications when changes occur.
Base Pathβ
/api/entity-subscription
Endpointsβ
List Subscriptionsβ
GET /api/entity-subscription
Authorization: Bearer {token}
Create Subscriptionβ
POST /api/entity-subscription
Authorization: Bearer {token}
Content-Type: application/json
{
"entity": "Task",
"entityId": "task-uuid",
"type": "COMMENT"
}
Delete Subscriptionβ
DELETE /api/entity-subscription/:id
Authorization: Bearer {token}
Subscription Typesβ
| Type | Notification Trigger |
|---|---|
COMMENT | New comment on entity |
STATUS | Status change |
ASSIGNMENT | Assignment change |
ALL | All changes |
Data Modelβ
interface IEntitySubscription {
id: string;
entity: string;
entityId: string;
type: EntitySubscriptionTypeEnum;
employeeId: string;
organizationId: string;
tenantId: string;
}
Related Pagesβ
- Entity Subscriptions Feature β feature guide
- Employee Notifications β notification system