curl --request PATCH \
--url https://api.coval.dev/v1/review-projects/{project_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"display_name": "Updated Project Name"
}
'{
"review_project": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"name": "review-projects/01HXYZ1234567890ABCDEF",
"id": "01HXYZ1234567890ABCDEF",
"display_name": "<string>",
"assignees": [
"<string>"
],
"linked_simulation_ids": [
"<string>"
],
"linked_metric_ids": [
"<string>"
],
"project_type": "PROJECT_INDIVIDUAL",
"notifications": true,
"create_time": "2023-11-07T05:31:56Z",
"update_time": "2023-11-07T05:31:56Z",
"linked_simulation_count": 123,
"reviewer_user_ids": {},
"opted_out_assignee_user_ids": [
"<string>"
],
"description": "<string>",
"project_rules": [
"require_disagreement_notes"
],
"enforced_collaboration": false,
"allow_metric_skipping": false,
"skippable_metric_ids": [
"<string>"
],
"batch_assignment_mode": "SELF",
"batch_size": 25,
"batch_allocation_order": "LIST_ORDER",
"progress_included_assignees": [
"<string>"
],
"progress_excluded_assignees": [
"<string>"
],
"blind_labeling_shown_metric_ids": [
"<string>"
],
"linked_metric_count": 0,
"review_label_enabled": true,
"review_label_input_mode": "OPTION_ONLY",
"review_label_options": [
"<string>"
],
"review_label_selection_mode": "SINGLE"
}
}{
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid request body",
"details": [
{
"field": "simulation_output_id",
"description": "simulation_output_id is required"
}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication failed",
"details": [
{
"field": "X-API-Key",
"description": "Invalid or missing API key"
}
]
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": [
{
"field": "annotation_id",
"description": "Annotation not found or not accessible by your organization"
}
]
}
}{
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid request parameter",
"details": [
{
"field": "<string>",
"description": "<string>"
}
]
}
}{
"error": {
"code": "INTERNAL",
"message": "Internal server error",
"details": [
{
"description": "An unexpected error occurred"
}
]
}
}Update review project
Partially update a review project.
curl --request PATCH \
--url https://api.coval.dev/v1/review-projects/{project_id} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"display_name": "Updated Project Name"
}
'{
"review_project": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"updated_by": "<string>",
"name": "review-projects/01HXYZ1234567890ABCDEF",
"id": "01HXYZ1234567890ABCDEF",
"display_name": "<string>",
"assignees": [
"<string>"
],
"linked_simulation_ids": [
"<string>"
],
"linked_metric_ids": [
"<string>"
],
"project_type": "PROJECT_INDIVIDUAL",
"notifications": true,
"create_time": "2023-11-07T05:31:56Z",
"update_time": "2023-11-07T05:31:56Z",
"linked_simulation_count": 123,
"reviewer_user_ids": {},
"opted_out_assignee_user_ids": [
"<string>"
],
"description": "<string>",
"project_rules": [
"require_disagreement_notes"
],
"enforced_collaboration": false,
"allow_metric_skipping": false,
"skippable_metric_ids": [
"<string>"
],
"batch_assignment_mode": "SELF",
"batch_size": 25,
"batch_allocation_order": "LIST_ORDER",
"progress_included_assignees": [
"<string>"
],
"progress_excluded_assignees": [
"<string>"
],
"blind_labeling_shown_metric_ids": [
"<string>"
],
"linked_metric_count": 0,
"review_label_enabled": true,
"review_label_input_mode": "OPTION_ONLY",
"review_label_options": [
"<string>"
],
"review_label_selection_mode": "SINGLE"
}
}{
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid request body",
"details": [
{
"field": "simulation_output_id",
"description": "simulation_output_id is required"
}
]
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication failed",
"details": [
{
"field": "X-API-Key",
"description": "Invalid or missing API key"
}
]
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found",
"details": [
{
"field": "annotation_id",
"description": "Annotation not found or not accessible by your organization"
}
]
}
}{
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid request parameter",
"details": [
{
"field": "<string>",
"description": "<string>"
}
]
}
}{
"error": {
"code": "INTERNAL",
"message": "Internal server error",
"details": [
{
"description": "An unexpected error occurred"
}
]
}
}Headers
Body
Assigned reviewer IDs opting out of notifications, mutually exclusive with email opt-outs. Null leaves preferences unchanged; an empty list clears them. Authenticated users may change only their own preference.
100026Which free conversations a new reviewer batch takes: LIST_ORDER (from the top of the project's conversation list, the order of the review queue), LATEST_ADDED_FIRST (most recently added to the project) or RANDOM. A held batch keeps one order while the setting is unchanged. Null restores LIST_ORDER; omission preserves the current value.
LIST_ORDER, LATEST_ADDED_FIRST, RANDOM False pauses conversation triage for everyone while preserving categories, modes, and saved labels. True enables triage. Null uses legacy configuration-based activation. Omission leaves the enabled state unchanged. For legacy clients, explicitly sending empty categories and both modes as null without this field pauses triage while preserving configuration. When all three configuration fields are supplied without this field, a valid enabled configuration is treated as enabled. For a project that uses the review form, this field turns the form on or off and changes none of its questions; turning it on while the form has no live top-level question is rejected with a 400.
Was this page helpful?