Skip to main content
PATCH
/
v0
/
users
/
{id}
Update
curl --request PATCH \
  --url https://api.paygentic.io/v0/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "zipCode": "<string>"
  },
  "dateOfBirth": "2023-12-25",
  "firstName": "<string>",
  "lastName": "<string>",
  "phone": "<string>",
  "type": "COMPANY"
}'
{
  "id": "usr_c1d2e3f4g5h6i7j8",
  "object": "user",
  "address": {
    "city": "New York",
    "country": "US",
    "line1": "321 Corporate Drive",
    "state": "NY",
    "zipCode": "10001"
  },
  "createdAt": "2024-01-05T08:00:00Z",
  "dateOfBirth": null,
  "email": "alice@techcorp.com",
  "firstName": "Alice",
  "lastName": "Williams",
  "organizations": [
    {
      "id": "org_k9l0m1n2o3p4q5r6",
      "state": "active"
    }
  ],
  "oryId": "ory_user_ghi789",
  "phone": "+1-555-987-6543",
  "type": "COMPANY",
  "updatedAt": "2024-03-15T11:30:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

Unique identifier for a user

Body

application/json
address
object

The address of the user.

dateOfBirth
string<date>

The date of birth of the user.

firstName
string

The first name of the user.

lastName
string

The last name of the user.

phone
string

The phone number of the user.

type
enum<string>

Type of entity the user represents.

Available options:
COMPANY,
INDIVIDUAL

Response

User updated successfully

id
string
required

Unique identifier for a user

object
enum<string>
default:user
required
Available options:
user
createdAt
string<date-time>
required
email
string<email>
required
organizations
object[]
required
oryId
string
required
updatedAt
string<date-time>
required
address
object
dateOfBirth
string<date>
firstName
string
lastName
string
phone
string
type
enum<string>
Available options:
COMPANY,
INDIVIDUAL