setPersonAvatar
# setPersonAvatar
PUT
/people/{personId}/avatar
const url = 'http://localhost:8080/api/v1/people/per_01j9x3k8m2q4r5s6t7v8w9y0z1/avatar';const options = { method: 'PUT', headers: {cookie: 'hs_session=<hs_session>', 'Content-Type': 'application/json'}, body: '{"source":{"accountId":"per_01j9x3k8m2q4r5s6t7v8w9y0z1"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8080/api/v1/people/per_01j9x3k8m2q4r5s6t7v8w9y0z1/avatar \ --header 'Content-Type: application/json' \ --cookie hs_session=<hs_session> \ --data '{ "source": { "accountId": "per_01j9x3k8m2q4r5s6t7v8w9y0z1" } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”personId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Updated.
Media typeapplication/json
object
id
required
string
displayName
required
string
relationLabel
string | null
kind
required
string
closeness
required
1 = closest. Weights the feed and hearth picks.
integer
avatar
accounts
required
Array
object
id
required
string
platform
required
string
handle
required
string
displayName
string | null
profileUrl
required
string format: uri
deepLinks
required
Client picks app link on mobile when installed, else web.
object
web
required
string format: uri
ios
string
android
string
copyValue
Value to copy when no link exists (e.g. WeChat ID).
string
hintKey
I18n key with instructions, e.g. “platformWechatOpenHint”.
string
personId
required
string
platformUserId
string | null
avatar
fetchTier
required
string
status
required
string
statusDetailKey
string | null
fetchIntervalS
integer | null
createdAt
required
string format: date-time
circleIds
required
Array<string>
notes
string | null
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Examples
Exampleseed
Derived from fixtures/seed.json.
{ "accounts": [ { "avatar": null, "createdAt": "2026-09-17T09:00:00.000Z", "deepLinks": { "android": "https://www.instagram.com/_u/lin.cooks/", "ios": "instagram://user?username=lin.cooks", "web": "https://www.instagram.com/lin.cooks/" }, "displayName": null, "fetchIntervalS": 10800, "fetchTier": "agent", "handle": "lin.cooks", "id": "acc_01j9te0skfktnnmw6zvew46azb", "lastSuccessAt": "2026-10-17T08:00:00.000Z", "nextFetchAt": null, "personId": "per_01j9f8r1agkh6g3jp30xcwnytc", "platform": "instagram", "platformUserId": null, "profileUrl": "https://www.instagram.com/lin.cooks/", "status": "ok", "statusDetailKey": null } ], "avatar": { "alt": "Bowl of tom kha with lime and galangal", "cardUrl": "/fixtures/media/tom-kha.jpg", "height": 240, "id": "med_01j9a1b2c3d4e5f6g7h8j9k005", "mime": "image/jpeg", "thumbUrl": "/fixtures/media/tom-kha.jpg", "url": "/fixtures/media/tom-kha.jpg", "width": 320 }, "circleIds": [ "cir_01j9kaptqa5dcqne4nmnrbp86d" ], "closeness": 2, "createdAt": "2026-09-17T09:00:00.000Z", "deletedAt": null, "displayName": "Lin", "id": "per_01j9f8r1agkh6g3jp30xcwnytc", "kind": "family", "lastVisitedAt": null, "latestMomentAt": "2026-10-17T06:00:00.000Z", "notes": null, "relationLabel": "Cousin", "snoozedUntil": null, "updatedAt": "2026-09-17T09:00:00.000Z"}