Shared Team Asset Governance
team.asset.update_scope
Overrides the permission scope of a single share record as the team admin and writes a note into the audit log. Requires an API key of type KEY_TYPE_TEAM_ASSET_MGMT.
POST
/
v2
/
team.asset.update_scope
UpdateAssetShareScope
curl --request POST \
--url https://api.manus.im/v2/team.asset.update_scope \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"share_uid": "<string>"
}
'import requests
url = "https://api.manus.im/v2/team.asset.update_scope"
payload = { "share_uid": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({share_uid: '<string>'})
};
fetch('https://api.manus.im/v2/team.asset.update_scope', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.manus.im/v2/team.asset.update_scope",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'share_uid' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.manus.im/v2/team.asset.update_scope"
payload := strings.NewReader("{\n \"share_uid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.manus.im/v2/team.asset.update_scope")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"share_uid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manus.im/v2/team.asset.update_scope")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"share_uid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"request_id": "<string>"
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}Questions or issues? Contact us at api-support@manus.ai.
Admin override. This endpoint changes the share scope of a resource that does not belong to the caller. Use it from controlled DSPM workflows only and always supply a meaningful
note — it is written to the audit log and is the only record of why the override happened.Auth: Requires an
KEY_TYPE_TEAM_ASSET_MGMT enterprise API key. Audit-class keys are rejected.Lookup share_uid first. Call team.asset.list to discover the uid of the share row you want to override. The share_uid must belong to the same team as the API key.Note is mandatory in spirit. Although note is technically optional, it is written verbatim to team_asset_audit_logs.remark and is the only place the override’s intent is recorded — supply something meaningful. The audit row also records the calling key’s name in api_key_name, which is what operators reviewing the team asset audit log use to tell API-driven overrides apart from manual admin actions — see the overview for the full semantics.Protocols: Also callable via Connect RPC. See Protocols.Authorizations
Body
application/json
UID of the team_asset_shares row to override. Must belong to the calling team. Look up via team.asset.list.
New permission for the share.
Available options:
SHARE_SCOPE_OWNER, SHARE_SCOPE_TEAM_ONLY, SHARE_SCOPE_PUBLIC Free-form audit note. Written to the team_asset_audit_logs.remark column and surfaced to anyone reviewing why the scope was changed.
⌘I
UpdateAssetShareScope
curl --request POST \
--url https://api.manus.im/v2/team.asset.update_scope \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"share_uid": "<string>"
}
'import requests
url = "https://api.manus.im/v2/team.asset.update_scope"
payload = { "share_uid": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({share_uid: '<string>'})
};
fetch('https://api.manus.im/v2/team.asset.update_scope', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.manus.im/v2/team.asset.update_scope",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'share_uid' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.manus.im/v2/team.asset.update_scope"
payload := strings.NewReader("{\n \"share_uid\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.manus.im/v2/team.asset.update_scope")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"share_uid\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.manus.im/v2/team.asset.update_scope")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"share_uid\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"ok": true,
"request_id": "<string>"
}{
"ok": false,
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}