Skip to content

updateCircle

PATCH
/circles/{circleId}
curl --request PATCH \
--url http://localhost:8080/api/v1/circles/per_01j9x3k8m2q4r5s6t7v8w9y0z1 \
--header 'Content-Type: application/json' \
--cookie hs_session=<hs_session> \
--data '{ "name": "example", "icon": "example", "color": "terracotta", "visibility": "household" }'
circleId
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
Media typeapplication/json
object
name
string
>= 1 characters <= 40 characters
icon
string
color
string
Allowed values: terracotta honey sage dusk plum clay
visibility
string
Allowed values: household private

Updated.

Media typeapplication/json
object
id
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
name
required
string
icon
required
string
color
required
string
Allowed values: terracotta honey sage dusk plum clay
visibility
required
string
Allowed values: household private
preset
string | null
Allowed values: family friends creators
personCount
required
integer
people

Present on getCircle only.

Array<object>
object
id
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
displayName
required
string
relationLabel
string | null
kind
required
string
Allowed values: family friend creator other
closeness
required

1 = closest. Weights the feed and hearth picks.

integer
>= 1 <= 3
avatar
One of:
object
id
required
string
/^[a-z]{2,3}_[0-9a-hjkmnp-tv-z]{26}$/
url
required

Signed URL, valid 24 h.

string
thumbUrl
string
cardUrl
string
posterUrl
string
mime
required
string
width
integer
height
integer
durationMs
integer
blurhash
string
alt
string
inMyFeed
required
boolean
canEdit
required
boolean
sortOrder
required
integer
capturableAccounts

Accounts on platforms the extension can capture.

integer
capturableAccountLimit
integer
Allowed value: 30
lastUpdate
One of:
null

Examples

Exampleseed

Derived from fixtures/seed.json.

{
"canEdit": true,
"capturableAccountLimit": 30,
"capturableAccounts": 1,
"color": "sage",
"icon": "users-three",
"id": "cir_01j9ebw22bbvzap1dk44j2y9eh",
"inMyFeed": true,
"lastUpdate": null,
"name": "Friends",
"personCount": 2,
"preset": "friends",
"sortOrder": 1,
"visibility": "household"
}