Member Management
Update Member Role
API Documentation
Auth API
- OAuth
- Magic Link
- Password
- POSTUser Authenticate
- GETGet User Information
- POSTRefresh Token
Management API
- User
- Workspace
- Workspace Management
- Member Management
- Invitation Management
Member Management
Update Member Role
Updates the role of a user
PUT
/
workspaces
/
{workspace_id}
/
users
/
{user_id}
/
role
curl --request PUT \
--url https://api.furo.one/workspaces/{workspace_id}/users/{user_id}/role \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"workspace_id": "<string>",
"user_id": "<string>"
}'
{
"uid": "64fa9ec3-44cd-40da-9133-bdd1d757bb6b",
"project_id": "dccc65c902eb168805b316e4a1c42e62",
"email": "edward@hopae.io",
"profile_url": "https://lh3.googleusercontent.com/a/AGNmyxaK9hX4NYf0PVEW2CigJzkrUzeD3jPY8b87YqEc=s96-c",
"preferred_username": "Edward Choi",
"thumbnail_url": "",
"name": {
"given_name": "Edward",
"family_name": "Choi",
"formatted": "Edward Choi"
},
"display_name": "Edward Choi",
"about_me": "",
"current_location": "",
"social": "google",
"sign_in_methods": {
"google": {
"enabled": true
}
},
"verified": {
"email": true
},
"address": "0xFE3ca2cB4c8d0A182E1668c04150EB4320Bade62",
"wallet": {
"address": "0xFE3ca2cB4c8d0A182E1668c04150EB4320Bade62",
"type": "furo"
},
"created_at": "2023-03-14T02:15:09.356Z",
"modified_at": "2023-03-22T03:18:37.716Z",
"photos": [],
"urls": [],
"last_sign_in_at": "2023-03-22T03:18:37.716Z",
"agreed_terms": {
"sign_up": "2023-03-14T02:15:13.222Z",
"tos": "2023-03-14T02:15:13.222Z"
},
"role": "admin"
}
Path
This is the ID of the workspace.
This is the ID of the user.
{
"uid": "64fa9ec3-44cd-40da-9133-bdd1d757bb6b",
"project_id": "dccc65c902eb168805b316e4a1c42e62",
"email": "edward@hopae.io",
"profile_url": "https://lh3.googleusercontent.com/a/AGNmyxaK9hX4NYf0PVEW2CigJzkrUzeD3jPY8b87YqEc=s96-c",
"preferred_username": "Edward Choi",
"thumbnail_url": "",
"name": {
"given_name": "Edward",
"family_name": "Choi",
"formatted": "Edward Choi"
},
"display_name": "Edward Choi",
"about_me": "",
"current_location": "",
"social": "google",
"sign_in_methods": {
"google": {
"enabled": true
}
},
"verified": {
"email": true
},
"address": "0xFE3ca2cB4c8d0A182E1668c04150EB4320Bade62",
"wallet": {
"address": "0xFE3ca2cB4c8d0A182E1668c04150EB4320Bade62",
"type": "furo"
},
"created_at": "2023-03-14T02:15:09.356Z",
"modified_at": "2023-03-22T03:18:37.716Z",
"photos": [],
"urls": [],
"last_sign_in_at": "2023-03-22T03:18:37.716Z",
"agreed_terms": {
"sign_up": "2023-03-14T02:15:13.222Z",
"tos": "2023-03-14T02:15:13.222Z"
},
"role": "admin"
}
Was this page helpful?
curl --request PUT \
--url https://api.furo.one/workspaces/{workspace_id}/users/{user_id}/role \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"workspace_id": "<string>",
"user_id": "<string>"
}'
{
"uid": "64fa9ec3-44cd-40da-9133-bdd1d757bb6b",
"project_id": "dccc65c902eb168805b316e4a1c42e62",
"email": "edward@hopae.io",
"profile_url": "https://lh3.googleusercontent.com/a/AGNmyxaK9hX4NYf0PVEW2CigJzkrUzeD3jPY8b87YqEc=s96-c",
"preferred_username": "Edward Choi",
"thumbnail_url": "",
"name": {
"given_name": "Edward",
"family_name": "Choi",
"formatted": "Edward Choi"
},
"display_name": "Edward Choi",
"about_me": "",
"current_location": "",
"social": "google",
"sign_in_methods": {
"google": {
"enabled": true
}
},
"verified": {
"email": true
},
"address": "0xFE3ca2cB4c8d0A182E1668c04150EB4320Bade62",
"wallet": {
"address": "0xFE3ca2cB4c8d0A182E1668c04150EB4320Bade62",
"type": "furo"
},
"created_at": "2023-03-14T02:15:09.356Z",
"modified_at": "2023-03-22T03:18:37.716Z",
"photos": [],
"urls": [],
"last_sign_in_at": "2023-03-22T03:18:37.716Z",
"agreed_terms": {
"sign_up": "2023-03-14T02:15:13.222Z",
"tos": "2023-03-14T02:15:13.222Z"
},
"role": "admin"
}