Correction on rest api calls

The rest apis listed here (and probably elsewhere) have additional attribute elements that are not necessary.
https://docs.dremio.com/rest-api/jobs/post-job.html#

curl -X POST \
http://localhost:9047/api/v3/job/23a5e7ab-27e6-efc9-d51b-200fcac3a100/cancel \
-H 'Authorization: _dremioerjt7vnhtljpus01rfibddefdg' \
-H 'Postman-Token: 4d39161f-207d-472f-a28c-d12557f2bfdc' \
-H 'cache-control: no-cache'

The second two header variables: Postman-Token and cache-control are not necessary to make a successful call. They are added by postman tool, but are not needed.

other cases I’ve found:
https://docs.dremio.com/rest-api/catalog/post-catalog.html
https://docs.dremio.com/rest-api/sources/get-source.html
https://docs.dremio.com/rest-api/sql/post-sql.html

1 Like

Thanks for the feedback @Bruce_Lowther, Will look into this and make necessary correction