curl --request POST https://api.airbotics.io/compose-files \
--header 'content-type: application/json' \
--header 'air-api-key: <token>' \
--data '{
    "id": "robot-app-v1", 
    "name": "Robot application",
    "content": {
      "services": {
        "hello": {
          "image": "hello-world"
        }
      }
    }
}'
{
    "id": "robot-app-v1"
}

Body parameters

id
string
required

A user-provided ID for the compose file. This must be unique within your tenant. It must be greater than 3 character and less than 30, must start with a lowercase or uppercase letter and after that can contain lowercase letters, uppercase letters, numbers, hyphens or underscores with no spaces nor special characters.

name
string

An optional display name for the compose file.

content
object
required

A valid Docker compose file in JSON format.