ReferenceApi
Update draft mandate
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
policy*
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/api/v1/mandates/string" \ -H "Content-Type: application/json" \ -d '{ "policy": { "subject": { "subjectId": "string", "type": "user" }, "agent": { "agentId": "string", "name": "string" }, "paymentPath": "offchain", "enforcementMode": "onchainEnforced", "payer": { "payerId": "string", "type": "wallet" }, "paymentMethods": [ "x402" ], "assets": [ "string" ], "maxPerPayment": "string", "windowBudget": { "amount": "string", "asset": "string", "windowSeconds": 1 }, "expiresAt": "string" } }'{ "mandateId": "string", "status": "draft", "policy": { "subject": { "subjectId": "string", "organizationId": "string", "type": "user" }, "agent": { "agentId": "string", "name": "string", "environment": "development", "runtimeAttestation": { "property1": null, "property2": null } }, "paymentPath": "offchain", "enforcementMode": "onchainEnforced", "payer": { "payerId": "string", "type": "wallet", "address": "string", "custodyProvider": "string" }, "delegate": { "delegateId": "string", "type": "sessionKey", "publicKey": "string", "expiresAt": "string" }, "paymentMethods": [ "x402" ], "assets": [ "string" ], "chains": [], "maxPerPayment": "string", "windowBudget": { "amount": "string", "asset": "string", "windowSeconds": 1 }, "totalBudget": "string", "expiresAt": "string", "allowedSellers": [], "allowedResources": [], "blockedResources": [], "minimumAssuranceLevel": "softwareApproved", "metadataPolicy": { "redactPrompts": true, "redactHeaders": [], "storeRawChallenge": false }, "riskPolicy": { "denyUnknownSellers": true, "denyUnknownResources": false }, "onchainFeePolicy": { "feeRecipient": "string", "maxOpenPermitFeePerPayment": "0", "maxOpenPermitFeeBps": 0 } }, "approvalProofs": [], "approvalMethod": "passkey", "assuranceLevel": "softwareApproved", "revocationNonce": "string", "createdAt": "string", "updatedAt": "string", "activatedAt": "string", "pausedAt": "string", "revokedAt": "string"}{ "type": "about:blank", "title": "string", "status": 0, "detail": "string", "instance": "string", "requestId": "string", "code": "string", "errors": [ { "detail": "string", "pointer": "string" } ]}{ "type": "about:blank", "title": "string", "status": 0, "detail": "string", "instance": "string", "requestId": "string", "code": "string"}{ "type": "about:blank", "title": "string", "status": 0, "detail": "string", "instance": "string", "requestId": "string", "code": "string"}{ "type": "about:blank", "title": "string", "status": 0, "detail": "string", "instance": "string", "requestId": "string", "code": "string"}{ "type": "about:blank", "title": "string", "status": 0, "detail": "string", "instance": "string", "requestId": "string", "code": "string"}{ "type": "about:blank", "title": "string", "status": 0, "detail": "string", "instance": "string", "requestId": "string", "code": "string"}