Skip to main content
POST
Correct an evidence record

Authorizations

Authorization
string
header
required

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

Headers

X-Request-ID
string

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

Path Parameters

id
string
required

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

Example:

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

Body

application/json
correctsSequence
integer<int64>
required

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.

Example:

3

reason
string
required

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

Response

Created

correctsSequence
integer<int64>
required

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

Example:

3

sequence
integer<int64>
required

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

Example:

4