跳转到主要内容
POST
/
base
/
{baseId}
/
authority-matrix-role
cURL
curl --request POST \
  --url http://127.0.0.1:3000/api/base/{baseId}/authority-matrix-role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "enabled": true,
  "tables": [
    {
      "tableId": "<string>",
      "disabledActions": [
        "<string>"
      ],
      "fieldRecordPermission": [
        {
          "fieldId": "<string>",
          "disabledActions": [
            "<string>"
          ]
        }
      ],
      "recordFilter": {},
      "enabledViewIds": [
        "<string>"
      ],
      "enabled": true
    }
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "baseId": "<string>",
  "createdTime": "<string>",
  "tables": [
    {
      "authorityMatrixRoleId": "<string>",
      "tableId": "<string>",
      "createdTime": "<string>",
      "disabledActions": [
        "<string>"
      ],
      "enabledViewIds": [
        "<string>"
      ],
      "fieldRecordPermission": [
        {
          "fieldId": "<string>",
          "disabledActions": [
            "<string>"
          ]
        }
      ],
      "recordFilter": {},
      "enabledTime": "<string>"
    }
  ],
  "description": "<string>",
  "enabledTime": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

baseId
string
required

Body

application/json
name
string
required
description
string
enabled
boolean
tables
object[]

Response

200 - application/json

Successful response

id
string
required
name
string
required
baseId
string
required
createdTime
string
required
tables
object[]
required
description
string
enabledTime
string