Skip to main content
PUT
Update documents

Авторизации

Authorization
string
header
обязательно

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Заголовки

X-Tenant-Id
integer

Компания, в контексте которой выполняется запрос — её id из GET /v1/tenant/. Пользователь должен состоять в этой компании: чужой id доступа к данным не даёт. Без заголовка компания определяется по домену запроса.

Параметры пути

document_id
integer
обязательно

Тело

name
string
source
enum<integer>
по умолчанию:0
  • 0 - Сформирован
  • 1 - Загружен
Доступные опции:
0,
1
template
integer | null
content_type
string | null
object_id
integer | null
regenerate
boolean
по умолчанию:false
write-only
resign
boolean
по умолчанию:false
write-only
file
string<uri>
write-only
content
string | null

Ответ

200 - application/json
id
integer
обязательно
read-only
uuid
string<uuid>
обязательно
read-only
created_by
integer | null
обязательно
read-only
signed
boolean
обязательно
read-only
created_at
string<date-time>
обязательно
read-only
updated_at
string<date-time>
обязательно
read-only
files
object[]
обязательно
read-only
signs
object[]
обязательно
read-only
meta
any
обязательно
name
string
source
enum<integer>
по умолчанию:0
  • 0 - Сформирован
  • 1 - Загружен
Доступные опции:
0,
1
template
integer | null
content_type
string | null
object_id
integer | null
content
string | null