- API v1: Base endpoint
/ocs/v2.php/apps/spreed/api/v1: since Nextcloud 27
- Required capability:
avatar - Method:
POST - Endpoint:
/room/{token}/avatar - Data:
| field | type | Description |
|---|---|---|
file |
string | Blob of image in a multipart/form-data request. Only accept images with mimetype equal to PNG or JPEG and need to be squared image. |
- Response:
-
Status code:
200 OK400 Bad RequestWhen: is one-to-one, no image, file is too big, invalid mimetype or resource, isn't square, unknown error403 ForbiddenWhen the current user is not a moderator, owner or guest moderator404 Not FoundWhen the conversation could not be found for the participant
-
Data: See array definition in
Get user´s conversations
-
!!! note
To determine if the delete option should be presented to the user, it's recommended to check the isCustomAvatar property of the Get user´s conversations API.
-
Required capability:
avatar -
Method:
DELETE -
Endpoint:
/room/{token}/avatar -
Response:
-
Status code:
200 OK403 ForbiddenWhen the current user is not a moderator, owner or guest moderator404 Not FoundWhen the conversation could not be found for the participant
-
Data: See array definition in
Get user´s conversations
-
-
Required capability:
avatar -
Method:
GET -
Endpoint:
/room/{token}/avatar -
Response:
- Status code:
200 OK404 Not FoundWhen the conversation could not be found for the participant
- Body: the image file
- Status code:
-
Required capability:
avatar -
Method:
GET -
Endpoint:
/room/{token}/avatar/dark -
Response:
- Status code:
200 OK404 Not FoundWhen the conversation could not be found for the participant
- Body: the image file
- Status code: