Skip to main content
PATCH
/
users
/
v1
/
bo
/
audit
/
{userId}
Update a ad user
curl --request PATCH \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/users/v1/bo/audit/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --header 'x-session-token: <x-session-token>' \
  --data '
{
  "firstName": "John",
  "lastName": "Doe",
  "email": "test@mail.com",
  "phone": "0123456789",
  "lang": "fr"
}
'
{
  "data": {
    "id": 1,
    "key": "a13f2277-4009-458b-93c6-bc77f447281b",
    "firstName": "John",
    "lastName": "Doe",
    "email": "test@mail.com",
    "phone": "0123456789",
    "lang": "fr"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

content-type
string
required

Content type, must be "application/json".

Allowed value: "application/json"
x-session-token
string
required

Session token used for authenticating the request.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjM0NTY3ODkwIiwic2Vzc2lvbklkIjoiYWJjZGVmMTIzNDU2IiwiaWF0IjoxNjA1MDk3ODk5LCJleHAiOjE2MDUxODQyOTl9.4XRQ1iXDyvEj5LgPZHbmTmzOZs98M3YPOzgf3MhxjaI"

Path Parameters

userId
integer
required

Unique identifier of the site.

Required range: -9007199254740991 <= x <= 9007199254740991
Example:

1

Body

application/json

Details required to update a ad user

firstName
string

First name of the profile.

Maximum string length: 250
Example:

"John"

lastName
string

Last name of the profile.

Maximum string length: 250
Example:

"Doe"

email
string<email>

Email of the profile.

Maximum string length: 250
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Example:

"test@mail.com"

phone
string

Phone number of the profile.

Maximum string length: 20
Example:

"0123456789"

lang
enum<string>

Language of the profile.

Available options:
fr,
en,
de
Example:

"fr"

Response

200 - application/json

Ad user updated successfully

data
object
required