Interface UserRequest._FinalStage
- All Known Implementing Classes:
UserRequest.Builder
- Enclosing class:
UserRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()The user's email address.emailVerifiedAttestation(Boolean emailVerifiedAttestation) emailVerifiedAttestation(Optional<Boolean> emailVerifiedAttestation) Your attestation that the invitee's email was verified by your authentication system before this call.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).inviteToken(String inviteToken) inviteToken(Optional<String> inviteToken) The raw invite token from the invitation email link.Arbitrary key-value attributes to store on the user, useful for carrying additional data from your own system.Optional ID of a record schema (created via POST /v1/schemas) that drives payload validation and lookup indexing.status(UserRequestStatus status) status(Optional<UserRequestStatus> status) The user's lifecycle status.type(UserRequestType type) type(Optional<UserRequestType> type) The kind of user.
-
Method Details
-
build
UserRequest build() -
additionalProperty
-
additionalProperties
-
email
The user's email address. Used for display and notifications only; it is not used for authentication to the Vectros API.
-
email
-
status
The user's lifecycle status.
ACTIVEusers can be used normally;SUSPENDEDusers are retained but blocked from new operations.PENDINGis a server-managed state for invitations awaiting acceptance — you cannot set it directly. (A pending user becomesACTIVEby sending status=ACTIVE together withinviteToken,externalSubject, andemailVerifiedAttestation=true.) You may set onlyACTIVEorSUSPENDEDdirectly. -
status
-
type
The kind of user.
HUMAN(the default) is a real person;SERVICEis a bot, agent, scheduled job, or other named integration with no specific person behind it. Service users may omitemail. The type is immutable after creation — to change it, create a new user. -
type
-
payload
Arbitrary key-value attributes to store on the user, useful for carrying additional data from your own system.
-
payload
-
schemaId
Optional ID of a record schema (created via POST /v1/schemas) that drives payload validation and lookup indexing. When set, the schema must belong to your account, the payload is validated against the schema's fields on save, and the schema's lookup fields become queryable via GET /v1/users (using
type,field, and a lookup mode). When omitted, the payload is free-form and no lookup rows are written. -
schemaId
-
inviteToken
The raw invite token from the invitation email link. Required to activate a pending invitation (moving the user from PENDING to ACTIVE); ignored otherwise. The token's signature is verified server-side.
-
inviteToken
-
externalSubject
The user's identifier in your own authentication system (for example, a Cognito sub or Auth0 user ID). Required to activate a pending invitation; ignored on subsequent updates. Treat it as immutable once the user is activated.
-
externalSubject
-
emailVerifiedAttestation
Your attestation that the invitee's email was verified by your authentication system before this call. Must be
trueto activate a pending invitation. Vectros cannot inspect your authentication system, so asserting this accurately is your responsibility. -
emailVerifiedAttestation
-