Update entity class

PATCH/projects/{projectId}/entityClasses/{entityClassId}

Base URL: https://api.tinkermode.com

Update specified entity class. The TSDBv2 schemas of the metrics definitions that the update removes stay in TSDBv2. Delete them with DELETE /projects/{projectId}/tsdb/v2/schemas/{schemaName}.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain the API key of a user or service account who has the permission to update all Entity Classes of a project, or a Project API Key with admin permission.

Path parameters

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
entityClassIdstringYesEntity Class ID (unique within project)

Responses

204 Successfully updated entity class.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of invalid data or denied permission. The reason is TSDBV2_NOT_ENABLED when a metrics definition stores its metrics in TSDBv2 and the project has not enabled TSDBv2.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

404 The requested entityClass does not exist or is not accessible.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

409 The reason is TSDBV2_SCHEMA_IN_USE when a TSDBv2 schema of a metrics definition is used by another entity class, and ENTITY_CLASS_BEING_CREATED while a create is still writing the TSDBv2 schemas of the entity class.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred. The reason is PROJECT_MISCONFIGURED when the project has enabled TSDBv2 but has no TSDBv2 namespace.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable. The reason is TEMPORARILY_UNAVAILABLE when the time series database cannot be reached for a short time. Retry after the number of seconds in Retry-After when the response has it.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.