Update Service
Update a service’s configuration. Send only the fields you want to change. The database update and the provisioner update run in one transaction.
This does not roll the change out - trigger a deployment afterwards.
When patching a service whose type is job, always include "auto_deploy": false. Omitting it on a job typed service surfaces as a 500.
Authorizations
Your account API token, sent as Authorization: Bearer <api_token>. Owners and admins can read the token from the LocalOps console.
Path Parameters
The unique identifier of the environment
The unique identifier of the service
Body
Letters, spaces and hyphens
3 - 50x >= 01 <= x <= 655351 - 100Rejected for services whose type is job
Changing the source makes the matching source fields required in the same request
github, gitlab, docker_image, helm_chart Required if source: github is sent
100100Trimmed server side
100Docker build context directory, relative to the repository root. Git sources only. Surrounding whitespace is trimmed and a blank value is treated as unset.
100Trimmed server side
100Docker image source only
Required if source: docker_image is sent
100Required if source: docker_image is sent
100Required if source: helm_chart is sent
100Required if source: helm_chart is sent
100Full replacement of values.yaml
Set to false before deleting a protected service