API Key
Webauthn (Passkey)
Body
Enum options: ACTIVITY_TYPE_UPDATE_POLICY
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.updatePolicyIntent
The updatePolicyIntent objectShow updatePolicyIntent details
activity.intent.updatePolicyIntent.policyId
Unique identifier for a given Policy.
activity.intent.updatePolicyIntent.policyName
Human-readable name for a Policy.
activity.intent.updatePolicyIntent.policyEffect
policyEffect fieldEnum options: EFFECT_ALLOW
, EFFECT_DENY
activity.intent.updatePolicyIntent.policyCondition
The condition expression that triggers the Effect (optional).
activity.intent.updatePolicyIntent.policyConsensus
The consensus expression that triggers the Effect (optional).
activity.intent.updatePolicyIntent.policyNotes
Accompanying notes for a Policy (optional).
The result of the activity
activity.result.updatePolicyResult
The updatePolicyResult objectShow updatePolicyResult details
activity.result.updatePolicyResult.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",
"timestampMs": "<string> (e.g., 1745474677473)",
"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",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g., 1745474677473)",
"result": {
"activity": {
"type": "<string>",
"intent": {
"updatePolicyIntent": {
"policyId": "<string>",
"policyName": "<string>",
"policyEffect": "<EFFECT_ALLOW>",
"policyCondition": "<string>",
"policyConsensus": "<string>",
"policyNotes": "<string>"
}
},
"result": {
"updatePolicyResult": {
"policyId": "<string>"
}
}
}
}
}
}