Update user public data

PATCH
/api/users/[user_id]/public_data

Path Parameters

user_id
string
Required

User Id

Body Parameters

public_data
object
Required

User's Public Data

Authentication

X-API-KEY
header
Required

Api key needed to access the endpoints. X-API-KEY: Your_API_Key

Headers

content-type
string
  • application/json
accept
string
  • application/json
  • application/problem+json

Responses

200
OK
400
Bad Request
422
Unprocessable Entity
404
Not Found
401
Unauthorized
403
Forbidden

Request Example

Request
curl -X PATCH "https://<your-domain>/api/users/{user_id}/public_data" \
 -H "X-API-KEY: <your-api-key>" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 --data-raw '{
  "public_data" : {
    "color_preference" : {
      "dashboard" : "monochrome"
    },
    "send_emails" : true,
    "days_to_retain" : 1
  }
}'

Response Example

Response
200 OK
{
"public_data": {
"color_preference": { "dashboard": "monochrome"
}, "send_emails": true, "days_to_retain": 1
} }