feat: v2 managed orgs filters (#22420)

* fix: don't allow managed orgs with same slug

* feat: filter managed orgs by slug or metadata

* test

* fix: tests
This commit is contained in:
Lauris Skraucis
2025-07-14 16:37:15 +02:00
committed by GitHub
parent 13739dabd8
commit 96a659ae5a
8 changed files with 285 additions and 21 deletions
+30
View File
@@ -9425,6 +9425,36 @@
"default": 0,
"type": "number"
}
},
{
"name": "slug",
"required": false,
"in": "query",
"example": "organization-slug",
"description": "The slug of the managed organization",
"schema": {
"type": "string"
}
},
{
"name": "metadataKey",
"required": false,
"in": "query",
"example": "metadata-key",
"description": "The key of the metadata - it is case sensitive so provide exactly as stored. If you provide it then you must also provide metadataValue",
"schema": {
"type": "string"
}
},
{
"name": "metadataValue",
"required": false,
"in": "query",
"example": "metadata-value",
"description": "The value of the metadata - it is case sensitive so provide exactly as stored. If you provide it then you must also provide metadataKey",
"schema": {
"type": "string"
}
}
],
"responses": {