• Audit
  • Policies
  • Branch-utils
  • Git
  • Sync
  • Required-builds
  • Build-status
  • Comment-likes
  • Jira
  • Mirroring
  • Branch-permissions
  • Access-tokens
  • Insights
  • Ssh
  • Api
Server
Bitbucket Data Center / / Modules

Policies

Postman Collection
OpenAPI
GET

Get policies latest admin repos archive

Retrieves the repository archive policy for the instance. The user must be authenticated to access this resource.

Request

This request has no parameters.

Responses

A response containing the repository archive policy for the instance

application/json

RestRepositoryPolicy
GET/policies/latest/admin/repos/archive
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/policies/latest/admin/repos/archive' \ --header 'Accept: application/json'
200Response
1 2 3 { "permission": "ADMIN" }
PUT

Put policies latest admin repos archive

Sets the repository archive policy for the instance.

The authenticated user must have SYS_ADMIN permission.

Request

Request bodyapplication/json

The request containing the details of the policy.

permission

string

Responses

A response containing the repository archive policy for the instance

application/json

RestRepositoryPolicy
PUT/policies/latest/admin/repos/archive
1 2 3 4 5 6 7 curl --request PUT \ --url 'http://{baseurl}/rest/policies/latest/admin/repos/archive' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "permission": "ADMIN" }'
200Response
1 2 3 { "permission": "ADMIN" }
GET

Get policies latest admin repos delete

Retrieves the repository delete policy for the instance. The user must be authenticated to access this resource.

Request

This request has no parameters.

Responses

A response containing the repository delete policy for the instance

application/json

RestRepositoryPolicy
GET/policies/latest/admin/repos/delete
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/policies/latest/admin/repos/delete' \ --header 'Accept: application/json'
200Response
1 2 3 { "permission": "ADMIN" }
PUT

Put policies latest admin repos delete

Sets the repository delete policy for the instance.

The authenticated user must have SYS_ADMIN permission.

Request

Request bodyapplication/json

The request containing the details of the policy.

permission

string

Responses

A response containing the repository delete policy for the instance

application/json

RestRepositoryPolicy
PUT/policies/latest/admin/repos/delete
1 2 3 4 5 6 7 curl --request PUT \ --url 'http://{baseurl}/rest/policies/latest/admin/repos/delete' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "permission": "ADMIN" }'
200Response
1 2 3 { "permission": "ADMIN" }

Rate this page: