v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
Waas

Update a WAAS signature policy by walletId and policyId

put/environments/{environmentId}/waas/{walletId}/signaturePolicy/{policyId}

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

walletIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

UUID of the wallet

policyIdstring uuid required

The ID of the signature policy for the wallet

Request body

timeLimitinteger required

Time limit in seconds until the policy expires. Must be greater than 0 seconds.

Example request

{
  "policyContent": [
    {
      "toAddresses": [
        "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      ],
      "valueLimits": [
        {
          "asset": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
        }
      ]
    }
  ]
}

Response

WAAS signature policy updated successfully

idstring required
walletIdstring required
expiresAtstring date-time required

Timestamp when the policy expires

Example response

{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "walletId": "95b11417-f18f-457f-8804-68e361f9164f",
  "policyContent": [
    {
      "toAddresses": [
        "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      ],
      "valueLimits": [
        {
          "asset": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
        }
      ]
    }
  ]
}