HomeGuidesAPI ReferenceChangelog
Terms of Use
API Reference

Tariff / User groups / Replace

Replace the full list of user groups the tariff is restricted to.

Pass { "userGroupIds": [...] } with the complete desired list. Sending [] removes all user groups. The response returns the list after the operation.

Every ID must belong to an existing user group of the tariff's operator, otherwise 422 is returned and nothing changes. A base tariff cannot have restrictions, so a non-empty list for a base tariff returns 422.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

Tariff ID.

Body Params
userGroupIds
array of integers
required

IDs of the user groups whose members the tariff applies to. This is the same data as restrictions.applyToUserGroupIds on the tariff.

userGroupIds*
Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json