policy

Creates a new policy

post/policy

Request body

packageNamestring required

Policy package name

policyTitlestring required

Policy title

descriptionstring required

Policy description

versionstring required

An initial version of the policy; must be an exact semver

Example request

{
  "packageName": "@vincent/foo-bar-policy",
  "policyTitle": "The Greatest Foo Bar Policy",
  "description": "This policy is a foo bar policy",
  "version": "1.0.0"
}

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 package name

authorWalletAddressstring required

Author wallet address

descriptionstring required

Policy description

activeVersionstring required

Active version of the policy

Example response

{
  "packageName": "@vincent/foo-bar-policy",
  "authorWalletAddress": "0xa723407AdB396a55aCd843D276daEa0d787F8db5",
  "description": "This policy is a foo bar policy",
  "activeVersion": "1.0.0"
}

Changes