Pause policy
Changed onPause a policy so it is skipped during evaluation as if it were not attached. The policy keeps its ID, scope, and rules. If already paused, this returns the policy with the original pausedAt and replaces resumeAt with the requested time, or clears resumeAt if no time is supplied.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Path parameters
The ID of the policy to pause.
Query parameters
Whether policy operations use the entity ID or the project ID from the caller's credential.
Selects whether this request uses the entity ID or the project ID from the caller's credential as the policy group for lookups, writes, and simulation. Defaults to project. Use entity for the policies of an entity's custodial accounts. This is independent of a policy's scope, which says whether a policy applies to a single account or to the whole project.
Headers
An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.
Request body
Optional future time at which the policy resumes automatically, at most 30 days from the request. If omitted, the policy stays paused until resumed.
Example request
{
"resumeAt": "2026-09-30T12:00:00Z"
}Response
Successfully paused policy.
The unique identifier for the policy.
An optional human-readable description of the policy. Policy descriptions can consist of alphanumeric characters, spaces, commas, and periods, and be 50 characters or less.
The scope of the policy. Only one project-level policy can exist at any time.
The current evaluation status of the policy.
When the policy was paused. Present only when status is paused.
When a paused policy resumes automatically. Absent for an indefinite pause.
A list of rules that comprise the policy. Each policy is limited to 100 rules and a total serialized size of 8 MiB.
The ISO 8601 timestamp at which the Policy was created.
The ISO 8601 timestamp at which the Policy was last updated.
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"description": "Default policy",
"scope": "project",
"status": "active",
"pausedAt": "2026-09-29T12:00:00Z",
"resumeAt": "2026-09-30T12:00:00Z",
"rules": [
{
"action": "accept",
"operation": "signEvmTransaction",
"criteria": [
{
"type": "ethValue",
"ethValue": "1000000000000000000",
"operator": "<="
},
{
"type": "evmAddress",
"addresses": [
"0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"0x1234567890123456789012345678901234567890"
],
"operator": "in"
}
]
},
{
"action": "accept",
"operation": "signSolTransaction",
"criteria": [
{
"type": "solAddress",
"addresses": [
"HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT"
],
"operator": "in"
}
]
}
],
"createdAt": "2025-03-25T12:00:00Z",
"updatedAt": "2025-03-26T12:00:00Z"
}Changes
- breaking
added to the
rules/itemsresponse propertyoneOflist for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status
6 more changes in this revision
- breaking