Skip to content

Update the caller's own profile

PATCH
/api/v1/me
curl --request PATCH \
--url https://api.pkgplease.com/api/v1/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "display_name": "example", "avatar_url": "example" }'

Updates only the fields present in the request body. Writes a user.profile_updated api_event via recordEvent whose payload lists only the names of the fields that changed, never their values.

Media typeapplication/json
object
display_name
string
nullable <= 100 characters
avatar_url

Must be a valid http(s) URL when set.

string
nullable
Examplegenerated
{
"display_name": "example",
"avatar_url": "example"
}

Updated profile (same shape as GET /api/v1/me)

Media typeapplication/json
object
Examplegenerated
{}

Display_name over 100 characters

Media typeapplication/json
object
error
required
string
Examplegenerated
{
"error": "example"
}