Palbase Messaging · API
/messaging/admin/profiles/{user_id}A person's name and picture
The project's server names a person and gives their picture, as its own records say. A person whose account was deleted is not given one again (409 user_deleted): a sync racing the deletion does not bring them back.
Called by your server, with the project's secret key.
Path
user_idstring · requiredThe person.Request body
imagestring · optionalWhere the app reads the picture.namestring · optionalA name (1 to 100 characters).curl -X PUT "https://<your-ref>.palbase.studio/messaging/admin/profiles/<user_id>" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"image":"string","name":"string"}'Responses
200Their profile
400A field out of bounds
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
403Not the project's secret key (`secret_key_required`)
409The person's account was deleted (`user_deleted`)
413The request body is too large (`request_too_large`)
429Over the project's request limit; Retry-After says when to try again
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation AdminPutProfile of messaging's contract.