ServiceEnvironment Not Found

serviceenvironment-not-found · 404

The service and the environment both exist, but the service doesn't run in that environment.

resourceId repeats what the API looked up: <service>/<environment>, or a single id. For a custom domain, it is the service's id alone.

Besides the members every error carries, this type adds resourceType and resourceId.

Common causes

  • The call deploys or changes the service in an environment where nothing of it runs.

How to fix the call

  • Read resourceId and compare it with the value you meant to send.
  • Name an environment the service runs in.
  • Don't retry unchanged: the same call answers the same 404 for as long as nothing changes.

Example response

json
{
  "type": "serviceenvironment-not-found",
  "title": "ServiceEnvironment Not Found",
  "detail": "ServiceEnvironment with ID '0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402' was not found",
  "resourceType": "ServiceEnvironment",
  "resourceId": "0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
  "requestId": "req-1785231000000-4f7b2c9ae",
  "timestamp": "2026-07-28T09:30:00.000Z",
  "path": "/v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/deployments?environmentId=0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
  "method": "POST",
  "instance": "POST /v1/services/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401/deployments?environmentId=0199e0a3-6f21-7c4a-9d18-2b7c5f3ad402",
  "status": 404,
  "docs": "https://ghaym.me/docs/errors/serviceenvironment-not-found"
}