cURL
curl --request POST \ --url https://api.eda.prisme.ai/v2/workspaces/{workspaceId}/security/apikeys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --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 }
Create an api key
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Workspace id
Success Response
The response is of type object.
object
Was this page helpful?