Skip to content

Approve and allowlist a package

PUT
/api/v1/approvals/{id}/approve
curl --request PUT \
--url https://api.pkgplease.com/api/v1/approvals/example/approve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "temporary": true }'

Atomically approves the request and inserts an allowlist entry. If temporary is true, the allowlist entry expires in 24h.

id
required
string
Media typeapplication/json
object
temporary
boolean
Examplegenerated
{
"temporary": true
}

Approved

Approval not found

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}