Class UserResponse.Builder
- Enclosing class:
UserResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Whether this call created a new user.When the user was created, as an ISO-8601 UTC timestamp.The user's email address.externalId(String externalId) externalId(Optional<String> externalId) Your own identifier for this user, supplied when the user was created.externalSubject(String externalSubject) externalSubject(Optional<String> externalSubject) The user's identifier in your own authentication system (for example, a Cognito sub or Auth0 user ID).from(UserResponse other) The Vectros-assigned UUID for this user.Arbitrary key-value attributes stored on this user.The ID of the record schema that governs this user's payload validation and lookup indexing, or null if the user is not bound to a schema.schemaVersion(Integer schemaVersion) schemaVersion(Optional<Integer> schemaVersion) The version of the governing schema captured at the time this user was last written.status(UserResponseStatus status) status(Optional<UserResponseStatus> status) The user's lifecycle status.type(UserResponseType type) type(Optional<UserResponseType> type) The kind of user:HUMANfor a real person, orSERVICEfor a bot, agent, or automated integration.
-
Method Details
-
from
-
created
Whether this call created a new user. True when a new user was created; false when a user with the same
externalIdalready existed and was returned unchanged (idempotent create) or updated (when?upsert=true). Present only on the create response (POST /v1/users); absent on reads. The HTTP status mirrors it — 201 when created, 200 when an existing user was returned. -
created
-
id
The Vectros-assigned UUID for this user. Use this ID when referencing the user in token minting, record ownership, and filters.
-
id
-
externalId
Your own identifier for this user, supplied when the user was created.
-
externalId
-
email
The user's email address.
-
email
-
status
The user's lifecycle status.
ACTIVEandSUSPENDEDapply to normal users;PENDINGmarks an invited user who has not yet completed acceptance. -
status
-
type
The kind of user:
HUMANfor a real person, orSERVICEfor a bot, agent, or automated integration. Users created before this field existed are reported asHUMAN. -
type
-
payload
Arbitrary key-value attributes stored on this user.
-
payload
-
schemaId
The ID of the record schema that governs this user's payload validation and lookup indexing, or null if the user is not bound to a schema.
-
schemaId
-
schemaVersion
The version of the governing schema captured at the time this user was last written. The user keeps the version it was stamped with even after the schema is edited. Null when the user is not bound to a schema.
-
schemaVersion
-
createdAt
When the user was created, as an ISO-8601 UTC timestamp.
-
createdAt
-
externalSubject
The user's identifier in your own authentication system (for example, a Cognito sub or Auth0 user ID). This is set when an invitation is accepted via PUT /v1/users/{id} with status=ACTIVE, and is null until the user is activated.
-
externalSubject
-
build
-
additionalProperty
-
additionalProperties
-