HomeGuidesAPI ReferenceChangelog
Terms of Use
API Reference

Tariff / User groups / Attach

Add one or more user groups to the list the tariff is restricted to.

Already assigned entries are ignored and the other assignments stay unchanged. At least one ID is required. 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 adding to 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