datasets
POST /datasets/{dataset_id}/mapfields
Changed onConfigures a field as a map field. Events you ingest afterward store the field's nested keys inside the map, while previously ingested events keep their structure. Not supported for metrics datasets.
Request
- Base URLhttps://api.axiom.co/v2
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopesdatasets|update
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
dataset_idstring required
Request body
Example request
{
"name": "fieldname"
}Response
Created map field.
Example response
{
"name": "fieldname"
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info