Add or Update Policy

put

/v1/governance/policy

Creates or updates the governance policy identified by `uuid`, configuring its approval threshold and authorized deployer addresses through a transaction submitted by `fromAddress`.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Example:
{
    "uuid":"530aea52-fe27-45fa-8785-7da0d34378e3",
    "threshold":3,
    "deployers":[
        "0x34dad2d9a0be504ab4eea2711d8c3da628b82b2c"
    ],
    "fromAddress":"0x34dad2d9a0be504ab4eea2711d8c3da628b82b2c",
    "async":false
}
Nested Schema : deployers
Type: array
Minimum Number of Items: 1
Show Source
Security
Back to Top

Response

Supported Media Types

200 Response

Transaction receipt confirmed
Body ()
Root Schema : SyncGovernanceResponse
Type: object
Show Source

202 Response

Transaction submitted or receipt not yet available
Body ()
Root Schema : AsyncGovernanceResponse
Type: object
Show Source

400 Response

Bad request.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : details
Type: array
Show Source

401 Response

Unauthorized.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : details
Type: array
Show Source

403 Response

The authenticated user is not authorized to access the requested wallet or operation.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : details
Type: array
Show Source

404 Response

Requested resource was not found.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : details
Type: array
Show Source

500 Response

Internal server error.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : details
Type: array
Show Source
Back to Top