dambel

دمبل

shevron
ورود | ثبت نام

API Docs / chats / update



PUT /api/v1/chats/{chat-id}

Updates a specific chat, such as modifying its users.


Permissions

PermissionDescription
chats.updateUpdate your own chat

URL Parameters

NameTypeRequiredDescriptionExample
chat-idintYesID of the chat to update123

Request Body Parameters

NameTypeRequiredDescriptionExample
usersarrayNoArray of user IDs[1, 2, 3]

Request Example

{
  "users": [1, 2, 3]
}

Response

200 OK

Returns the updated chat resource.

Example

{
  "chat": { /* chat resource */ }
}

For a full schema, see Chat Resource.


Error Responses

StatusDescriptionReference
422Validation errorValidation error
401UnauthorizedAuthentication error
403Forbidden (no permission)Permission error
footer wave
logo

دمبل، دنیای هوشمند ورزش و تغذیه

LinkedinInstagramXYoutube