Accessing platform projects via the GraphQL API

Hi there,

I’m currently trying to fetch a list of Atlassian Platform projects from my Atlassian cloud tenant via the GraphQL API. Unfortunately I can’t seem to find the right ARI syntax for the containerId that I need to supply in my request.

This is what I have so far for my query:

query projectsQuery{
projects_search(
containerId: “ari:cloud:townsquare:<cloudId>”,
searchString: “”
) {
edges {
node {
id
name
}
}
}
}

The error message I receive reads:

… message: “Argument ‘containerId’ annotated with @ARI did not contain valid ARI: ari:cloud:townsquare:<cloudId>”, …

Unfortunately the docs don’t seem to provide much guidance on what a containerId should be formatted like…

Has anyone else found a solution for this? Any help would be amazing - thank you!

@TimCromwell,

Using Rovo on our internal Confluence, I found (and then tested) the ARI format for this containerId is:

ari:cloud:townsquare::site/<cloudId>
1 Like

Thank you so much @ibuchanan - that worked perfectly!