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?
At least databases are not accessible through the API.
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
}
}
}
{
"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
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.