Skip to main content
PUT
Update registry retention

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
default
RegistryRetentionPolicy · object | null

The project-wide policy; null resets it to the platform default; omit to leave it.

rules
RegistryRetentionRuleInput · object[]

Replaces every repository rule; an empty list removes them all; omit to leave them.

Response

Successful Response

retention
RegistryRetention · object
required
harbor_applied
boolean
required
harbor_apply_error
string | null
required