Package ai.vectros.types
Class EntityRequest
java.lang.Object
ai.vectros.types.EntityRequest
-
Method Details
-
getExternalId
- Returns:
- Your own unique identifier for this entity, unique within its namespace. Used for idempotent create: if an entity with this
externalIdalready exists in the namespace, it is returned instead of creating a duplicate.
-
getName
- Returns:
- Human-readable name for the entity.
-
getStatus
- Returns:
- Lifecycle status of the entity.
ACTIVEentities can be used normally;SUSPENDEDentities are retained but blocked from new operations.
-
getPayload
- Returns:
- Free-form key-value attributes to store with the entity. On update, the supplied object replaces the stored payload in full (it is not key-merged); omit it to leave the stored payload unchanged.
-
getSchemaId
- Returns:
- Optional ID of a record schema (created via
POST /v1/schemas) that governs payload validation and lookup indexing for this entity, and must belong to your account.
-
getScopes
- Returns:
- The entity's parent ownership edges, each as
<namespace>:<value>(for exampleorg:6ba7b810-...). At most two parents, each in a DIFFERENT namespace from the entity's own. On update, providingscopesREPLACES the full set of parents; omit it to leave ownership unchanged. The entity's own reference (<its namespace>:<its id>) is accepted and ignored, so you can send back thescopesyou read from a GET unchanged; any OTHER value in its own namespace is rejected, because a parent edge always crosses namespaces — a value in this entity's own namespace names a peer, not a parent.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-