Skip to content

Service ​

Type: object additionalProperties: false

FieldRequiredTypeDescription and constraints
codeYesstringpattern: "^[a-z][a-z0-9_-]{0,63}$"
nameYesstring
descriptionYesstring
env_fromYesarray<string>Names of worker environment variables included in this service; never values.

JSON Schema ​

json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "code",
    "name",
    "description",
    "env_from"
  ],
  "properties": {
    "code": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_-]{0,63}$"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "env_from": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Names of worker environment variables included in this service; never values."
    }
  }
}

All schemas · HTTP API