ื“ืœื’ ืœืชื•ื›ืŸ ื”ืจืืฉื™

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โ€‹

TypeNotification Trigger
COMMENTNew comment on entity
STATUSStatus change
ASSIGNMENTAssignment change
ALLAll changes

Data Modelโ€‹

interface IEntitySubscription {
id: string;
entity: string;
entityId: string;
type: EntitySubscriptionTypeEnum;
employeeId: string;
organizationId: string;
tenantId: string;
}