GuideLab Docs

Set a user's role and capabilities

Applies Smileline's desired state at its authority version. Older versions are refused with 409 stale_authority; the same version is a no-op replay.

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

Applies Smileline's desired state at its authority version. Older versions are refused with 409 stale_authority; the same version is a no-op replay.

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/smileline/v1/practices/string/members/string" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "role": "admin",    "capabilities": {      "submitOrders": true,      "viewInvoices": true,      "payInvoices": true    },    "authorityVersion": 0  }'
{  "userRef": "string",  "authorityVersion": 0,  "status": "active"}
Empty
Empty
Empty
{  "error": "string",  "code": "string"}