HomeGuidesAPI ReferenceChangelog
Terms of Use
API Reference

Tariff / Partners / Replace

Replace the full list of partners the tariff is restricted to.

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

Every ID must belong to an existing partner 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
partnerIds
array of integers
required

IDs of the partners whose users the tariff applies to. This is the same data as restrictions.applyToUsersOfPartners on the tariff.

partnerIds*
Responses

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