Skip to content

Reject a waiver, with a decision reason the requester reads.

POST
/waivers/{waiverId}/reject
curl --request POST \
--url https://example.com/api/v1/waivers/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/reject \
--header 'Content-Type: application/json' \
--data '{ "reason": "example" }'
waiverId
required
string format: uuid
Media typeapplication/json
object
reason
required

Why the waiver is rejected. At least 20 characters.

string
Examplegenerated
{
"reason": "example"
}

The waiver.

Media typeapplication/json
object
id
required
string format: uuid
doc_id
required
string format: uuid
check_slug
required
string
level
required
string
section
required
Array<string>
reason
required
string
status
required

Withdrawn is an approved Acknowledgement that a person took out of the sidecar.

string
Allowed values: requested approved rejected invalidated withdrawn
requested_by
required
string
approvals
required
Array<string>
policy
required

The waiver policy (§9.1).

string
needed
required

The approvals the policy needs.

integer
can_approve
required

Whether the caller can approve or reject it now.

boolean
decision_reason

Why the waiver is rejected. Only a rejected waiver has one.

string
section_range

The byte range of the waiver’s section in the current main doc. Absent when the section is gone.

object
start
required
integer
end
required
integer
trace

An Acknowledgement of one upstream trace ID. On approval it goes in the sidecar under trace.

object
id
required
string
status
required
string
Allowed values: out_of_scope covered_by
target
string
verification

What a verification waiver excuses. It never goes in the sidecar.

object
trace_id
required
string
repo
required

The code repo, or the folder, as the verification run names it.

string
run_id

The verification run the request came from. Empty for a request that named no run.

string format: uuid
standalone

True for a standalone Acknowledgement. On approval it goes in the sidecar under standalone.

boolean
withdrawn_by

Who withdrew the Acknowledgement. Only a withdrawn one has it.

string
created_at
required
string format: date-time
Example
{
"status": "requested",
"trace": {
"status": "out_of_scope"
}
}

An error.

Media typeapplication/problem+json

RFC 9457 problem details with a stable code.

object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required

A stable machine-readable error code.

string
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example",
"code": "example"
}