secure_files

Create a secure file

Creates a secure file in a specified project.

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

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

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

Request body

namestring required

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

filestring binary required

The secure file being uploaded

Response

Create a secure file

idinteger required
namestring required
checksumstring required
checksum_algorithmstring required
created_atstring date-time required
expires_atstring date-time required
metadataobject required
file_extensionstring required

Example response

{
  "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"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.