sourcescope module route (requires sourcescope:binding:write)
PUT
/v1/m/sourcescope/guard-postures
const url = 'https://example.com/v1/m/sourcescope/guard-postures';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"profile":"example","reason":"example","source_ref":"example","source_type":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/m/sourcescope/guard-postures \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "profile": "example", "reason": "example", "source_ref": "example", "source_type": "example" }'Sets the retrieval guard posture of one source; a downgrade to public_only is queued as a posture request for approval instead of being applied.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Olivares-Tenant
string format: uuid
Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “Request Body required ” Media type application/json
object
profile
required
Case-insensitive after trimming: acl_aware or public_only; disable_acl is accepted as an alias for public_only.
string
source_ref
required
Knowledge-base name; after trimming it must be non-empty.
string
Example generated
{ "profile": "example", "reason": "example", "source_ref": "example", "source_type": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}Bad request
Media type application/json
object
Example generated
{}Unauthenticated
Media type application/json
object
Example generated
{}Forbidden
Media type application/json
object
Example generated
{}Not found
Media type application/json
object
Example generated
{}Conflict / setup required
Media type application/json
object
Example generated
{}Rate limited
Media type application/json
object
Example generated
{}