Update the caller's own profile
PATCH
/api/v1/me
const url = 'https://api.pkgplease.com/api/v1/me';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"display_name":"example","avatar_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
display_name
string
avatar_url
Must be a valid http(s) URL when set.
string
Examplegenerated
{ "display_name": "example", "avatar_url": "example"}Responses
Section titled “Responses”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"}