All notebooks
Create Client
Create Client and its AccessPolicy resources in Aidbox
4 cells · updated Jan 10, 2024
This is a read-only view. Responses shown were saved when the notebook was published —
open it in your own Aidbox to run the cells against live data.
1.Create Client Resource
REST
Send
Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /Client/peca
content-type: text/yaml
accept: text/yaml
secret: 'password'
grant_types: ['basic']
Response:
Body
Status:
201
secret: peca2024
grant_types: [basic]
id: peca
resourceType: Client
meta: {lastUpdated: '2024-01-04T18:41:57.547544Z', createdAt: '2024-01-04T18:41:57.547544Z', versionId: '565'}
2. Create AccessPolicy for Client
REST
Send
Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
PUT /AccessPolicy
content-type: text/yaml
accept: text/yaml
id: bulk-client-peca
link:
- id: peca
resourceType: Client
engine: allow
description: Root access to specific clients
Response:
Body
Status:
201
link:
- {id: peca, resourceType: Client}
engine: allow
description: Root access to specific clients
id: bulk-client-peca
resourceType: AccessPolicy
meta: {lastUpdated: '2024-01-10T20:36:34.945780Z', createdAt: '2024-01-10T20:36:34.945780Z', versionId: '615'}