admin_workspace_contents
const url = 'https://example.com/api/v1/admin/content-access/workspace?access_id=example&sort_by=name&sort_order=asc';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/admin/content-access/workspace";
let querystring = [ ("access_id", "example"), ("sort_by", "name"), ("sort_order", "asc"), ];
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap());
let client = reqwest::Client::new(); let response = client.get(url) .query(&querystring) .headers(headers) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request GET \ --url 'https://example.com/api/v1/admin/content-access/workspace?access_id=example&sort_by=name&sort_order=asc' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”File and folder ordering used by persisted user preferences and listing APIs.
Sort direction used by API query parameters.
Responses
Section titled “Responses”object
object
object
object
Lowercase multi-part extension without a leading dot, such as tar.gz.
Populated only when the file name ends with a supported compound extension.
Lowercase final extension without a leading dot. Empty when the file name has no extension.
Category derived from the extension first, then MIME type as fallback.
object
object
Compatibility mode for locks covering the same resource hierarchy.
object
object
object
object
Compatibility mode for locks covering the same resource hierarchy.
object
object
object
Connector-owned field that caused a configuration validation failure.
This is intentionally optional so existing diagnostics remain wire-compatible.
Connector field scope, for example connector_config or static_credential.
Example
{ "code": "success", "data": { "ancestors": [ { "icon": { "kind": "default" } } ], "contents": { "files": [ { "file_category": "image", "lock_state": { "state": "unlocked" } } ], "folders": [ { "icon": { "kind": "default" }, "lock_state": { "state": "unlocked" } } ] } }}