Skip to content

sourcescope module route (requires sourcescope:binding:write)

PUT
/v1/m/sourcescope/guard-postures
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.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

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
reason
Any of:

Trimmed and capped at 512 bytes.

string
source_ref
required

Knowledge-base name; after trimming it must be non-empty.

string
source_type
Any of:

Defaults to knowledge when empty; any non-empty value must normalize to knowledge.

string
Example generated
{
"profile": "example",
"reason": "example",
"source_ref": "example",
"source_type": "example"
}

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
{}