POST
/services/{uuid}/moveMove a service to another environment
Moves a service to a different project or environment. Provide the target environment_uuid in the request body. The move is organizational and does not affect running containers; shared environment variables from the new environment are applied on the next deployment.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
uuidstringrequired
The UUID of the service to move.
The target environment for the service move.
environment_uuidstringrequired
UUID of the target environment.
200Returns the moved service's UUID, the target environment UUID, the project UUID, and a confirmation message.
environment_uuidstringoptional
messagestringoptional
project_uuidstringoptional
uuidstringoptional
400Returned when the token is invalid.
messagestringoptional
401Returned when the request is unauthenticated.
messagestringoptional
404Returned when the service or target resource is not found.
messagestringoptional
422Returned when the request fails validation.
errorsobjectoptional
messagestringoptional
Error handling
A 400 indicates an invalid token, and a 401 indicates an unauthenticated request. A 404 indicates a resource was not found; the uuid path parameter must identify an existing service. A 422 indicates validation errors; environment_uuid is required and must identify the target environment.