Skip to navigation

Update a user

Changes a user. Members you leave out are unchanged; an empty verificationRoles clears an app user’s verification roles.

status runs the same steps as the app: INACTIVE cancels the user’s card requests and cards and removes their sign-in, and ACTIVE brings an inactive user back, inviting an app user to sign in again. A role changes between app roles only. A company key cannot change the role, access or status of an OWNER or any higher role, and a platform key cannot change that of a PLATFORM_OWNER or any higher role. Only a platform key gives the OWNER role.

email changes only for an INACTIVE user who has never signed in; for any other user the request is refused with INVALID_STATE, and an email another live user of the same account holder has is refused with RESOURCE_ALREADY_EXISTS.

Access changes keep the person’s verification roles, ownership and identity details:

  • An app role given to a verification-only person invites them to sign in. They are PENDING until they first do.
  • role: null takes an app user’s or cardholder’s access away: their card requests and cards are canceled, their sign-in is removed, and they stay on the account holder as a verification-only person. They need at least one verification role, which the same request may set.

Sending verificationRoles, ownershipBps, dateOfBirth or address also needs the users:verify permission.

Authentication

AuthorizationBearer

Access token from POST /access-token. Valid for at most 30 minutes.

Path parameters

userIdstringRequiredformat: "^[A-Za-z0-9_-]+$"1-128 characters
The user's ID.

Headers

Account-HolderstringOptionalformat: "^[A-Za-z0-9_-]+$"1-128 characters

The account holder a platform API key acts on. Platform keys must send it on account holder operations. A company API key acts on its own account holder; it may omit the header or send its own account holder ID.

Idempotency-KeystringRequiredformat: "^(?:[!#-~][!-~]{0,254}|"[!#-\[\]-~]{1,255}")$"1-257 characters

Your unique key for this operation: 1 to 255 visible ASCII characters, ideally a new UUID v4 for each operation. A value in double quotes is accepted and the quotes are removed. Retrying with the same key and the same request returns the first response with Idempotent-Replayed: true; the same key with a different request is refused with IDEMPOTENCY_KEY_REUSED. A key can be used again 30 days after its operation completes.

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._:-]+$"1-128 characters

Your own correlation ID for this request. It is recorded with the request. The X-Request-Id response header is always generated by the server.

Request

This endpoint expects an object.
firstNamestringOptional1-100 characters
First name.
middleNamestringOptional1-100 characters
Middle name.
lastNamestringOptional1-100 characters
Last name.
emailstringOptionalformat: "email"<=254 characters

Email address. Changes only for an INACTIVE user who has never signed in.

phonestringOptionalformat: "^\+[1-9][0-9]{1,14}$"
E.164 phone number.
titleenumOptional
roleenum or nullOptional

An app role, which invites a verification-only person to sign in, or null, which keeps the person for verification only.

verificationRoleslist of enumsOptional
Replaces the person's verification roles. A person without an app role keeps at least one.
Allowed values:
ownershipBpsintegerOptional0-10000

An owner’s share in basis points. Only an OWNER has one. Some card issuers take ownership only as a whole percentage. Where an issuer the account holder has applied with does, or, before its first application, the issuer it applies with by default, the share must be a multiple of 100 (2500 is 25%), and any other share is refused with VALIDATION_FAILED pointing at ownershipBps.

dateOfBirthdateOptional

Date of birth, YYYY-MM-DD.

addressobjectOptional
statusenumOptional

INACTIVE removes the user: their cards and card requests are canceled and their sign-in is removed. ACTIVE restores an inactive user. Business account holders only.

Allowed values:

Response headers

X-Request-Idstringformat: "uuid"
Unique ID of this request. Quote it when you contact support.
RateLimitstringOptional

Remaining budget for each rate limit policy, for example "burst"; r=57; t=6 (requests remaining and seconds until the window resets).

RateLimit-PolicystringOptional

The rate limit policies applied to this request, for example "burst"; q=60; w=10 (requests allowed per window of seconds).

Idempotent-ReplayedenumOptional

Sent as true when this response repeats the first response to the same Idempotency-Key. A replay keeps the first response’s status and body, including the requestId of a problem; X-Request-Id is new.

Allowed values:

Response

The user after the change.
idstringformat: "^[A-Za-z0-9_-]+$"1-128 characters

A resource ID. Treat it as an opaque, case-sensitive string.

objectenum

Always user.

Allowed values:
livemodeboolean

true on a live platform in production, false on a Sandbox platform and outside production.

createdAtdatetime
When the user was created.
updatedAtdatetime
When the user last changed.
firstNamestring
First name.
lastNamestring
Last name.
emailstring
Email address.
accessenum

APP_USER signs in, CARDHOLDER holds cards without signing in, VERIFICATION_ONLY is named for verification only, INACTIVE has no access.

Allowed values:
statusenum

PENDING until an invited app user first signs in.

Allowed values:
middleNamestringOptional
Middle name.
phonestringOptional
E.164 phone number.
titleenumOptional
roleenumOptional

The app role. Absent for a verification-only person.

verificationRoleslist of enumsOptional
The person's verification roles.
Allowed values:
ownershipBpsintegerOptional0-10000

An owner’s share in basis points; 2500 is 25%.

addressobjectOptional

The user’s address. Present only for an API key with the users:verify permission, which a replay also checks; events never carry it.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error