Save document sources
PUT
/v1/setup/documents
const url = 'http://localhost:8080/v1/setup/documents';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"watchFolder":"example","maxPackageMb":1,"retentionDays":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8080/v1/setup/documents \ --header 'Content-Type: application/json' \ --data '{ "watchFolder": "example", "maxPackageMb": 1, "retentionDays": 1 }'Step 7. Stores the watch folder inside the api container (takes effect after a restart), the maximum package size in MB (1–2048) and the retention period in days (30–36500). Administrators only. 400 for invalid values.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
watchFolder
string
maxPackageMb
integer | string format: int32
retentionDays
integer | string format: int32
Examplegenerated
{ "watchFolder": "example", "maxPackageMb": 1, "retentionDays": 1}Responses
Section titled “Responses”No Content