Skip to content

Add document to group

POST
/v2/document/group/{groupId}/document/{documentId}

Add a document to a group

groupId
required
string

A group Id

Example
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
documentId
required
string

A document Id

Example
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
X-API-Key
string

API Key

X-API-Secret
string

API Secret

object
groupId
required

The Group Id

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
documentId
required

The Document Id

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a

The resource has been successfully created.

object
documentId

A document Id

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
refId

A reference Id

string
b7e6a1c2-3f4d-4e2a-9c1a-2b3c4d5e6f7a
docExt

A document extension

string
application/pdf
docName

A document name

string
Invoice Q1 2024
docType

A document type

string
invoice
uploadBatchId

An upload batch Id

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
isPublic

Set the visibility of the document and its data

boolean
source

The origin of the document upload

string
groupId

The group id to add the document to

string
e3f4d5c6-7a8b-4e2a-9c1a-2b3c4d5e6f7a
prompts

A prompt array

Array<object>
object
id
required

A prompt Id

string
a1b2c3d4-5678-4e2a-9c1a-2b3c4d5e6f7a
name
required

A prompt name

string
Summary
fieldType
required

A field type

string
text
format
required

A format

string
string
description
required

A description

string
Whats the summary of the document?
itemType

An item type

string
string
children
Array<object> recursive
[
{
"id": "1",
"name": "Total",
"fieldType": "number",
"format": "currency",
"description": "The total amount of the document"
}
]
webhookId

The webhook id to send the document to

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a
bulkDocumentId

The bulk document id to add the document to

string
f52b1f9e-b9a6-4248-afc5-d3ae358e723a