POST
/
v2
/
workspaces
/
{workspaceId}
/
security
/
apikeys
curl --request POST \
  --url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/security/apikeys \
  --header 'Content-Type: application/json' \
  --header 'X-Prismeai-API-Key: <api-key>' \
  --data '{
  "name": "<string>",
  "rules": [
    {
      "role": [
        "<string>"
      ],
      "inverted": true,
      "reason": "<string>",
      "action": "manage",
      "subject": "apps",
      "conditions": {},
      "priority": 123
    }
  ]
}'
{
  "name": "<string>",
  "apiKey": "<string>",
  "subjectType": "<string>",
  "subjectId": "<string>",
  "rules": [
    {
      "role": [
        "<string>"
      ],
      "inverted": true,
      "reason": "<string>",
      "action": "manage",
      "subject": "apps",
      "conditions": {},
      "priority": 123
    }
  ],
  "disabled": true
}

Authorizations

X-Prismeai-API-Key
string
header
required
connect.sid
string
cookie
required

Path Parameters

workspaceId
string
required

Workspace id

Body

application/json
name
string
required
rules
object[]
required

Response

200
application/json
Success Response
apiKey
string
required
subjectType
string
required
subjectId
string
required
rules
object[]
required
name
string
disabled
boolean