Annotation endpoints
API token endpoints
Dataset endpoints
Monitor endpoints
Notifier endpoints
Organization endpoints
Role-based access control endpoints
Starred queries endpoints
User endpoints
Virtual fields endpoints
Create virtual field
Create virtual field
POST
/
vfields
curl --request POST \
--url https://api.axiom.co/v2/vfields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"dataset": "<string>",
"description": "<string>",
"expression": "<string>",
"name": "<string>",
"type": "<string>",
"unit": "<string>"
}'
{
"dataset": "<string>",
"description": "<string>",
"expression": "<string>",
"name": "<string>",
"type": "<string>",
"unit": "<string>",
"id": "<string>"
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
application/json
Response
200 - application/json
VirtualFieldWithId
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.axiom.co/v2/vfields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"dataset": "<string>",
"description": "<string>",
"expression": "<string>",
"name": "<string>",
"type": "<string>",
"unit": "<string>"
}'
{
"dataset": "<string>",
"description": "<string>",
"expression": "<string>",
"name": "<string>",
"type": "<string>",
"unit": "<string>",
"id": "<string>"
}