Use this API to manage secure files for a project.
List all secure files for a project
GET /api/v4/projects/{id}/secure_files
Lists all secure files for a specified project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
pageQuery | Integer | Current page number Default: 1Example: 1 |
per_Query | Integer | Number of items per page Default: 20Example: 20 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not Found | — |
Create a secure file
POST /api/v4/projects/{id}/secure_files
Creates a secure file in a specified project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
Request body (multipart/form-data)
| Property | Type | Description |
|---|---|---|
fileRequired | String (binary) | The secure file being uploaded |
nameRequired | String | The name of the file being uploaded. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | 400 Bad Request | — |
404 | Not Found | — |
Retrieve details of a secure file
GET /api/v4/projects/{id}/secure_files/{secure_file_id}
Retrieves details of a specified secure file in a project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
secure_Path, | Integer | The ID of a secure file |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | 404 Not found | — |
Delete a secure file
DELETE /api/v4/projects/{id}/secure_files/{secure_file_id}
Deletes a specified secure file from a project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
secure_Path, | Integer | The ID of a secure file |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Resource deleted | — |
400 | Bad Request | — |
404 | 404 Not found | — |
Download a secure file
GET /api/v4/projects/{id}/secure_files/{secure_file_id}/download
Downloads the contents of a specified secure file in a project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
secure_Path, | Integer | The ID of a secure file |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | String (binary) (application/) |
400 | Bad Request | — |
404 | 404 Not found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesCiSecureFile
| Property | Type | Description |
|---|---|---|
checksum | String | Example:16630b189ab34b2e3504 |
checksum_ | String | Example:sha256 |
created_ | String (date- | Example:2022- |
expires_ | String (date- | Example:2023- |
file_ | String | Example:jks |
id | Integer (int64) | Example:123 |
metadata | Object | Example:{"id": |
name | String | Example:upload- |