Sign up and get started with Confidence today! Create your account
Sign up and get started with Confidence today! Create your account
Check if there is space available for a specific segment to be allocated. Used when a segment is coordinated before trying to allocate it.
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": [
{}
]
}Documentation Index
Fetch the complete documentation index at: https://confidence.spotify.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parameters to query the segment by
Show child attributes
OK
The amount of space available to the segment.
Show child attributes
The resource names of segments that coordinate with the current segment.
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.
Show child attributes
Was this page helpful?
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": [
{}
]
}