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
Header | Value |
---|---|
Authorization | Bearer <jwt_token> |
Request Body
The request uses multipart/form-data
format with the following fields:
Field | Type | Required | Description |
---|---|---|---|
platform | string | ✅ | Name 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
Field | Type | Description |
---|---|---|
createPlatformResult.Created | string | The 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