Then run it with overwrite true
[
{"series_description": "YOUR_SCAN_TYPE_1", "bidsname": "BIDS_TYPE_1"},
{"series_description": "YOUR_SCAN_TYPE_2", "bidsname": "BIDS_TYPE_2"},
...
{"series_description": "YOUR_SCAN_TYPE_N", "bidsname": "BIDS_TYPE_N"}
]
You can use the attached file as a starting point. It has the correct JSON structure and comes pre-loaded with a lot of scan types.
4. Use a REST client to PUT this up to the following config URL: {YOUR_XNAT}/data/projects/{YOUR_PROJECT}/config/bids/bidsmap
. For instance, here is a command for curl:
$ curl -u {YOUR_USERNAME}:{YOUR_PASSWORD} -d @/path/to/file/with/bids/mapping -X PUT '{YOUR_XNAT}/data/projects/{YOUR_PROJECT}/config/bids/bidsmap?inbody=true'
Verify the config is present by GETing the config.
$ curl -u {YOUR_USERNAME}:{YOUR_PASSWORD} '{YOUR_XNAT}/data/projects/{YOUR_PROJECT}/config/bids/bidsmap'