Set Asset

Sets an asset by name.

Requires manage-assets permission.


assetName can be one of these: [logo, background, favicon_ico, favicon, favicon_16, favicon_32, favicon_192, favicon_512, touchicon_180, touchicon_180_pre, tile_70, tile_144, tile_150, tile_310_square, tile_310_wide, safari_pinned ]

Upload a file

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     -F "asset=@mylogo.png" \
     -F "assetName=logo" \
     -F "refreshAllClients=true" \     

Example Result

    "success": true

Change Log

Last updated

Rocket.Chat versions receive support for six months after release.