Activities
Retry Resolution
Retry target user and attribute resolution for an UNRESOLVED activity.
PATCH /api/activities/:id/retry-resolution
Retry resolving failed target users and attributes for an activity in UNRESOLVED status. If all pending items resolve successfully, the activity transitions back to READY.
Auth: Required — CREATE_ACTIVITY permission
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | UUID | Activity ID |
Example
curl -X PATCH https://api.reten.ai/api/activities/ee0e8400-e29b-41d4-a716-446655440000/retry-resolution \
-H "Authorization: Bearer <token>" \
-H "x-tenant-id: <tenant-id>"import axios from 'axios';
const response = await axios.patch(
'https://api.reten.ai/api/activities/ee0e8400-e29b-41d4-a716-446655440000/retry-resolution',
{},
{
headers: {
Authorization: 'Bearer <token>',
'x-tenant-id': '<tenant-id>',
},
}
);
const activity = response.data;
// activity.status will be "READY" on success or remain "UNRESOLVED" on failureResponse 200 OK
{
"id": "ee0e8400-e29b-41d4-a716-446655440000",
"type": "TASK",
"channel": "SALESMAN",
"status": "READY",
"scheduledAt": "2025-01-16T09:00:00.000Z",
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-15T10:35:00.000Z"
}Behavior
- On success: All failed target users and attributes are resolved. Activity transitions from
UNRESOLVEDtoREADY. ARESOLUTION_RETRY_SUCCESSstatus event is recorded. - On failure: Some items remain unresolved. Activity stays in
UNRESOLVEDstatus. ARESOLUTION_RETRY_FAILEDstatus event is recorded.
Error Responses
| Status | Description |
|---|---|
400 | Activity is not in UNRESOLVED status |
404 | Activity not found |