PATCH
/
users
/
{id}
Update user
curl --request PATCH \
  --url https://api.paygentic.io/v0/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "firstName": "<string>",
  "lastName": "<string>",
  "phone": "<string>",
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "zipCode": "<string>"
  },
  "type": "COMPANY",
  "dateOfBirth": "2023-12-25"
}'
{
  "id": "<string>",
  "object": "user",
  "firstName": "<string>",
  "lastName": "<string>",
  "email": "jsmith@example.com",
  "oryId": "<string>",
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "zipCode": "<string>"
  },
  "phone": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "organization": "<string>",
  "type": "COMPANY",
  "dateOfBirth": "2023-12-25"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

Unique identifier for a user

Body

application/json
firstName
string

The first name of the user.

lastName
string

The last name of the user.

phone
string

The phone number of the user.

address
object

The address of the user.

type
enum<string>

Type of entity the user represents.

Available options:
COMPANY,
INDIVIDUAL
dateOfBirth
string<date>

The date of birth of the user.

Response

User updated successfully

id
string
required

Unique identifier for a user

object
enum<string>
default:user
required
Available options:
user
email
string<email>
required
oryId
string
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
organization
string
required

Unique identifier for an organization

firstName
string
lastName
string
address
object
phone
string
type
enum<string>
Available options:
COMPANY,
INDIVIDUAL
dateOfBirth
string<date>