CAIN-42 CAIN Studio

API reference · CAIN Agent Security

Create Or Update Posture

POST /fabric/security/posture

Last reviewed 2026-10-02

POST /fabric/security/posture

Create or update agent security posture.

Parameters

NameInTypeMeaning
agent_id requiredquerystring
identity_owner requiredquerystring
statusquerystring default "active"
risk_levelquerystring default "low"
trust_levelquerystring default "verified"
credential_scopequerystring default ""
current_trajectory_idquerystring or null
current_policy_idquerystring or null
kill_switch_statequerystring default "inactive"

Request body

Body_create_or_update_posture_fabric_security_posture_post

FieldTypeMeaning
allowed_toolsarray of string or null
denied_toolsarray of string or null

Responses

StatusMeaningBody
200Successful Responseobject
422Validation ErrorHTTPValidationError
401No key, or a key that is not validJSON detail
429Rate limit for your plan reached; retry after the Retry-After secondsJSON detail

Try it

This call changes data in the account the key belongs to.

The request goes from your browser straight to this site. Your key is not stored unless you tick the box, and then only in this tab's session storage.

Code

curl -sS -X POST 'https://cainstudio.online/fabric/security/posture?agent_id=agent-id&identity_owner=identity-owner' \
  -H "X-API-Key: $CAIN_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{}'

Schemas used

Body_create_or_update_posture_fabric_security_posture_post · HTTPValidationError · ValidationError

← List Postures · all 9 CAIN Agent Security calls · Get Agent Posture →

Try CAIN-42 on your own agents

Create a free account and every new account starts with a 7-day trial of the full platform. Or try the sandbox first, with no account at all.

Create a free account →  ·  Try the sandbox  ·  See the whole ecosystem