-  API Key 
-  Webauthn (Passkey) 
Body
Enum options: ACTIVITY_TYPE_UPDATE_POLICY_V2
Timestamp (in milliseconds) of the request, used to verify liveness of user requests.
Unique identifier for a given Organization.
parameters field
Unique identifier for a given Policy.
Human-readable name for a Policy.
Enum options: EFFECT_ALLOW, EFFECT_DENY
parameters.policyCondition
The condition expression that triggers the Effect (optional).
parameters.policyConsensus
The consensus expression that triggers the Effect (optional).
Accompanying notes for a Policy (optional).
Response
A successful response returns the following fields:
The activity object containing type, intent, and result
The intent of the activity
activity.intent.updatePolicyIntentV2
The updatePolicyIntentV2 objectShow updatePolicyIntentV2 details
activity.intent.updatePolicyIntentV2.policyId
Unique identifier for a given Policy.
activity.intent.updatePolicyIntentV2.policyName
Human-readable name for a Policy.
activity.intent.updatePolicyIntentV2.policyEffect
policyEffect fieldEnum options: EFFECT_ALLOW, EFFECT_DENY
activity.intent.updatePolicyIntentV2.policyCondition
The condition expression that triggers the Effect (optional).
activity.intent.updatePolicyIntentV2.policyConsensus
The consensus expression that triggers the Effect (optional).
activity.intent.updatePolicyIntentV2.policyNotes
Accompanying notes for a Policy (optional).
  The result of the activity
activity.result.updatePolicyResultV2
The updatePolicyResultV2 objectShow updatePolicyResultV2 details
activity.result.updatePolicyResultV2.policyId
Unique identifier for a given Policy.
   curl --request POST \
  --url https://api.turnkey.com/public/v1/submit/update_policy \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header "X-Stamp: <YOUR_API_KEY.YOUR_API_SECRET>" \
  --data '{
    "type": "ACTIVITY_TYPE_UPDATE_POLICY_V2",
    "timestampMs": "<string> (e.g. 1746736509954)",
    "organizationId": "<string> (Your Organization ID)",
    "parameters": {
        "policyId": "<string>",
        "policyName": "<string>",
        "policyEffect": "<EFFECT_ALLOW>",
        "policyCondition": "<string>",
        "policyConsensus": "<string>",
        "policyNotes": "<string>"
    }
}'
{
  "activity": {
    "id": "<activity-id>",
    "status": "ACTIVITY_STATUS_COMPLETED",
    "type": "ACTIVITY_TYPE_UPDATE_POLICY_V2",
    "organizationId": "<organization-id>",
    "timestampMs": "<timestamp> (e.g. 1746736509954)",
    "result": {
      "activity": {
        "type": "<string>",
        "intent": {
          "updatePolicyIntentV2": {
            "policyId": "<string>",
            "policyName": "<string>",
            "policyEffect": "<EFFECT_ALLOW>",
            "policyCondition": "<string>",
            "policyConsensus": "<string>",
            "policyNotes": "<string>"
          }
        },
        "result": {
          "updatePolicyResultV2": {
            "policyId": "<string>"
          }
        }
      }
    }
  }
}