PATCH
/
api
/
v1
/
profiles
/
{id}
Update a profile
curl --request PATCH \
  --url https://api.scholarlysoftware.com/api/v1/profiles/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "profile",
    "id": "<string>",
    "attributes": {
      "display_name": "<string>"
    }
  }
}'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "profile",
    "attributes": {
      "display_name": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "email": "jsmith@example.com",
      "created_at": "<string>",
      "updated_at": "<string>"
    },
    "relationships": {
      "institution": {
        "data": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "institution"
        }
      },
      "current_department": {
        "data": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "type": "department"
        }
      }
    }
  }
}

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

Profile UUID

Body

application/vnd.api+json

Response

200
application/vnd.api+json

profile updated

The response is of type object.