|
568 | 568 | }, |
569 | 569 | "ProjectStatus": { |
570 | 570 | "properties": { |
| 571 | + "labels": { |
| 572 | + "additionalProperties": { |
| 573 | + "type": "string" |
| 574 | + }, |
| 575 | + "description": "Project labels", |
| 576 | + "example": { |
| 577 | + "contact": "Bob", |
| 578 | + "environment": "development", |
| 579 | + "owner": "Alice" |
| 580 | + }, |
| 581 | + "title": "Labels", |
| 582 | + "type": "object" |
| 583 | + }, |
571 | 584 | "project": { |
572 | 585 | "description": "Project ID", |
573 | 586 | "example": "cd5e788d-5b7b-4ab9-a20d-e790205df10b", |
|
654 | 667 | "title": "DefaultRetentionRequest", |
655 | 668 | "type": "object" |
656 | 669 | }, |
| 670 | + "UpdateServicePayload": { |
| 671 | + "properties": { |
| 672 | + "labels": { |
| 673 | + "additionalProperties": { |
| 674 | + "type": "string" |
| 675 | + }, |
| 676 | + "description": "Project labels", |
| 677 | + "example": { |
| 678 | + "contact": "Bob", |
| 679 | + "environment": "development", |
| 680 | + "owner": "Alice" |
| 681 | + }, |
| 682 | + "title": "Labels", |
| 683 | + "type": "object" |
| 684 | + } |
| 685 | + }, |
| 686 | + "required": [ |
| 687 | + "labels" |
| 688 | + ], |
| 689 | + "title": "PutProjectRequest", |
| 690 | + "type": "object" |
| 691 | + }, |
657 | 692 | "ValidationError": { |
658 | 693 | "properties": { |
659 | 694 | "loc": { |
|
1061 | 1096 | "resource-id-type": "dynamic", |
1062 | 1097 | "resource-type": "project" |
1063 | 1098 | } |
| 1099 | + }, |
| 1100 | + "put": { |
| 1101 | + "description": "Update project details.", |
| 1102 | + "operationId": "UpdateService", |
| 1103 | + "parameters": [ |
| 1104 | + { |
| 1105 | + "description": "STACKIT project ID", |
| 1106 | + "in": "path", |
| 1107 | + "name": "projectId", |
| 1108 | + "required": true, |
| 1109 | + "schema": { |
| 1110 | + "description": "STACKIT project ID", |
| 1111 | + "example": "cd5e788d-5b7b-4ab9-a20d-e790205df10b", |
| 1112 | + "title": "Project ID", |
| 1113 | + "type": "string" |
| 1114 | + } |
| 1115 | + }, |
| 1116 | + { |
| 1117 | + "description": "STACKIT Region", |
| 1118 | + "in": "path", |
| 1119 | + "name": "region", |
| 1120 | + "required": true, |
| 1121 | + "schema": { |
| 1122 | + "description": "STACKIT Region", |
| 1123 | + "example": "eu01", |
| 1124 | + "title": "STACKIT Region", |
| 1125 | + "type": "string" |
| 1126 | + } |
| 1127 | + } |
| 1128 | + ], |
| 1129 | + "requestBody": { |
| 1130 | + "content": { |
| 1131 | + "application/json": { |
| 1132 | + "schema": { |
| 1133 | + "$ref": "#/components/schemas/UpdateServicePayload" |
| 1134 | + } |
| 1135 | + } |
| 1136 | + }, |
| 1137 | + "required": true |
| 1138 | + }, |
| 1139 | + "responses": { |
| 1140 | + "200": { |
| 1141 | + "content": { |
| 1142 | + "application/json": { |
| 1143 | + "schema": { |
| 1144 | + "$ref": "#/components/schemas/ProjectStatus" |
| 1145 | + } |
| 1146 | + } |
| 1147 | + }, |
| 1148 | + "description": "Successful Response" |
| 1149 | + }, |
| 1150 | + "401": { |
| 1151 | + "content": { |
| 1152 | + "application/json": { |
| 1153 | + "schema": { |
| 1154 | + "$ref": "#/components/schemas/ErrorMessage" |
| 1155 | + } |
| 1156 | + } |
| 1157 | + }, |
| 1158 | + "description": "Unauthorized" |
| 1159 | + }, |
| 1160 | + "403": { |
| 1161 | + "content": { |
| 1162 | + "application/json": { |
| 1163 | + "schema": { |
| 1164 | + "$ref": "#/components/schemas/ErrorMessage" |
| 1165 | + } |
| 1166 | + } |
| 1167 | + }, |
| 1168 | + "description": "Forbidden" |
| 1169 | + }, |
| 1170 | + "404": { |
| 1171 | + "content": { |
| 1172 | + "application/json": { |
| 1173 | + "schema": { |
| 1174 | + "$ref": "#/components/schemas/ErrorMessage" |
| 1175 | + } |
| 1176 | + } |
| 1177 | + }, |
| 1178 | + "description": "Not Found" |
| 1179 | + }, |
| 1180 | + "422": { |
| 1181 | + "content": { |
| 1182 | + "application/json": { |
| 1183 | + "schema": { |
| 1184 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1185 | + } |
| 1186 | + } |
| 1187 | + }, |
| 1188 | + "description": "Validation Error" |
| 1189 | + }, |
| 1190 | + "429": { |
| 1191 | + "content": { |
| 1192 | + "application/json": { |
| 1193 | + "schema": { |
| 1194 | + "$ref": "#/components/schemas/RateLimitError" |
| 1195 | + } |
| 1196 | + } |
| 1197 | + }, |
| 1198 | + "description": "Too Many Requests" |
| 1199 | + }, |
| 1200 | + "500": { |
| 1201 | + "content": { |
| 1202 | + "application/json": { |
| 1203 | + "schema": { |
| 1204 | + "$ref": "#/components/schemas/ErrorMessage" |
| 1205 | + } |
| 1206 | + } |
| 1207 | + }, |
| 1208 | + "description": "Internal Server Error" |
| 1209 | + } |
| 1210 | + }, |
| 1211 | + "summary": "Update Project", |
| 1212 | + "x-stackit-authorization": { |
| 1213 | + "actions": [ |
| 1214 | + "object-storage.service.update" |
| 1215 | + ], |
| 1216 | + "resource-id": "projectId", |
| 1217 | + "resource-id-type": "dynamic", |
| 1218 | + "resource-type": "project" |
| 1219 | + } |
1064 | 1220 | } |
1065 | 1221 | }, |
1066 | 1222 | "/v2/project/{projectId}/regions/{region}/access-key": { |
|
0 commit comments