Hi, Trying to use APIs in Datahub for the first t...
# getting-started
p
Hi, Trying to use APIs in Datahub for the first time. I get the following error on executing the query -
Copy code
curl -v --user <admin username>:<admin password> --location --request POST 'http://<domain url>/api/graphql' \
--header 'Content-Type: application/json' \
--data-raw '{ "query": "mutation createDomain { createDomain(input: { name: \"lol\", description: \"nothing\" }) }", "variables":{}}'
Can you tell me what I am missing? Error
Copy code
* Mark bundle as not supporting multiuse
< HTTP/1.1 401 Unauthorized
< Date: Mon, 26 Jun 2023 07:33:08 GMT
d
Hi, instead of passing user/password, can you try pass tokens to header? • How to generate tokensExamples (see
curl
)
p
Does this require enabling Authentication on GMS? Secondly, is username:password not gonna work at all?