For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create Role

Create a Tier 1 account role and optionally assign users from the same Mimeeq account. Use List Role Permissions for valid permission IDs and List Users for valid user IDs.

The role defaults to INACTIVE, with no permissions or assigned users unless supplied. Set status to ACTIVE when required. The response contains the role detail read after creation.

Creation and settings are separate backend steps. If a later step fails, check existing roles before retrying to avoid creating a duplicate.

Requires the roles:write scope.

post
Authorizations
AuthorizationstringRequired

API key sent as a bearer token (mk_live_… / mk_test_…).

Body

Data schema used by Create Role (POST /v1/roles). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.

roleNamestring · min: 1 · max: 255Required
statusstring · enumOptionalPossible values:
userIdsstring[]Optional
Responses
201

Created.

application/json
post/v1/roles
POST /v1/roles HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "roleName": "text",
  "status": "ACTIVE",
  "permissions": [
    "CONTACTS_VIEW"
  ],
  "userIds": [
    "text"
  ]
}
{
  "data": {
    "roleId": "text",
    "roleName": "text",
    "status": "ACTIVE",
    "permissions": [
      "text"
    ],
    "userIds": [
      "text"
    ],
    "createdAt": "text",
    "modifiedAt": "text"
  }
}

Last updated

Was this helpful?