admin_create_content_access
POST
/api/v1/admin/content-access
const url = 'https://example.com/api/v1/admin/content-access';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"reason":"user_support","remark":"example","scope_kind":"personal","target_id":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}use serde_json::json;use reqwest;
#[tokio::main]pub async fn main() { let url = "https://example.com/api/v1/admin/content-access";
let payload = json!({ "reason": "user_support", "remark": "example", "scope_kind": "personal", "target_id": 1 });
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Authorization", "Bearer <token>".parse().unwrap()); headers.insert("Content-Type", "application/json".parse().unwrap());
let client = reqwest::Client::new(); let response = client.post(url) .headers(headers) .json(&payload) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request POST \ --url https://example.com/api/v1/admin/content-access \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "reason": "user_support", "remark": "example", "scope_kind": "personal", "target_id": 1 }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Media typeapplication/json
object
code
required
string
data
object
expires_at
required
string
id
required
string
error
object
diagnostic
object
field
Connector-owned field that caused a configuration validation failure.
This is intentionally optional so existing diagnostics remain wire-compatible.
string | null
kind
required
string
message
required
string
scope
Connector field scope, for example connector_config or static_credential.
string | null
retryable
required
boolean
msg
required
string
Example
{ "code": "success"}