English
cURL
curl --request POST \ --url https://api.example.com/cost/purge \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "project_id": "<string>", "query": { "$expr": { "$and": [ { "$literal": "<string>" } ] } } } '
{}
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Show child attributes
Logical AND. All conditions must evaluate to true.
Example: { "$and": [ {"$eq": [{"$getField": "op_name"}, {"$literal": "predict"}]}, {"$gt": [{"$getField": "summary.usage.tokens"}, {"$literal": 1000}]} ] }
{ "$and": [ {"$eq": [{"$getField": "op_name"}, {"$literal": "predict"}]}, {"$gt": [{"$getField": "summary.usage.tokens"}, {"$literal": 1000}]} ] }
Represents a constant value in the query language.
This can be any standard JSON-serializable value.
Example: {"$literal": "predict"}
{"$literal": "predict"}
Successful Response
The response is of type CostPurgeRes · object.
CostPurgeRes · object
Was this page helpful?