Create a release file

Creates a new release file.

POST/v3/release-files
JWT
release:write

Request Body Schema

PropertyTypeDescriptionConstraints
name*stringName of the file.min: 1, max: 256
url*stringDownload URL of the file.min: 1, max: 2048, format: uri
size*integerSize of the file.min: 0, max: 9223372036854776000, format: int64
checksumstringMD5 checksum of the file.min: 0, max: 256
secured*booleanSecured release files require license key for download.
releaseId*stringUnique identifier for the release.min: 1, max: 256

Request Example

{
  "name": "string",
  "url": "http://example.com",
  "size": 9223372036854776000,
  "checksum": "string",
  "secured": true,
  "releaseId": "string"
}
Triggers webhook: releaseFile.created
POST <your-webhook-url>
{
  "event": "releaseFile.created",
  "data": {
    "id": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "url": "string",
    "size": 0,
    "downloads": 0,
    "extension": "string",
    "checksum": "string",
    "secured": true,
    "published": true,
    "releaseId": "string",
    "releaseName": "string"
  },
  "triggeredAt": "string"
}

Responses

201 Created
{
  "id": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "name": "string",
  "channel": "string",
  "version": "string",
  "platforms": [
    "string"
  ],
  "notes": "string",
  "totalFiles": 0,
  "publishedAt": "2019-08-24T14:15:22Z",
  "files": [
    {
      "id": "string",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "name": "string",
      "url": "string",
      "size": 0,
      "downloads": 0,
      "extension": "string",
      "checksum": "string",
      "secured": true,
      "published": true,
      "releaseId": "string",
      "releaseName": "string"
    }
  ],
  "published": true,
  "private": true,
  "archived": true,
  "productId": "string",
  "tenantId": "string"
}