Measurement not found

Moses SkodaEngineer1 min read

The API answers 404 Not Found with this problem. Its type is https://lingo.dev/docs/api/errors/measurement-not-found. See Errors and status codes for the shape every error shares.

Cannot find measurement <id> in this organization. It does not exist, belongs to another organization, or (for a backfill) has no enabled event condition. Check the id against this organization's measurements and enable one of its conditions before a backfill.

Fields#

Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.

FieldType
idstring

Example#

json
{
  "detail": "Cannot find measurement <id> in this organization. It does not exist, belongs to another organization, or (for a backfill) has no enabled event condition. Check the id against this organization's measurements and enable one of its conditions before a backfill.",
  "id": "<id>",
  "type": "https://lingo.dev/docs/api/errors/measurement-not-found",
  "status": 404,
  "title": "Measurement not found"
}

Returned by#

  • DELETE /v2/organizations/{orgId}/measurements/{measurementId}
  • DELETE /v2/organizations/{orgId}/measurements/{measurementId}/conditions/{eventType}
  • GET /v2/organizations/{orgId}/measurements/{measurementId}
  • GET /v2/organizations/{orgId}/measurements/{measurementId}/event-counts
  • PATCH /v2/organizations/{orgId}/measurements/{measurementId}
  • POST /v2/organizations/{orgId}/measurements/{measurementId}/backfill
  • PUT /v2/organizations/{orgId}/measurements/{measurementId}/conditions/{eventType}
  • PUT /v2/organizations/{orgId}/measurements/{measurementId}/enabled
  • PUT /v2/organizations/{orgId}/measurements/{measurementId}/settings