Update

PUT /profile

Update an existing User Profile

Examples

Updating the user

Request

PUT /profile

Body

{
  "name": "Chuck Norris",
  "email": "chuck@textus.example",
  "settings": {
    "avatar": "textus.jpeg",
    "notifications": {"email": true, "audio": true}
  }
}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X PUT /profile
    -d '{
  "name": "Chuck Norris",
  "email": "chuck@textus.example",
  "settings": {
    "avatar": "textus.jpeg",
    "notifications": {"email": true, "audio": true}
  }
}'

Response

Status

200

Response Type

User

Example Body

{
  "@type": "User",
  "@context": "/contexts/User.jsonld",
  "id": "/users/wqyODPA",
  "name": "Chuck Norris",
  "firstName": "Chuck",
  "lastName": "Norris",
  "email": "chuck@textus.example",
  "avatar": "textus.jpeg",
  "automatedActor": false,
  "hasPassword": false,
  "discarded": false,
  "settings": {
    "customSettings": {},
    "notifications": {
      "email": true,
      "audio": true
    },
    "avatar": "textus.jpeg"
  },
  "memberships": "/users/wqyODPA/memberships"
}

© 2024 TextUs