Create Policy

Creates a new gas manager policy with the specified rules. Returns the policy id of a successfully created policy. The newly created policy will be in the “inactive” status.

Request Body:

{
  "app_id": "app_sid", // String ID of the app
  "rules": {rules_object}
}

Response:

{
  "data": {
    "policy": {policy_obj}
  } | undefined,
  "error": error | undefined
}
Language
Click Try It! to start a request and see the response here!