Skip to main content

Create Platform

Create a new deployment platform for organizing application releases.

warning

After creating the first platform, the platform field becomes required for all subsequent operations.

Endpoint

POST /platform/create

Authentication

HeaderValue
AuthorizationBearer <jwt_token>

Request Body

The request uses multipart/form-data format with the following fields:

FieldTypeRequiredDescription
platformstringName of the platform (e.g., linux, darwin, windows)

Example Request

curl --location 'http://localhost:9000/platform/create' \
--header 'Authorization: Bearer <jwt_token>' \
--form 'data="{\"platform\":\"linux\"}"'

Response

Success Response (200 OK)

{
"createPlatformResult.Created": "641459ffb8360d74164e7e3c"
}

Response Fields

FieldTypeDescription
createPlatformResult.CreatedstringThe unique identifier (ID) of the created platform

Notes

  • Platforms help organize different operating system targets
  • Once created, platforms can be used when uploading application versions