Skip to main content
POST
/
v1
/
segments:computeSegmentSpaceCalendar
Computespacecalendar Segment
curl --request POST \
  --url https://flags.eu.confidence.dev/v1/segments:computeSegmentSpaceCalendar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "startDate": {
    "year": {},
    "month": {},
    "day": {}
  },
  "endDate": {
    "year": {},
    "month": {},
    "day": {}
  },
  "segments": [
    {
      "segment": "<string>",
      "startDate": {
        "year": {},
        "month": {},
        "day": {}
      },
      "endDate": {
        "year": {},
        "month": {},
        "day": {}
      }
    }
  ]
}
'
{
  "dailyAvailability": [
    {
      "date": {
        "year": {},
        "month": {},
        "day": {}
      },
      "availableSpace": {
        "value": "<string>"
      },
      "reclaimableSpace": [
        {}
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
startDate
object
required

The start date of the calendar range.

endDate
object
required

The end date of the calendar range.

segments
object[]

The segments with their prospective start and end dates.

Response

200 - application/json

OK

dailyAvailability
object[]

The space availability for each date in the requested range.