Create arch
Create a deployment architecture for applications.
warning
After creating the first architecture, the arch field becomes required for all subsequent operations.
Endpoint
POST /arch/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 |
---|---|---|---|
arch | string | ✅ | Architecture of the application (e.g., amd64, arm64) |
Example Request
curl --location 'http://localhost:9000/arch/create' \
--header 'Authorization: Bearer <jwt_token>' \
--form 'data="{\"arch\":\"amd64\"}"'
Response
Success Response (200 OK)
{
"createArchResult.Created": "641459ffb8360d74164e7e3c"
}
Response Fields
Field | Type | Description |
---|---|---|
createArchResult.Created | string | The unique identifier (ID) of the created architecture |
Notes
- Once created, architectures can be used when uploading application artifacts