SitesClient
Methods
Section titled “Methods”get(projectId, siteId): Promise<Site>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
Returns
Section titled “Returns”Promise<Site>
GET /v1/projects/:projectId/sites/:siteId
list()
Section titled “list()”list(projectId, filter?): Promise<SiteCollectionPage>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
filter? |
{ cursor?: string; includeUnregistered?: boolean; limit?: number; } |
filter.cursor? |
string |
filter.includeUnregistered? |
boolean |
filter.limit? |
number |
Returns
Section titled “Returns”Promise<SiteCollectionPage>
GET /v1/projects/:projectId/sites
newEnrollmentCode()
Section titled “newEnrollmentCode()”newEnrollmentCode( projectId, siteId, options?): Promise<SiteEnrollmentCode>;A new one-time code: the site's next key replaces every key it has, and its live sessions end.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<SiteEnrollmentCode>
POST /v1/projects/:projectId/sites/:siteId/enrollment-codes
pause()
Section titled “pause()”pause( projectId, siteId, options?): Promise<Site>;Stops the site's sign-ins, and ends its live sessions.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<Site>
POST /v1/projects/:projectId/sites/:siteId/pause
register()
Section titled “register()”register( projectId, body, options?): Promise<RegisterSiteResult>;The site, and its one-time enrollment code: give the code to the site, which posts it with its public key.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
body |
RegisterSiteBody |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<RegisterSiteResult>
POST /v1/projects/:projectId/sites
restorePerson()
Section titled “restorePerson()”restorePerson( projectId, siteId, userId, options?): Promise<SitePersonRestoreResult>;Let one of the site's people removed in Kindgi back in, while the site still knows them: the same person, with their history. Their grants come back the next time the site signs them in. Someone the site said left stays gone: if they come back, it signs them in as a new person.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
userId |
string |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<SitePersonRestoreResult>
POST /v1/projects/:projectId/sites/:siteId/people/:userId/restore
resume()
Section titled “resume()”resume( projectId, siteId, options?): Promise<Site>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<Site>
POST /v1/projects/:projectId/sites/:siteId/resume
revokeKey()
Section titled “revokeKey()”revokeKey( projectId, siteId, kid, options?): Promise<Site>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
kid |
string |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<Site>
POST /v1/projects/:projectId/sites/:siteId/keys/:kid/revoke
unregister()
Section titled “unregister()”unregister( projectId, siteId, options?): Promise<Site>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<Site>
POST /v1/projects/:projectId/sites/:siteId/unregister
update()
Section titled “update()”update( projectId, siteId, body, options?): Promise<Site>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
projectId |
string |
siteId |
string |
body |
UpdateSiteBody |
options? |
Idempotent |
Returns
Section titled “Returns”Promise<Site>
PATCH /v1/projects/:projectId/sites/:siteId