Create Smart Archiving Policy

Creates a new package-level smart archiving policy. A policy must be created inactive. This feature is supported in Artifactory version 7.111 and later for cloud only.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
length ≥ 3

An ID that is used to identify the archive policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.

Body Params
string
required

An ID that is used to identify the archive policy. A minimum of three characters is required and can include letters, numbers, underscore and hyphen.

string

A description of the policy

string

The cron expression determines when the policy is run. This parameter is not mandatory, however if left empty the policy will not run automatically and can only be triggered manually.

integer

This setting limits the maximum duration (in minutes) the policy can run when enabled. The maximum allowed duration is 300 minutes.

boolean

An archive policy must be created inactive. This parameter is optional, but if used it must be set to FALSE. If set to TRUE when calling this API, the API call will fail and an error message is received.

boolean

A true value means that when this policy is executed, packages will be permanently deleted without an option to restore them immediately, false means that when the policy is executed packages will be deleted to the Trash Can.

string

This key is obtained from the Project Settings screen. This parameter is used only for project-level archive V2 policies, it is not used for global-level policies.

searchCriteria
object
required
Responses

400

Validation errors

401

Bad Credentials

403

Unauthorized

409

A policy with the specified key already exists

500

Internal server error

Language
Credentials
URL
LoadingLoading…
Response
Choose an example:
application/json