Skip to content

Create a secure file

POST
/api/v4/projects/{id}/secure_files

Creates a secure file in a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project owned by the authenticated user

Media type multipart/form-data
object
name
required

The name of the file being uploaded. The filename must be unique within the project

string
nullable
file
required

The secure file being uploaded

string format: binary
nullable

Created

Media type application/json
object
id
integer format: int64
name
string
checksum
string
checksum_algorithm
string
created_at
string format: date-time
expires_at
string format: date-time
metadata
object
file_extension
string
Example
{
"id": 123,
"name": "upload-keystore.jks",
"checksum": "16630b189ab34b2e3504f4758e1054d2e478deda510b2b08cc0ef38d12e80aac",
"checksum_algorithm": "sha256",
"created_at": "2022-02-22T22:22:22.222Z",
"expires_at": "2023-09-21T14:55:59.000Z",
"metadata": {
"id": "75949910542696343243264405377658443914"
},
"file_extension": "jks"
}

400 Bad Request

Not Found