Skip to main content
POST
Approve a draft as the filing

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

If-Match
string

Draft version the caller read and is approving. Required.

Parâmetros de caminho

reportId
string
obrigatório

Report identifier.

Resposta

OK

allInstitutions
boolean

The caller chose every institution, so the report read every institution's rows unscoped.

Exemplo:

false

approvedAt
string<date-time>

When the report was approved, when it was.

Exemplo:

"2026-03-12T10:00:00Z"

approvedBy
string

Who approved it, as the Access Manager subject identifier the bearer token named. Absent until approval; never blank on a Final, because an approval whose actor the request did not identify is refused.

Exemplo:

"9c1d7e34-2b6a-4f81-90a3-5e7f8d0a1b2c"

completedAt
string<date-time> | null

Time when report generation completed, when available.

Exemplo:

"2026-01-31T15:04:05Z"

correctedAt
string<date-time>

When the draft was last corrected, when it was.

Exemplo:

"2026-03-12T09:40:00Z"

correctedBy
string

Who last corrected it, as the Access Manager subject identifier the bearer token named. Absent until the first correction; never blank on a report that has one, because a correction whose actor the request did not identify is refused.

Exemplo:

"3f9a1c2e-0f5b-4d9a-9b8e-1a2b3c4d5e6f"

createdAt
string<date-time>

Time when the report was created.

Exemplo:

"2026-01-31T15:00:00Z"

deletedAt
string<date-time> | null

Time when the report was soft-deleted, when applicable.

Exemplo:

"2026-02-01T09:00:00Z"

documentId
string

Curated document this report generates.

Exemplo:

"br.bcb.cadoc-4010"

documentVersion
string

Pinned version of the document it was generated against.

Exemplo:

"1.0.0"

draftVersion
integer<int64>

Version of the draft; a correction or an approval must present the one it read.

Exemplo:

3

filters
object

Filter conditions grouped by data source, table, and field.

Exemplo:
id
string

Stable report identifier.

Exemplo:

"00000000-0000-0000-0000-000000000001"

institution
object

The institution the report read for, frozen when it was requested: its scope is the part applied to the tables the report reads. Absent on a report that read for no institution.

metadata
object

Additional report metadata keyed by attribute name.

Exemplo:
openGaps
object[]

What a regulatory Draft still cannot fill, computed on read from the same stored state the approval refusal reads, each field flagged required or not. Present when a Draft is read by id; absent on a Final, on a non-regulatory report, and in the list endpoint, which does not compute it. Absent means unknown, an empty list means nothing is missing, and only a required gap refuses an approval.

parameters
object

Generation parameters recorded with the report, when supplied.

Exemplo:
provenance
object

Everything this report was made of, frozen — what answers, months later, why it says what it says.

status
string

Current report generation status.

Exemplo:

"Processing"

subscriptionId
string

Subscription this report files under; present only on the regulatory flow.

templateDescription
string

Description copied from the template when the report was created.

Exemplo:

"Monthly accounting report"

templateId
string

Template snapshot source identifier.

Exemplo:

"00000000-0000-0000-0000-000000000002"

templateOutputFormat
string

Output format selected for the generated report.

Exemplo:

"pdf"

updatedAt
string<date-time>

Time when the report was last updated.

Exemplo:

"2026-01-31T15:04:05Z"