Skip to main content
GET
/
relay
/
v1
/
policy-bindings
/
{bindingId}
/
history
Get version history for a policy binding
curl --request GET \
  --url https://api.swarmd.ai/relay/v1/policy-bindings/{bindingId}/history \
  --header 'Authorization: Bearer <token>'
{
  "totalPages": 123,
  "totalElements": 123,
  "numberOfElements": 123,
  "pageable": {
    "paged": true,
    "unpaged": true,
    "pageSize": 123,
    "offset": 123,
    "sort": {
      "unsorted": true,
      "empty": true,
      "sorted": true
    },
    "pageNumber": 123
  },
  "first": true,
  "last": true,
  "size": 123,
  "content": [
    {
      "bindingId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "version": "<string>",
      "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "groupName": "<string>",
      "groupVersion": "<string>",
      "bindingLevel": "TENANT",
      "agent": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "sourceAgent": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "sinkAgent": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>"
      },
      "priority": 123,
      "disabled": true,
      "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "validFrom": "2023-11-07T05:31:56Z",
      "validTo": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "changes": {
        "groupVersion": {
          "previousValue": "<string>",
          "currentValue": "<string>"
        },
        "priority": {
          "previousValue": 123,
          "currentValue": 123
        },
        "validFrom": {
          "previousValue": "2023-11-07T05:31:56Z",
          "currentValue": "2023-11-07T05:31:56Z"
        },
        "validTo": {
          "previousValue": "2023-11-07T05:31:56Z",
          "currentValue": "2023-11-07T05:31:56Z"
        }
      }
    }
  ],
  "number": 123,
  "sort": {
    "unsorted": true,
    "empty": true,
    "sorted": true
  },
  "empty": true
}

Authorizations

Authorization
string
header
required

JWT token (USER, AGENT, or SERVICE auth)

Path Parameters

bindingId
string<uuid>
required

Query Parameters

pageable
object
required

Response

200 - application/json

OK

totalPages
integer<int32>
totalElements
integer<int64>
numberOfElements
integer<int32>
pageable
object
first
boolean
last
boolean
size
integer<int32>
content
object[]
number
integer<int32>
sort
object
empty
boolean