Skip to main content
POST
/
v1
/
segments
/
{segment}
:segmentAvailableSpace
Availablespace Segment
curl --request POST \
  --url https://flags.eu.confidence.dev/v1/segments/{segment}:segmentAvailableSpace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "queryParams": {
    "targeting": {
      "criteria": [
        {}
      ],
      "expression": {
        "ref": "<string>",
        "not": {},
        "and": {
          "operands": [
            {}
          ]
        },
        "or": {
          "operands": [
            {}
          ]
        }
      }
    },
    "exclusivityTags": [
      "<string>"
    ],
    "exclusiveTo": [
      "<string>"
    ]
  }
}
'
{
  "availableSpace": {
    "value": "<string>"
  },
  "relatedSegments": [
    "<string>"
  ],
  "reclaimableSpace": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

segment
string
required

Body

application/json
queryParams
object

Parameters to query the segment by

Response

200 - application/json

OK

availableSpace
object

The amount of space available to the segment.

The resource names of segments that coordinate with the current segment.

reclaimableSpace
object[]

The amount of space that would be returned if a specific segment is archived.

The key is the resource name of the segment. The value is the amount of space reclaimed.