Cost Thresholds

Remove a cost threshold

Ends the scope's threshold on a usage type now: the organization's (no team or user), a team's (teamId) or a user's own (userId). A user then falls under their team's threshold, a team under the organization's; with none left, the usage is unlimited.

Removing a threshold that is not set changes nothing and still answers 204.

Scope: policies:write, and teams:read when a team is named.

delete/v1/cost-thresholds

Request

  • Base URL
    https://api.telgea.com
  • Auth
    API key in header x-api-key

Query parameters

usageType'DATA' | 'VOICE' | 'SMS' | 'MMS' required

The usage type the threshold is on. VOICE is international calling: reaching it pauses international calls and SMS on the person's lines, where their market offers the pause. Other types answer 422 until the platform can enforce them.

Example:VOICE
teamIdstring uuid

UUID of the team the threshold is for. Omit with userId for the organization's own.

Example:2f6b0d3a-8c1e-4a7f-9b2d-1e3c4d5f6a70
userIdstring uuid

UUID of the user the threshold is for. Omit with teamId for the organization's own.

Example:9c1f2a6e-3b7d-4e0a-8f21-5d6c7b8a9e01

Headers

idempotency-keystring

A value unique to this request, of 1 to 255 printable ASCII characters — a UUID is the usual choice. Retry with the same key within 24 hours and you get the original response back, even if it was a failure, and nothing is done twice. Send a new key whenever you change the request. Keys are private to your API key and organisation.

Example:0b7e4f1c-6a2d-4c9e-8f35-d1a7b2c93e60

Response

The threshold is ended, or none was set.

Changes

No recorded changes to this operation across all 1 revision of this API.