ApiKeys
Post v2workspaces securityapikeys
AI Builder Endpoints
- API Gateway
- permissions
- Prisme.ai Events
- Prisme.ai Runtime
- Prisme.ai Workspaces
- Secrets
- ApiKeys
ApiKeys
Post v2workspaces securityapikeys
Create an api key
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
}
Path Parameters
Workspace id
Body
application/json
The actions that we want to allow/deny
Available options:
manage
, create
, read
, update
, delete
, manage_permissions
, manage_security
, manage_repositories
, read_app_dsul
, get_usage
, aggregate_search
, execute
, test
Available options:
apps
, pages
, files
, events
, workspaces
, automations
, secrets
, roles
, all
The roles to which this rule is restricted
If true, will forbid instead of allow
Matching conditions written using a subset of MongoDB queries. This rule will take effect only if conditions match (or are empty). See https://casl.js.org/v5/en/guide/conditions-in-depth
Response
200
application/json
Success Response
The actions that we want to allow/deny
Available options:
manage
, create
, read
, update
, delete
, manage_permissions
, manage_security
, manage_repositories
, read_app_dsul
, get_usage
, aggregate_search
, execute
, test
Available options:
apps
, pages
, files
, events
, workspaces
, automations
, secrets
, roles
, all
The roles to which this rule is restricted
If true, will forbid instead of allow
Matching conditions written using a subset of MongoDB queries. This rule will take effect only if conditions match (or are empty). See https://casl.js.org/v5/en/guide/conditions-in-depth
Was this page helpful?
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
}