GuideLab Docs

Remove a user

Removes the user's membership and keeps a tombstone at this authority version, so an older grant arriving later is refused.

DELETE
/smileline/v1/practices/{practiceRef}/members/{userRef}

Removes the user's membership and keeps a tombstone at this authority version, so an older grant arriving later is refused.

Authorization

smilelineBearer
AuthorizationBearer <token>

Smileline cell credential gl_sl_v1_<cell>_<secret>, one per Smileline cell; accepted only on /smileline/v1. A practice belongs to one cell and is not found from any other.

In: header

Path Parameters

practiceRef*string
Match^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/u
userRef*string
Match^[A-Za-z0-9_-]{1,64}$/u

Query Parameters

authorityVersion?|
Range0 <= value <= 9007199254740991

Response Body

application/json

application/json

curl -X DELETE "https://example.com/smileline/v1/practices/string/members/string"
{  "userRef": "string",  "authorityVersion": 0,  "status": "active"}
Empty
Empty
Empty
{  "error": "string",  "code": "string"}