Datasaur
Search…
Get List of Tags
You can retrieve list of tags.

Personal Tags - cURL

Use the following cURL command to get personal tags. You can copy and paste the following template.
1
curl --location --request POST 'https://datasaur.ai/graphql' \
2
--header 'Authorization: Bearer access_token' \
3
--header 'Content-Type: application/json' \
4
--data-raw '{
5
"query": "query { getPersonalTags { id name } }"
6
}'
Copied!
  • query use the value in the sample above.

Response

Here is the response you can expect after issuing the cURL command.
1
{
2
"data": {
3
"getPersonalTags": [
4
{
5
"id": "1",
6
"name": "Example"
7
}
8
]
9
},
10
"extensions": {}
11
}
Copied!

Team Tags - cURL

Use the following cURL command to get team tags. You can copy and paste the following template and replace the teamId.
1
curl --location --request POST 'https://datasaur.ai/graphql' \
2
--header 'Authorization: Bearer access_token' \
3
--header 'Content-Type: application/json' \
4
--data-raw '{
5
"query": "query GetTagsQuery($input: GetTagsInput!) { getTags(input: $input) { id name } }",
6
"variables": {
7
"input": {
8
"teamId": "1"
9
}
10
}
11
}'
Copied!
  • query use the value in the sample above.
  • variables
    • input
      • teamId: Required. team's id that you want to retrieve the list of tags from.

Response

Here is the response you can expect after issuing the cURL command.
1
{
2
"data": {
3
"getTags": [
4
{
5
"id": "2",
6
"name": "Example"
7
},
8
],
9
},
10
"extensions": {}
11
}
Copied!