Palbase Messaging · API
/messaging/conversations/{conversation_id}Change a conversation
A group's title, description and picture and its timer (whom its edit policy lets), its policies (its admins); a direct conversation's timer and vanish mode (either of the two). Each change is told in the conversation, as a message of the platform's. Leaving vanish mode takes with it what was read in it.
Called by a signed-in user of your app, with their token and the publishable key.
Path
conversation_idstring (uuid) · requiredThe conversation.Request body
add_policy"all" | "admins" · optionalWho adds people (admins change it).descriptionstring · optionalA group's description; null clears it.edit_policy"all" | "admins" · optionalWho changes details and timer (admins change it).history_for_new_membersboolean · optionalWhether someone added reads what was said before them (admins change it).photostring · optionalWhere the app reads a group's picture; null clears it.send_policy"all" | "admins" · optionalWho writes: all or admins (admins change it).timer_secondsinteger · optionalHow long a new message lives; null: for good.titlestring · optionalA group's title.vanishboolean · optionalA direct conversation's vanish mode.visibility"open" | "closed" · optionalA group's: open (found in its space's open groups and joined by whom the project's hook lets; the group has a space — 400 space_required otherwise) or closed. Its admins' (or the project's server's); a person opening one is asked of the hook first (open_group): refused, 403 not_allowed. Opened, whoever joins reads what its history shows newcomers (history_for_new_members).curl -X PATCH "https://<your-ref>.palbase.studio/messaging/conversations/<conversation_id>" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"add_policy":"all","description":"string","edit_policy":"all","history_for_new_members":false,"photo":"string","send_policy":"all","timer_seconds":5,"title":"string","vanish":false,"visibility":"open"}'Responses
200The conversation
400A change the conversation does not take (`not_a_group`, `not_direct`, `space_required`, `invalid_<field>`)
401No key, a key of no project, a token not valid (the edge's answer), or no person's session (`user_required`)
403Only the group's admins change it (`admins_only`), or the reader is no longer in it (`not_a_member`), or the project's server made the conversation read-only (`read_only`), or the project's hook does not let them open it (`not_allowed`)
404No such conversation of yours (`conversation_not_found`)
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 UpdateConversation of messaging's contract.