Skip to the page

Change a service's branch or automatic deploys

PATCH/v1/organisations/{id}/environments/{envId}/resources/{rid}/source

Operation services.source · since 2026-11-05 · stable

Needs a session withwritescopeAnswers200 OK

Path parameters

idstring (uuid)required
The organisation id.
envIdstring (uuid)required
The environment id.
ridstringrequired
The service's id.

Body (JSON)

Fields not listed here are refused.

branchstringoptional
The branch to build.
dockerfilestringoptional
The Dockerfile's path.
contextstringoptional
The build context's path.
autoDeploybooleanoptional
Build and deploy every push to the branch.

Errors

Every error is { "error", "message", "detail"? } (Errors and references). Besides the codes any route can answer.

PATCH/v1/organisations/{id}/environments/{envId}/resources/{rid}/source
curl -X PATCH "https://api.rykloud.com/v1/organisations/$ORG_ID/environments/$ENV_ID/resources/$RESOURCE_ID/source" \
  -H "Authorization: Bearer $RYKLOUD_TOKEN"