Restore Evaluation Field (v1)
Method + Path
POST /v1/workspace/:workspaceId/sessions/evaluation-fields/:fieldId/restore
Actual backend path: /v1/workspace/:workspaceId/sessions/evaluation-fields/:fieldId/restore
Description
Restore an archived evaluation field definition. The field will become active again.
Authentication
Required - JWT token in Authorization header
Required Permissions:
sessions.update
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Bearer token: Bearer <token> |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | string | Yes | Workspace identifier |
fieldId | string | Yes | Field identifier |
Response (200)
{
"field": {
"id": "507f1f77bcf86cd799439011",
"key": "satisfaction-rating",
"label": "Satisfaction Rating",
"status": "active",
"restoredAt": "2024-01-15T11:00:00Z"
}
}
Common Errors
- 401 Unauthorized: Missing or invalid authentication token
- 403 Forbidden: Insufficient permissions (requires
sessions.update) - 404 Not Found: Field or workspace not found
- 500 Internal Server Error: Server error