Policy
Authorizations
Body
nextTokenstringOptionalExample:
eyJza2lwIjoxMH0
pageSizeinteger · min: 1 · max: 100OptionalDefault:
10
Responses
200
Success
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
429
Too Many Requests
application/json
500
Internal Server Error
application/json
post
POST /v1/policy/search HTTP/1.1
Host: api.draftt.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"filter": {
"name": "End Of Life"
},
"sort": {
"createdAt": "asc"
},
"nextToken": "eyJza2lwIjoxMH0",
"pageSize": 10
}
{
"items": [
{
"id": 1,
"name": "End Of Life",
"description": "All components should be in the supported version",
"createdAt": "2024-05-06T11:25:51.513Z",
"updatedAt": "2024-09-09T19:35:31.898Z"
}
],
"nextToken": "text",
"totalCount": 12
}
Authorizations
Path parameters
idintegerRequired
Responses
200
Success
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
429
Too Many Requests
application/json
500
Internal Server Error
application/json
get
GET /v1/policy/{id} HTTP/1.1
Host: api.draftt.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": 1,
"name": "End Of Life",
"description": "All components should be in the supported version",
"createdAt": "2024-05-06T11:25:51.513Z",
"updatedAt": "2024-09-09T19:35:31.898Z"
}
],
"nextToken": null
}