Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ARI Format for databases and folders

babagurgur53
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2025

I'm trying to perform a GraphQL query to read from either confluence/database or confluence/folder.

No matter the format I try, I get an error

Could not parse provided ARI as a ConfluenceFolderARIId: `ari:cloud:confluence:{spaceId}:folder/884740`

 

I've also tried content/884740 and gotten the same error. 

I've confirmed 884740 is the correct 'id' for the folder.

 

The request I'm sending is:

query myQuery { confluence { folder(id:\"ari:cloud:confluence{spaceId}:folder/884740\") @optIn(to: \"ConfluenceFoldersRelease\") { id } } }

 

I cannot find any documentation on what the correct ARI format is supposed to be, do these exist?

 

1 answer

0 votes
marc -Collabello--Phase Locked-
Community Champion
April 18, 2025

At least databases are not accessible through the API.

Grigory Romanyuk April 21, 2025

I ran into the same issue as the OP. There is a documentation about Confluence DB API. 

https://developer.atlassian.com/cloud/confluence/graphql/#queries_database

So I would assume it works, but I cannot not find the right "ARI". 

query example {

  confluence @optIn(to: "ConfluenceDatabasesRelease") {

    database(id: "ari:cloud:confluence:xxxxxx:database/xxxxx") {

id

    }

  }

}
Always getting following error:
{
"errors": [
{
"message": "xxxxx: Could not parse provided ARI as a ConfluenceDatabaseARIId: `ari:cloud:confluence:xxxxxx:database/xxxxx`",
"locations": [],
"path": [
"confluence",
"database"
],
"extensions": {
"errorSource": "UNDERLYING_SERVICE",
"errorType": "INVALID_ARI",
"microsID": "a0ce0ab6-3b1a-416d-a631-31129a79976d",
"classification": "DataFetchingException",
"statusCode": 500
}
}
],
"data": {
"confluence": {
"database": null
}
},
"extensions": {
"gateway": {
"request_id": "92769536-c27c-479e-b40b-7dc38a79f229",
"crossRegion": false,
"edgeCrossRegion": false
}
}
}
@marc -Collabello--Phase Locked- despite the fact there is a mention in the docs, the dbs aren't accessible anyways?
thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events