| title | Caps API | ||||
|---|---|---|---|---|---|
| description | Caps API Reference | ||||
| lead | Caps API Reference | ||||
| date | 2024-03-05 11:30:29 UTC | ||||
| lastmod | 2024-03-05 11:30:29 UTC | ||||
| draft | false | ||||
| images | |||||
| menu |
|
||||
| weight | 999 | ||||
| toc | true |
{{< note >}} Note: This page is primarily intended for developers who will be writing applications that will use DataTrails for provenance. If you are looking for a simple way to test our API you might prefer our Postman collection, the YAML runner or the Developers section of the web UI.
Additional YAML examples can be found in the articles in the Overview section. {{< /note >}}
The Caps API enables you to check the resource limits remaining under your Tenancy subscription.
Retrieve the number of remaining Access Policies:
curl -g -v -X GET \
-H "@$HOME/.datatrails/bearer-token.txt" \
"https://app.datatrails.ai/archivist/v1/caps?service=access_policies"The response is:
{
"caps": [
{
"resource_type": "AccessPolicies",
"resource_remaining": "6"
}
]
}These are the available values for "?service=":
- access_policies
- applications
- assets
- blobs
- locations
- members
{{< openapi url="https://raw.githubusercontent.com/datatrails/datatrails-openapi/main/doc/capsv1.swagger.json" >}}