Help Center/ CodeArts Artifact/ API Reference/ API/ Repository Details (Release Repos)/ Querying Auto Deleting Task Settings in a Project
Updated on 2025-09-08 GMT+08:00

Querying Auto Deleting Task Settings in a Project

Function

Query auto deleting task settings in a project.

Calling Method

For details, see Calling APIs.

URI

GET /devreposerver/v5/release/{project_id}/auto-deletion/settings

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

status

String

Definition:

Request status.

Value range:

success: The request is successful.

error: The request fails.

trace_id

String

Definition:

Request ID, which uniquely identifies the current request.

Value range:

A string of digits and hyphens (-).

result

Object

Definition:

The API response varies depending on the request.

Value range:

The value range varies according to the API.

Example Requests

https://localhost.com/devreposerver/v5/release/6666669620d743eca6a57881a0f006fd/auto-deletion/settings

Example Responses

Status code: 200

OK

{
  "status" : "success",
  "trace_id" : "76629-1718852080645-39",
  "result" : {
    "is_schedule_to_trash" : true,
    "is_schedule_to_delete" : true,
    "file_expire_time" : 90,
    "trash_file_expire_time" : 66,
    "project_id" : "6666669620d743eca6a57881a0f006fd",
    "cleanRule" : {
      "skipAutoTrash" : {
        "packageCategory" : "prod",
        "paths" : [ "/a/b/c", "/d/d" ]
      }
    }
  }
}

Status Codes

Status Code

Description

200

OK

Error Codes

See Error Codes.