Policy

Changes a policy's owner

put/policy/{packageName}/owner

Path parameters

packageNamestring required

The NPM package name

Request body

authorWalletAddressstring required

New owner address

Example request

{
  "authorWalletAddress": "0x123456789012345678901234567890123456abcd"
}

Response

Successful operation

_idstring required

Document ID

updatedAtstring date-time required

Timestamp when this was last modified

createdAtstring date-time required

Timestamp when this was created

packageNamestring required

Policy NPM package name

authorWalletAddressstring required

Author wallet address. Derived from the authorization signature provided by the creator.

descriptionstring required

Policy description - displayed to users in the dashboard/Vincent Explorer UI

activeVersionstring required

Active version of the policy; must be an exact semver

titlestring required

Policy title for displaying to users in the dashboard/Vincent Explorer UI

Example response

{
  "packageName": "@lit-protocol/vincent-policy-spending-limit",
  "authorWalletAddress": "0x123456789012345678901234567890123456abcd",
  "description": "This policy is a foo bar policy",
  "activeVersion": "1.0.0",
  "title": "Vincent Spending Limit Policy"
}

Changes