I am using the explorer Log in with Atlassian account
Trying to get a response from the teamSearchV2 query.
I start by using
query tenantData {
tenantContexts(hostNames: ["######.atlassian.net"]) {
cloudId
orgId
}
}
to get the siteId and organizationId which returns the following response (all ok)
{
"data": {
"tenantContexts": [
{
"cloudId": " my cloud id #############",
"orgId": " my org id #############"
}
]
},
"extensions": {
"gateway": {
"request_id": "#####################",
"crossRegion": false,
"edgeCrossRegion": false
}
}
}
Then calling the API using
{
team @optIn(to: "Team-search-v2") {
teamSearchV2(
siteId: "<from query above>"
organizationId: "<from query above>"
) {
edges {
node {
team {
id
}
}
}
}
}
}
returns with the following.
Does the Organization Id need formatting in some way with an Ari prefix or something. Or am doing something incorrect?
Thanks
ps
I have tried various combinations and swaps of the 2 ids with no success
{
"errors": [
{
"message": "Exception while fetching data (/team/teamSearchV2) : Invalid Organization Ari",
"locations": [
{
"line": 1,
"column": 34
}
],
"path": [
"team",
"teamSearchV2"
],
"extensions": {
"errorSource": "UNDERLYING_SERVICE",
"statusCode": 400,
"classification": "MalformedInput"
}
},
{
"message": "Warning : You MUST provide a query operation name. In the future operations without names will be banned.",
"extensions": {
"statusCode": 400,
"errorSource": "GRAPHQL_GATEWAY",
"classification": "ExecutionAborted"
}
}
],
"data": {
"team": {
"teamSearchV2": null
}
},
"extensions": {
"gateway": {
"request_id": "####################################",
"crossRegion": false,
"edgeCrossRegion": false
}
}
}