updateAccount
# updateAccount
PATCH
/accounts/{accountId}
const url = 'http://localhost:8080/api/v1/accounts/per_01j9x3k8m2q4r5s6t7v8w9y0z1';const options = { method: 'PATCH', headers: {cookie: 'hs_session=<hs_session>', 'Content-Type': 'application/json'}, body: '{"personId":"per_01j9x3k8m2q4r5s6t7v8w9y0z1","paused":true,"fetchIntervalS":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:8080/api/v1/accounts/per_01j9x3k8m2q4r5s6t7v8w9y0z1 \ --header 'Content-Type: application/json' \ --cookie hs_session=<hs_session> \ --data '{ "personId": "per_01j9x3k8m2q4r5s6t7v8w9y0z1", "paused": true, "fetchIntervalS": 1 }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”accountId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
personId
string
paused
boolean
fetchIntervalS
integer | null
Responses
Section titled “Responses”Updated.
Media typeapplication/json
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
Examples
Exampleseed
Derived from fixtures/seed.json.
{ "avatar": null, "createdAt": "2026-09-17T09:00:00.000Z", "deepLinks": { "android": "https://x.com/somsak_runs", "ios": "https://x.com/somsak_runs", "web": "https://x.com/somsak_runs" }, "displayName": null, "fetchIntervalS": 10800, "fetchTier": "agent", "handle": "somsak_runs", "id": "acc_01j9dfpvstm7aq628gwwc9xkq3", "lastSuccessAt": null, "nextFetchAt": null, "personId": "per_01j9rwtm99tsb5zjfh16k89915", "platform": "x", "platformUserId": null, "profileUrl": "https://x.com/somsak_runs", "status": "pending", "statusDetailKey": null}