This article outlines the parameters deprecated in Rocket.Chat’s REST API endpoints and Realtime API methods. Some of these parameters have already been removed, while others are scheduled for removal in upcoming releases. To ensure continued functionality, adopt the recommended alternatives specified for each affected parameter.
REST API
The table below shows the deprecated parameters in our REST API endpoints:
API parameter removals in v9.0.0: The following parameters have been removed from their API endpoints:
Name | Parameter affected | Description | Deprecated since | Removed in version |
|---|---|---|---|---|
livechat/department.autocomplete and livechat/visitors.autocomplete |
| The field is no longer accepted. | 8.8.0 | 9.0.0 |
users.info, users.create, and users.update |
| Renamed to | - | 9.0.0 |
| The | 5.0.0 | 9.0.0 | |
| Removed. Scripts are stored and run as written, without Babel. | - | 9.0.0 | |
All endpoints that accepted them |
| Removed with the | 5.0.0 | 9.0.0 |
API parameter removals: The following parameters have been permanently removed from their respective API endpoints in v8.0.0:
Name | Parameter affected | Description | Deprecated since | Removed in version |
|---|---|---|---|---|
| The endpoint no longer accepts | 6.11.0 | 8.0.0 | |
| This parameter will no longer be accepted (use clientId or _id instead). | 6.0.0 | 8.0.0 | |
| The role parameter will still be used, but its value must now always be the role ID. Querying with the role name as value is deprecated. | 4.6.0 | 8.0.0 | |
| This parameter will no longer be accepted. Use | 4.6.0 | 8.0.0 | |
| This parameter will no longer be accepted. Use | 4.6.0 | 8.0.0 |
Query and fields query parameters
The query and fields parameters, deprecated since version 5.0.0 and disabled by default since 7.0.0, were removed in version 9.0.0, together with the ALLOW_UNSAFE_QUERY_AND_FIELDS_API_PARAMS environment variable. Use the filter parameters of each endpoint instead.
The following endpoints were among those affected:
Endpoint |
|
|
|---|---|---|
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
x | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | x | |
x | ✓ | |
x | ✓ | |
x | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | x | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | ✓ | |
✓ | x | |
✓ | ✓ | |
x | ✓ | |
✓ | ✓ | |
✓ | x |