Skip to main content
PUT
/
api
/
v1
/
config
/
analytics
Update analytics configuration Admin only
curl --request PUT \
  --url http://localhost:3000/api/v1/config/analytics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pricing": "<string>",
  "consumption": "<string>",
  "thresholds": "<string>",
  "unitConversions": "<string>",
  "ratios": "<string>",
  "fallbacks": "<string>"
}
'
{
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

JWT obtained from POST /api/v1/auth/login.

Body

application/json
pricing
string

pricing — see API source for exact type.

consumption
string

consumption — see API source for exact type.

thresholds
string

thresholds — see API source for exact type.

unitConversions
string

unitConversions — see API source for exact type.

ratios
string

ratios — see API source for exact type.

fallbacks
string

fallbacks — see API source for exact type.

Response

OK

message
string
data
object