Skip to main content
POST
Correct an evidence record

Autorizações

Authorization
string
header
obrigatório

The access token received from the authorization server in the OAuth 2.0 flow.

Cabeçalhos

X-Request-ID
string

Optional correlation id (UUID) propagated through logs/traces.

Parâmetros de caminho

id
string
obrigatório

Consultation identifier (UUID) whose evidence trail is being corrected.

Exemplo:

"8f14e45f-ceea-467a-9a36-dedd4bea2543"

Corpo

application/json
correctsSequence
integer<int64>
obrigatório

REQUIRED. Position (sequence) of the record being corrected, as returned by getEvidenceTrail. Must be at least 1 and must be held by a record in THIS consultation's trail; anything else returns 422 SRC-0002 with nothing written.

Exemplo:

3

reason
string
obrigatório

Required. Free-text explanation of what was wrong with the corrected record. At most 2000 characters, and no control characters other than tab, line feed and carriage return. It must be valid UTF-8. Empty, over-long or malformed returns 422 SRC-0002.

Required string length: 1 - 2000

Resposta

Created

correctsSequence
integer<int64>
obrigatório

The position of the corrected record. That record remains in the trail, unchanged.

Exemplo:

3

sequence
integer<int64>
obrigatório

The trail position of the new correction record. It is greater than correctsSequence.

Exemplo:

4