Usage batch
Endpoint to sync usage.
Args: usage: Dictionary of the usage. Maps workspace ID to a dictionary of features and their usage counts. background_tasks: FastAPI background tasks. auth_context: The authentication context. workspace_manager: The workspace manager.
Raises: IllegalOperationError: If the user is not internal.
Authorizations
OAuth2clientCredentialsRequired
Token URL: Refresh URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL: Refresh URL:
Body
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
post
/usage-batchPOST /usage-batch HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": 1
}
}No content
Last updated
Was this helpful?