INVALID_CHANGE_LEVEL — set-change-level supplied value is not a known ChangeLevel
cyoda-go version 0.7.1
errors.INVALID_CHANGE_LEVEL
Section titled “errors.INVALID_CHANGE_LEVEL”INVALID_CHANGE_LEVEL — POST /model/{name}/{version}/changeLevel/{changeLevel} was called with a value that is not one of the four accepted ChangeLevel enum members.
SYNOPSIS
Section titled “SYNOPSIS”HTTP: 400 Bad Request. Retryable: no.
DESCRIPTION
Section titled “DESCRIPTION”The changeLevel path segment must be exactly one of: ARRAY_LENGTH, ARRAY_ELEMENTS, TYPE, or STRUCTURAL. Comparison is case-sensitive. Any other value (including the empty string, lower-cased variants, or typos) yields this error.
The problem-detail body carries the following properties so callers can branch on the precondition without scraping the message string:
entityName— the model’s name from the URL path.entityVersion— the model’s integer version from the URL path.suppliedValue— the offendingchangeLevelstring as supplied by the caller.validValues— the canonical accepted values, in the hierarchy order documented inmodels(most-restrictive to most-permissive):ARRAY_LENGTH,ARRAY_ELEMENTS,TYPE,STRUCTURAL.
Not retryable: the request will keep failing until the caller sends a valid value. Re-issue the request with one of validValues.
SEE ALSO
Section titled “SEE ALSO”- errors
- errors.BAD_REQUEST
- models
See also
Section titled “See also”cyoda help errors— Every error response from the Cyoda REST API carries a structurederrorCodein thepropertiesobject. Multiple codes may share the same HTTP status. Programmatic handling keys onerrorCode, not HTTP status.cyoda help errors BAD_REQUEST— Fired when the server cannot parse or structurally process the incoming request. Common triggers include invalid JSON, missing required fields, unsupported format specifiers, or mutually exclusive parameters being set simultaneously.cyoda help models— A model is a named, versioned schema registered per tenant. Every entity in the system is an instance of exactly one model. Models are identified by(entityName, modelVersion). The model ID is a deterministic UUID v5 derived from that key:UUID.newSHA1(NameSpaceURL, "{entityName}.{modelVersion}").
Raw formats
Section titled “Raw formats”/help/errors/invalid_change_level.json— full descriptor (matchesGET /help/{topic}envelope)/help/errors/invalid_change_level.md— body only