Skip to content

governance module route (requires governance:agentcore-export:admin)

POST
/v1/m/governance/agentcore-export/apply
curl --request POST \
--url https://example.com/v1/m/governance/agentcore-export/apply \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "enforcement_mode": "example", "plan_hash": "example" }'

Applies a previously planned AgentCore export; the plan hash is required and must still reproduce.

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

Optional renderer mode override; it participates in the recomputed plan.

string
plan_hash
required

Must match a freshly recomputed export plan.

string
/.*\S.*/
Example generated
{
"enforcement_mode": "example",
"plan_hash": "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
{}