Email
Update email
Update email object.
put/api/v1/emails/{emailID}
Path parameters
emailIDinteger required
Email ID
Request body
Example request
{
"id": 1234,
"url": "https://example.rossum.app/api/v1/emails/1234",
"queue": "https://example.rossum.app/api/v1/queues/8198",
"inbox": "https://example.rossum.app/api/v1/inboxes/1229",
"parent": "https://example.rossum.app/api/v1/emails/1234",
"email_thread": "https://example.rossum.app/api/v1/email_threads/456",
"children": [
"https://example.rossum.app/api/v1/emails/1244"
],
"documents": [
"https://example.rossum.app/api/v1/documents/5678"
],
"created_at": "2021-03-26T14:31:46.993427Z",
"last_thread_email_created_at": "2021-03-27T14:29:48.665478Z",
"subject": "Some email subject",
"from": {
"email": "company@east-west.com",
"name": "Company East"
},
"to": [
{
"email": "east-west-trading-co-a34f3a@example.rossum.app",
"name": "East West Trading"
}
],
"cc": [],
"bcc": [],
"body_text_plain": "Some body",
"body_text_html": "<div dir=\"ltr\">Some body</div>",
"metadata": {
"some_key": "some_value"
},
"type": "outgoing",
"annotation_counts": {
"annotations": 3,
"annotations_processed": 1,
"annotations_unprocessed": 1,
"annotations_rejected": 1
},
"annotations": [
"https://example.rossum.app/api/v1/annotations/1",
"https://example.rossum.app/api/v1/annotations/2",
"https://example.rossum.app/api/v1/annotations/4"
],
"related_annotations": [],
"related_documents": [
"https://example.rossum.app/api/v1/documents/3"
],
"creator": "https://example.rossum.app/api/v1/users/10775",
"filtered_out_document_count": 2,
"labels": [
"rejected"
],
"content": "https://example.rossum.app/api/v1/emails/1234"
}Response
OK
Example response
{
"id": 1234,
"url": "https://example.rossum.app/api/v1/emails/1234",
"queue": "https://example.rossum.app/api/v1/queues/8198",
"inbox": "https://example.rossum.app/api/v1/inboxes/1229",
"parent": "https://example.rossum.app/api/v1/emails/1234",
"email_thread": "https://example.rossum.app/api/v1/email_threads/456",
"children": [
"https://example.rossum.app/api/v1/emails/1244"
],
"documents": [
"https://example.rossum.app/api/v1/documents/5678"
],
"created_at": "2021-03-26T14:31:46.993427Z",
"last_thread_email_created_at": "2021-03-27T14:29:48.665478Z",
"subject": "Some email subject",
"from": {
"email": "company@east-west.com",
"name": "Company East"
},
"to": [
{
"email": "east-west-trading-co-a34f3a@example.rossum.app",
"name": "East West Trading"
}
],
"cc": [],
"bcc": [],
"body_text_plain": "Some body",
"body_text_html": "<div dir=\"ltr\">Some body</div>",
"metadata": {
"some_key": "some_value"
},
"type": "outgoing",
"annotation_counts": {
"annotations": 3,
"annotations_processed": 1,
"annotations_unprocessed": 1,
"annotations_rejected": 1
},
"annotations": [
"https://example.rossum.app/api/v1/annotations/1",
"https://example.rossum.app/api/v1/annotations/2",
"https://example.rossum.app/api/v1/annotations/4"
],
"related_annotations": [],
"related_documents": [
"https://example.rossum.app/api/v1/documents/3"
],
"creator": "https://example.rossum.app/api/v1/users/10775",
"filtered_out_document_count": 2,
"labels": [
"rejected"
],
"content": "https://example.rossum.app/api/v1/emails/1234"
}Changes
No recorded changes to this endpoint across all 1 revision of this API.