Skip to content

Create Review Assignment

POST
/api/v1/workspaces/{workspace_id}/emails/{id}/review_assignments

Creates a new review assignment.

workspace_id
required
integer

Workspace ID

id
required
integer

Email ID

object
assignee_id
required
integer
assignee_type
required
string
Allowed values: User Role AiReviewer

Successful

object
id
required
integer
Example
12345
assignee_id
required
integer
Example
12345
assignee_type
required
string
Allowed values: User Role AiReviewer
Example
User
assigned_by_id
required
integer
Example
12345
assignee
required
One of:
object
id
required
integer
Example
12345
first_name
required
string
Example
John
last_name
required
string
Example
Smith
profile_image_url
required
string
nullable
Example
https://example.com/profile.jpg

Unauthorized

object
message
required
string
Example
Record not found

Forbidden

object
message
required
string
Example
Record not found

Unprocessable Entity

object
message
required
string
Example
Failed to save
errors
required
object
key
additional properties
Array<string>
Example
{
"errors": {
"username": [
"Username is required.",
"Username must be unique."
],
"email": [
"Invalid email format."
]
}
}