Create or update the Platform Consumption
Create or update the Platform Consumption for the authenticated user.
Query Parameters
applies_to string required
consumption_to_add int32
Default value: 1
Responses
- 200
- 401
- 404
Found
application/json
Schema
Example (from schema)
Schema
first string nullable required
The link to the first page.
items object[] required
last string nullable required
The link to the last page.
next string nullable required
The link to the next page or null
if there's no page.
prev string nullable required
The link to the previous page or null
if there's no page.
self string nullable required
The link to the current page.
{
"first": "string",
"items": [
{
"account_limits": 0,
"applies_to": "string",
"block": true,
"consumption": 0,
"id": 0,
"limits": 0,
"reference_id": 0,
"reference_type": "SUBSCRIPTION",
"remaining": 0,
"resets_in_seconds": 0,
"subscription_limits": 0
}
],
"last": "string",
"next": "string",
"prev": "string",
"self": "string"
}
Authentication Failure
Not Found
PUT /platform-limit/consumptions/me
Authorization
name: Authorizationtype: apiKeydescription: `Key {your key}`in: header
Request
Request
curl / cURL
curl -L -X PUT 'https://api.wordlift.io/platform-limit/consumptions/me' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
python / requests
curl -L -X PUT 'https://api.wordlift.io/platform-limit/consumptions/me' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
nodejs / axios
curl -L -X PUT 'https://api.wordlift.io/platform-limit/consumptions/me' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
php / cURL
curl -L -X PUT 'https://api.wordlift.io/platform-limit/consumptions/me' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'