Add document

POST /closeAPI/api/close/document
multipart/form-data

Body

  • documentRequest object Required
    Hide documentRequest attributes Show documentRequest attributes object
    • name string
    • filename string
    • mimeType string
    • periodId integer
  • file string(binary) Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer
    • name string
    • fileName string
    • size integer(int64)
POST /closeAPI/api/close/document
curl \
 --request POST 'https://customer.trintech.com/closeAPI/api/close/document' \
 --header "Content-Type: multipart/form-data" \
 --form 'documentRequest={"name":"string","filename":"string","mimeType":"string","periodId":42}' \
 --form "file=@file"
Response examples (200)
{
  "id": 42,
  "name": "string",
  "fileName": "string",
  "size": 42
}