PUT
/
datasets
/
{dataset_id}
/
mapfields
curl --request PUT \
  --url https://api.axiom.co/v2/datasets/{dataset_id}/mapfields \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '[
  "field1",
  "field2"
]'
[
  "field1",
  "field2"
]

In the body of the API request that you send to this endpoint, specify a list of field names:

  • Fields you haven’t previously defined as map fields but include in the list become map fields.
  • Fields you have previously defined as map fields and include in the list remain map fields.
  • Fields you have previously defined as map fields but exclude from the list are removed.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

dataset_id
string
required

Body

application/json · string[]

A list of MapField-names

A list of map field names

Response

200 - application/json

A list of map field names