Skip to main content
DELETE
/
organizations
/
{orgId}
/
permissionpolicies
/
{id}
Delete Permission Policy
curl --request DELETE \
  --url https://api.m3ter.com/organizations/{orgId}/permissionpolicies/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "version": 123,
  "name": "<string>",
  "permissionPolicy": [
    {
      "effect": "ALLOW",
      "action": [
        "ALL"
      ],
      "resource": [
        "<string>"
      ]
    }
  ],
  "managedPolicy": true,
  "dtCreated": "2023-11-07T05:31:56Z",
  "dtLastModified": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "lastModifiedBy": "<string>"
}

Authorizations

Authorization
string
header
required

m3ter supports machine to machine authentication using the clientCredentials OAuth2 flow.

The authorizationCode flow controls access for human users via the m3ter Console application.

Path Parameters

id
string
required

The UUID of the PermissionPolicy to delete.

orgId
string
required

UUID of the organization

Response

Returns the PermissionPolicy that was deleted

id
string
required

The UUID of the entity.

version
integer<int64>

The version number:

  • Create: On initial Create to insert a new entity, the version is set at 1 in the response.
  • Update: On successful Update, the version is incremented by 1 in the response.
name
string

The name of the Permission Policy.

permissionPolicy
object[]

Array containing the Permission Policies information.

managedPolicy
boolean

Indicates whether this is a system generated Managed Permission Policy.

dtCreated
string<date-time>

The date and time (in ISO-8601 format) when the Permission Policy was created.

dtLastModified
string<date-time>

The date and time (in ISO-8601 format) when the Permission Policy was last modified.

createdBy
string

The unique identifier (UUID) of the user who created this Permission Policy.

lastModifiedBy
string

The unique identifier (UUID) of the user who last modified this Permission Policy.