Skip to main content
POST
/
user
/
patient
/
uploads
/
column-mappings
Create Column Mapping
curl --request POST \
  --url https://api.decodahealth.com/user/patient/uploads/column-mappings \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "name": "<string>",
  "mappings": [
    {
      "csvHeader": "<string>",
      "mappedField": "<string>"
    }
  ],
  "isDefault": false
}
'
{
  "id": "<string>",
  "name": "<string>",
  "isDefault": true,
  "mappings": [
    {
      "id": "<string>",
      "groupId": "<string>",
      "csvHeader": "<string>",
      "mappedField": "<string>"
    }
  ]
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
name
string
required
mappings
ColumnMappingItemCreate · object[]
required
isDefault
boolean
default:false

Response

Successful Response

id
string
required
name
string
required
isDefault
boolean
required
mappings
ColumnMappingItemResponse · object[]
required