Suggestions
Context-aware suggestions for policy design and configuration.
Get next and nested suggested block types. Only users with the Standard Registry role are allowed to make the request.
Successful operation. Suggested next and nested block types respectively.
Unauthorized request.
Forbidden
Internal server error.
POST /api/v1/suggestions HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 39
{
"blockType": "interfaceContainerBlock"
}{
"next": "string",
"nested": "string"
}Get suggestions config. Only users with the Standard Registry role are allowed to make the request.
Successful operation. Response suggestions config.
Unauthorized request.
Forbidden
Internal server error.
GET /api/v1/suggestions/config HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "69aeb71ef8c5b278e3bab4e5",
"type": "string",
"index": 0
}
]
}Set suggestions config. Only users with the Standard Registry role are allowed to make the request.
Successful operation. Returns the updated suggestions config.
Unauthorized request.
Forbidden
Internal server error.
POST /api/v1/suggestions/config HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"items": [
{
"id": "69aeb71ef8c5b278e3bab4e5",
"type": "block",
"index": 0
}
]
}{
"items": [
{
"id": "69aeb71ef8c5b278e3bab4e5",
"type": "string",
"index": 0
}
]
}Last updated
Was this helpful?