/servicesCreate a service
Creates a one-click or custom service. Supply server_uuid, project_uuid, environment_name, and environment_uuid; use docker_compose_raw for the base64-encoded Compose content when creating a custom service. Set instant_deploy to start the service immediately after creation.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Configuration for a one-click or custom service. The schema marks server_uuid, project_uuid, environment_name, and environment_uuid as required.
A 400 is returned for an invalid token, and a 401 when authentication is missing. A 409 is returned when domain conflicts are detected; a 422 is returned when the request fails validation. The body requires server_uuid, project_uuid, environment_name, and environment_uuid; name must not exceed 255 characters, destination_uuid is needed when the server has multiple destinations, and setting redact_all_env_values_in_logs requires team admin permissions.