Profiles work like this: Every user on universecloud has a root profile. There can me multiple sub profiles that belong to this root profile. They will be created via an oauth app with a specific clientId. (Registration/Login on your own platform) A Profile holds some data about the root or sub profile with some authentication details like groups, plans or metadata
Update the root profile or a sub profile
Query parameters
-
clientId of the sub profile you want to update
-
accountId of the sub profile you want to update
PUT
/profile
curl \
--request PUT 'https://api.universecloud.io/profile' \
--header "X-Api-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"avatar":"string","settings":{"themeColor":"blue"},"metadata":{"plan":"super-cool-plan"}}'
Request examples
{
"avatar": "string",
"settings": {
"themeColor": "blue"
},
"metadata": {
"plan": "super-cool-plan"
}
}
Response examples (200)
{
"id": "string",
"subject": "string",
"accountId": "string",
"clientId": "string",
"branch": "string",
"plans": [
{
"planName": "pro",
"since": "2023-06-21T12:34:56+00:00",
"until": "2023-06-21T12:34:56+00:00",
"metadata": {
"seats": 5
}
}
],
"avatar": "string",
"email": "user@tld.com",
"settings": {
"themeColor": "blue"
},
"metadata": {
"plan": "super-cool-plan"
},
"groups": [
"admin"
],
"createdAt": "2023-06-21T12:34:56+00:00",
"updatedAt": "2023-06-21T12:34:56+00:00"
}