Skip to main content
POST
Correct an evidence record

Autorizaciones

Authorization
string
header
requerido

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

Encabezados

X-Request-ID
string

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

Parámetros de ruta

id
string
requerido

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

Ejemplo:

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

Cuerpo

application/json
correctsSequence
integer<int64>
requerido

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.

Ejemplo:

3

reason
string
requerido

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

Respuesta

Created

correctsSequence
integer<int64>
requerido

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

Ejemplo:

3

sequence
integer<int64>
requerido

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

Ejemplo:

4