Skip to main content
PATCH
/
api
/
v1
/
users
/
{id}
Update a user
curl --request PATCH \
  --url https://api.scholarlysoftware.com/api/v1/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "user",
    "attributes": {
      "display_name": "<string>",
      "emails": [
        "[email protected]",
        "[email protected]"
      ]
    },
    "relationships": {}
  }
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "user",
    "attributes": {
      "display_name": "<string>",
      "emails": [
        "[email protected]",
        "[email protected]"
      ]
    },
    "relationships": {
      "profile": {
        "links": {
          "related": "<string>"
        },
        "meta": {},
        "data": {
          "type": "profile",
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Headers

Authorization
string
required

Bearer token

Path Parameters

id
string
required

User UUID

Body

application/vnd.api+json
data
object
required

Response

user updated

data
object
required