Body
Required
User to upsert into database. 'id' should NOT be in the payload. If the given 'bubbleId' already exists, the User will be updated. If a field is not present in the payload, it won't be updated. If you want to erase a field, you have to send a nullish value.
-
Bubble unique ID of the User. It can be null if the User was not created on Bubble at first.
-
Bubble unique ID of the Producer. It can be null if the Producer was not created on Bubble at first.
-
Database UUID of the Producer
-
Bubble unique ID of the Seller. It can be null if the Seller was not created on Bubble at first.
-
Database UUID of the Seller
-
Bubble unique ID of the Origin. It can be null if the Origin was not created on Bubble at first.
-
Database UUID of the Origin
POST
/users/{UserBubbleId}
curl \
--request POST 'https://b6l4r8pq7c.execute-api.eu-west-3.amazonaws.com/users/1708861331497x933611102973227500' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"bubbleId":"1708861331497x933611102973227500","isMailConfirmed":true,"language":"Français","lastConnexion":"2024-01-19T12:45:04.147Z","email":"algorep@algorep.ai","mobilePhone":"0609921214","producerBubbleId":"1708861331497x933611102973227500","producerId":"50658c1e-356e-4407-b120-d110552292d8","sellerBubbleId":"1708861331497x933611102973227500","sellerId":"50658c1e-356e-4407-b120-d110552292d8","originBubbleId":"1708861331497x933611102973227500","originId":"50658c1e-356e-4407-b120-d110552292d8","lastName":"Macron","firstName":"Emmanuel","status":"3 - ACTIF","role":"producerAdmin","userSignedUp":true,"avatar":"//15c83987ea78e6559235081e42c9135b.cdn.bubble.io/f1713427188226x475005611045967500/api","isAlgorep":false,"createdAt":"2024-01-19T12:45:04.147Z","updatedAt":"2024-01-19T12:45:04.147Z"}'
Request examples
{
"bubbleId": "1708861331497x933611102973227500",
"isMailConfirmed": true,
"language": "Français",
"lastConnexion": "2024-01-19T12:45:04.147Z",
"email": "algorep@algorep.ai",
"mobilePhone": "0609921214",
"producerBubbleId": "1708861331497x933611102973227500",
"producerId": "50658c1e-356e-4407-b120-d110552292d8",
"sellerBubbleId": "1708861331497x933611102973227500",
"sellerId": "50658c1e-356e-4407-b120-d110552292d8",
"originBubbleId": "1708861331497x933611102973227500",
"originId": "50658c1e-356e-4407-b120-d110552292d8",
"lastName": "Macron",
"firstName": "Emmanuel",
"status": "3 - ACTIF",
"role": "producerAdmin",
"userSignedUp": true,
"avatar": "//15c83987ea78e6559235081e42c9135b.cdn.bubble.io/f1713427188226x475005611045967500/api",
"isAlgorep": false,
"createdAt": "2024-01-19T12:45:04.147Z",
"updatedAt": "2024-01-19T12:45:04.147Z"
}
Response examples (200)
{
"id": "50658c1e-356e-4407-b120-d110552292d8",
"bubbleId": "1708861331497x933611102973227500",
"isMailConfirmed": true,
"language": "Français",
"lastConnexion": "2024-01-19T12:45:04.147Z",
"email": "algorep@algorep.ai",
"mobilePhone": "0609921214",
"producerBubbleId": "1708861331497x933611102973227500",
"producerId": "50658c1e-356e-4407-b120-d110552292d8",
"sellerBubbleId": "1708861331497x933611102973227500",
"sellerId": "50658c1e-356e-4407-b120-d110552292d8",
"originBubbleId": "1708861331497x933611102973227500",
"originId": "50658c1e-356e-4407-b120-d110552292d8",
"lastName": "Macron",
"firstName": "Emmanuel",
"status": "3 - ACTIF",
"role": "producerAdmin",
"userSignedUp": true,
"avatar": "//15c83987ea78e6559235081e42c9135b.cdn.bubble.io/f1713427188226x475005611045967500/api",
"isAlgorep": false,
"createdAt": "2024-01-19T12:45:04.147Z",
"updatedAt": "2024-01-19T12:45:04.147Z"
}
Response examples (400)
{
"error": "ALGOREP_001"
}
Response examples (500)
{
"error": "ALGOREP_001"
}