Link Search Menu Expand Document

Updated Fri Mar 5th 2021, 12:17 UTC

Update Profile

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 '{json: "body"}' 

Response

Status

200

Response Type

User

Example
{
  "@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": {
    "notifications": {
      "email": true,
      "audio": true
    },
    "customSettings": {},
    "avatar": "textus.jpeg"
  },
  "memberships": "/users/wqyODPA/memberships"
}

© 2021 TextUs