From fd5e968bc1dec838f66a1c060aefd69ec134298f Mon Sep 17 00:00:00 2001 From: Will Browne Date: Thu, 10 Feb 2022 15:23:08 +0100 Subject: [PATCH] test (#45240) --- public/api-merged.json | 807 +++++++++++++++++++++++++++++++++++++---- public/api-spec.json | 39 +- 2 files changed, 767 insertions(+), 79 deletions(-) diff --git a/public/api-merged.json b/public/api-merged.json index 1fd92a6d730..c136ca4ffb1 100644 --- a/public/api-merged.json +++ b/public/api-merged.json @@ -506,14 +506,6 @@ "summary": "Add a user role assignment.", "operationId": "addUserRole", "parameters": [ - { - "type": "integer", - "format": "int64", - "x-go-name": "UserID", - "name": "user_id", - "in": "path", - "required": true - }, { "x-go-name": "Body", "name": "body", @@ -522,6 +514,14 @@ "schema": { "$ref": "#/definitions/AddUserRoleCommand" } + }, + { + "type": "integer", + "format": "int64", + "x-go-name": "UserID", + "name": "user_id", + "in": "path", + "required": true } ], "responses": { @@ -547,14 +547,6 @@ "summary": "Remove a user role assignment.", "operationId": "removeUserRole", "parameters": [ - { - "type": "integer", - "format": "int64", - "x-go-name": "UserID", - "name": "user_id", - "in": "path", - "required": true - }, { "type": "string", "x-go-name": "RoleUID", @@ -568,6 +560,14 @@ "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to remove assignment.", "name": "global", "in": "query" + }, + { + "type": "integer", + "format": "int64", + "x-go-name": "UserID", + "name": "user_id", + "in": "path", + "required": true } ], "responses": { @@ -1793,6 +1793,430 @@ } } }, + "/alertmanager/grafana/api/v2/alerts": { + "get": { + "description": "get alertmanager alerts", + "tags": ["alertmanager"], + "operationId": "RouteGetGrafanaAMAlerts", + "parameters": [ + { + "type": "boolean", + "default": true, + "x-go-name": "Active", + "description": "Show active alerts", + "name": "active", + "in": "query" + }, + { + "type": "boolean", + "default": true, + "x-go-name": "Silenced", + "description": "Show silenced alerts", + "name": "silenced", + "in": "query" + }, + { + "type": "boolean", + "default": true, + "x-go-name": "Inhibited", + "description": "Show inhibited alerts", + "name": "inhibited", + "in": "query" + }, + { + "type": "array", + "items": { + "type": "string" + }, + "x-go-name": "Matchers", + "description": "A list of matchers to filter alerts by", + "name": "filter", + "in": "query" + }, + { + "type": "string", + "x-go-name": "Receivers", + "description": "A regex matching receivers to filter alerts by", + "name": "receiver", + "in": "query" + } + ], + "responses": { + "200": { + "description": "gettableAlerts", + "schema": { + "$ref": "#/definitions/gettableAlerts" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + }, + "post": { + "description": "create alertmanager alerts", + "tags": ["alertmanager"], + "operationId": "RoutePostGrafanaAMAlerts", + "parameters": [ + { + "name": "PostableAlerts", + "in": "body", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/postableAlert" + } + } + } + ], + "responses": { + "200": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + } + }, + "/alertmanager/grafana/api/v2/alerts/groups": { + "get": { + "description": "get alertmanager alerts", + "tags": ["alertmanager"], + "operationId": "RouteGetGrafanaAMAlertGroups", + "parameters": [ + { + "type": "boolean", + "default": true, + "x-go-name": "Active", + "description": "Show active alerts", + "name": "active", + "in": "query" + }, + { + "type": "boolean", + "default": true, + "x-go-name": "Silenced", + "description": "Show silenced alerts", + "name": "silenced", + "in": "query" + }, + { + "type": "boolean", + "default": true, + "x-go-name": "Inhibited", + "description": "Show inhibited alerts", + "name": "inhibited", + "in": "query" + }, + { + "type": "array", + "items": { + "type": "string" + }, + "x-go-name": "Matchers", + "description": "A list of matchers to filter alerts by", + "name": "filter", + "in": "query" + }, + { + "type": "string", + "x-go-name": "Receivers", + "description": "A regex matching receivers to filter alerts by", + "name": "receiver", + "in": "query" + } + ], + "responses": { + "200": { + "description": "alertGroups", + "schema": { + "$ref": "#/definitions/alertGroups" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + } + }, + "/alertmanager/grafana/api/v2/silence/{SilenceId}": { + "get": { + "description": "get silence", + "tags": ["alertmanager"], + "operationId": "RouteGetGrafanaSilence", + "parameters": [ + { + "type": "string", + "name": "SilenceId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "gettableSilence", + "schema": { + "$ref": "#/definitions/gettableSilence" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + }, + "delete": { + "description": "delete silence", + "tags": ["alertmanager"], + "operationId": "RouteDeleteGrafanaSilence", + "parameters": [ + { + "type": "string", + "name": "SilenceId", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + } + }, + "/alertmanager/grafana/api/v2/silences": { + "get": { + "description": "get silences", + "tags": ["alertmanager"], + "operationId": "RouteGetGrafanaSilences", + "parameters": [ + { + "type": "array", + "items": { + "type": "string" + }, + "x-go-name": "Filter", + "name": "filter", + "in": "query" + } + ], + "responses": { + "200": { + "description": "gettableSilences", + "schema": { + "$ref": "#/definitions/gettableSilences" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + }, + "post": { + "description": "create silence", + "tags": ["alertmanager"], + "operationId": "RouteCreateGrafanaSilence", + "parameters": [ + { + "name": "Silence", + "in": "body", + "schema": { + "$ref": "#/definitions/postableSilence" + } + } + ], + "responses": { + "201": { + "description": "gettableSilence", + "schema": { + "$ref": "#/definitions/gettableSilence" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + } + }, + "/alertmanager/grafana/api/v2/status": { + "get": { + "description": "get alertmanager status and configuration", + "tags": ["alertmanager"], + "operationId": "RouteGetGrafanaAMStatus", + "responses": { + "200": { + "description": "GettableStatus", + "schema": { + "$ref": "#/definitions/GettableStatus" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + } + }, + "/alertmanager/grafana/config/api/v1/alerts": { + "get": { + "description": "gets an Alerting config", + "tags": ["alertmanager"], + "operationId": "RouteGetGrafanaAlertingConfig", + "responses": { + "200": { + "description": "GettableUserConfig", + "schema": { + "$ref": "#/definitions/GettableUserConfig" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + }, + "post": { + "description": "sets an Alerting config", + "tags": ["alertmanager"], + "operationId": "RoutePostGrafanaAlertingConfig", + "parameters": [ + { + "name": "Body", + "in": "body", + "schema": { + "$ref": "#/definitions/PostableUserConfig" + } + } + ], + "responses": { + "201": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + }, + "delete": { + "description": "deletes the Alerting config for a tenant", + "tags": ["alertmanager"], + "operationId": "RouteDeleteGrafanaAlertingConfig", + "responses": { + "200": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + } + } + } + }, + "/alertmanager/grafana/config/api/v1/receivers/test": { + "post": { + "tags": ["alertmanager"], + "summary": "Test Grafana managed receivers without saving them.", + "operationId": "RoutePostTestGrafanaReceivers", + "parameters": [ + { + "name": "Body", + "in": "body", + "schema": { + "$ref": "#/definitions/TestReceiversConfigBodyParams" + } + } + ], + "responses": { + "200": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + }, + "207": { + "description": "MultiStatus", + "schema": { + "$ref": "#/definitions/MultiStatus" + } + }, + "400": { + "description": "ValidationError", + "schema": { + "$ref": "#/definitions/ValidationError" + } + }, + "403": { + "description": "PermissionDenied", + "schema": { + "$ref": "#/definitions/PermissionDenied" + } + }, + "404": { + "description": "AlertManagerNotFound", + "schema": { + "$ref": "#/definitions/AlertManagerNotFound" + } + }, + "408": { + "description": "Failure", + "schema": { + "$ref": "#/definitions/Failure" + } + }, + "409": { + "description": "AlertManagerNotReady", + "schema": { + "$ref": "#/definitions/AlertManagerNotReady" + } + } + } + } + }, "/alertmanager/{Recipient}/api/v2/alerts": { "get": { "description": "get alertmanager alerts", @@ -1841,8 +2265,9 @@ "in": "query" }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -1879,8 +2304,9 @@ } }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -1950,8 +2376,9 @@ "in": "query" }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -1986,8 +2413,9 @@ "required": true }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2020,8 +2448,9 @@ "required": true }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2059,8 +2488,9 @@ "in": "query" }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2094,8 +2524,9 @@ } }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2124,8 +2555,9 @@ "operationId": "RouteGetAMStatus", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2154,8 +2586,9 @@ "operationId": "RouteGetAlertingConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2189,8 +2622,9 @@ } }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2217,8 +2651,9 @@ "operationId": "RouteDeleteAlertingConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -2254,8 +2689,9 @@ } }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -5887,6 +6323,49 @@ } } }, + "/prometheus/grafana/api/v1/alerts": { + "get": { + "description": "gets the current alerts", + "tags": ["prometheus"], + "operationId": "RouteGetGrafanaAlertStatuses", + "responses": { + "200": { + "description": "AlertResponse", + "schema": { + "$ref": "#/definitions/AlertResponse" + } + } + } + } + }, + "/prometheus/grafana/api/v1/rules": { + "get": { + "description": "gets the evaluation statuses of all rules", + "tags": ["prometheus"], + "operationId": "RouteGetGrafanaRuleStatuses", + "parameters": [ + { + "type": "string", + "name": "DashboardUID", + "in": "query" + }, + { + "type": "integer", + "format": "int64", + "name": "PanelID", + "in": "query" + } + ], + "responses": { + "200": { + "description": "RuleResponse", + "schema": { + "$ref": "#/definitions/RuleResponse" + } + } + } + } + }, "/prometheus/{Recipient}/api/v1/alerts": { "get": { "description": "gets the current alerts", @@ -5894,8 +6373,9 @@ "operationId": "RouteGetAlertStatuses", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -5929,8 +6409,9 @@ "in": "query" }, { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -6534,6 +7015,166 @@ } } }, + "/ruler/grafana/api/v1/rules": { + "get": { + "description": "List rule groups", + "produces": ["application/json"], + "tags": ["ruler"], + "operationId": "RouteGetGrafanaRulesConfig", + "parameters": [ + { + "type": "string", + "name": "DashboardUID", + "in": "query" + }, + { + "type": "integer", + "format": "int64", + "name": "PanelID", + "in": "query" + } + ], + "responses": { + "202": { + "description": "NamespaceConfigResponse", + "schema": { + "$ref": "#/definitions/NamespaceConfigResponse" + } + } + } + } + }, + "/ruler/grafana/api/v1/rules/{Namespace}": { + "get": { + "description": "Get rule groups by namespace", + "produces": ["application/json"], + "tags": ["ruler"], + "operationId": "RouteGetNamespaceGrafanaRulesConfig", + "parameters": [ + { + "type": "string", + "name": "Namespace", + "in": "path", + "required": true + } + ], + "responses": { + "202": { + "description": "NamespaceConfigResponse", + "schema": { + "$ref": "#/definitions/NamespaceConfigResponse" + } + } + } + }, + "post": { + "description": "Creates or updates a rule group", + "consumes": ["application/json", "application/yaml"], + "tags": ["ruler"], + "operationId": "RoutePostNameGrafanaRulesConfig", + "parameters": [ + { + "type": "string", + "name": "Namespace", + "in": "path", + "required": true + }, + { + "name": "Body", + "in": "body", + "schema": { + "$ref": "#/definitions/PostableRuleGroupConfig" + } + } + ], + "responses": { + "202": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + } + } + }, + "delete": { + "description": "Delete namespace", + "tags": ["ruler"], + "operationId": "RouteDeleteNamespaceGrafanaRulesConfig", + "parameters": [ + { + "type": "string", + "name": "Namespace", + "in": "path", + "required": true + } + ], + "responses": { + "202": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + } + } + } + }, + "/ruler/grafana/api/v1/rules/{Namespace}/{Groupname}": { + "get": { + "description": "Get rule group", + "produces": ["application/json"], + "tags": ["ruler"], + "operationId": "RouteGetGrafanaRuleGroupConfig", + "parameters": [ + { + "type": "string", + "name": "Namespace", + "in": "path", + "required": true + }, + { + "type": "string", + "name": "Groupname", + "in": "path", + "required": true + } + ], + "responses": { + "202": { + "description": "RuleGroupConfigResponse", + "schema": { + "$ref": "#/definitions/RuleGroupConfigResponse" + } + } + } + }, + "delete": { + "description": "Delete rule group", + "tags": ["ruler"], + "operationId": "RouteDeleteGrafanaRuleGroupConfig", + "parameters": [ + { + "type": "string", + "name": "Namespace", + "in": "path", + "required": true + }, + { + "type": "string", + "name": "Groupname", + "in": "path", + "required": true + } + ], + "responses": { + "202": { + "description": "Ack", + "schema": { + "$ref": "#/definitions/Ack" + } + } + } + } + }, "/ruler/{Recipient}/api/v1/rules": { "get": { "description": "List rule groups", @@ -6542,8 +7183,9 @@ "operationId": "RouteGetRulesConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -6578,8 +7220,9 @@ "operationId": "RouteGetNamespaceRulesConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -6607,8 +7250,9 @@ "operationId": "RoutePostNameRulesConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -6642,8 +7286,9 @@ "operationId": "RouteDeleteNamespaceRulesConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -6673,8 +7318,9 @@ "operationId": "RouteGetRulegGroupConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -6707,8 +7353,9 @@ "operationId": "RouteDeleteRuleGroupConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -8441,17 +9088,44 @@ } } }, + "/v1/rule/test/grafana": { + "post": { + "description": "Test a rule against Grafana ruler", + "consumes": ["application/json"], + "produces": ["application/json"], + "tags": ["testing"], + "operationId": "RouteTestRuleGrafanaConfig", + "parameters": [ + { + "name": "Body", + "in": "body", + "schema": { + "$ref": "#/definitions/TestRulePayload" + } + } + ], + "responses": { + "200": { + "description": "TestRuleResponse", + "schema": { + "$ref": "#/definitions/TestRuleResponse" + } + } + } + } + }, "/v1/rule/test/{Recipient}": { "post": { - "description": "Test rule", + "description": "Test a rule against external data source ruler", "consumes": ["application/json"], "produces": ["application/json"], "tags": ["testing"], "operationId": "RouteTestRuleConfig", "parameters": [ { - "type": "string", - "description": "Recipient should be \"grafana\" for requests to be handled by grafana\nand the numeric datasource id for requests to be forwarded to a datasource", + "type": "integer", + "format": "int64", + "description": "Recipient should be the numeric datasource id", "name": "Recipient", "in": "path", "required": true @@ -11394,8 +12068,8 @@ }, "exec_err_state": { "type": "string", - "enum": ["Alerting"], - "x-go-enum-desc": "Alerting AlertingErrState", + "enum": ["Alerting", "Error"], + "x-go-enum-desc": "Alerting AlertingErrState\nError ErrorErrState", "x-go-name": "ExecErrState" }, "id": { @@ -13232,8 +13906,8 @@ }, "exec_err_state": { "type": "string", - "enum": ["Alerting"], - "x-go-enum-desc": "Alerting AlertingErrState", + "enum": ["Alerting", "Error"], + "x-go-enum-desc": "Alerting AlertingErrState\nError ErrorErrState", "x-go-name": "ExecErrState" }, "no_data_state": { @@ -14492,6 +15166,13 @@ "TeamDTO": { "type": "object", "properties": { + "accessControl": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "x-go-name": "AccessControl" + }, "avatarUrl": { "type": "string", "x-go-name": "AvatarUrl" diff --git a/public/api-spec.json b/public/api-spec.json index 0952bb16b08..955bbce2527 100644 --- a/public/api-spec.json +++ b/public/api-spec.json @@ -506,14 +506,6 @@ "summary": "Add a user role assignment.", "operationId": "addUserRole", "parameters": [ - { - "type": "integer", - "format": "int64", - "x-go-name": "UserID", - "name": "user_id", - "in": "path", - "required": true - }, { "x-go-name": "Body", "name": "body", @@ -522,6 +514,14 @@ "schema": { "$ref": "#/definitions/AddUserRoleCommand" } + }, + { + "type": "integer", + "format": "int64", + "x-go-name": "UserID", + "name": "user_id", + "in": "path", + "required": true } ], "responses": { @@ -547,14 +547,6 @@ "summary": "Remove a user role assignment.", "operationId": "removeUserRole", "parameters": [ - { - "type": "integer", - "format": "int64", - "x-go-name": "UserID", - "name": "user_id", - "in": "path", - "required": true - }, { "type": "string", "x-go-name": "RoleUID", @@ -568,6 +560,14 @@ "description": "A flag indicating if the assignment is global or not. If set to false, the default org ID of the authenticated user will be used from the request to remove assignment.", "name": "global", "in": "query" + }, + { + "type": "integer", + "format": "int64", + "x-go-name": "UserID", + "name": "user_id", + "in": "path", + "required": true } ], "responses": { @@ -11210,6 +11210,13 @@ "TeamDTO": { "type": "object", "properties": { + "accessControl": { + "type": "object", + "additionalProperties": { + "type": "boolean" + }, + "x-go-name": "AccessControl" + }, "avatarUrl": { "type": "string", "x-go-name": "AvatarUrl"