Skip to content

Commit 736a31d

Browse files
committed
Update OpenAPI spec codegen-sh/cloud@2068a07
1 parent 2068a07 commit 736a31d

File tree

1 file changed

+262
-0
lines changed

1 file changed

+262
-0
lines changed

docs/api-reference/openapi3.json

Lines changed: 262 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,179 @@
10431043
}
10441044
}
10451045
},
1046+
"/v1/organizations/{org_id}/prs/{pr_id}": {
1047+
"patch": {
1048+
"tags": [
1049+
"pull-requests",
1050+
"pull-requests",
1051+
"pull-requests"
1052+
],
1053+
"summary": "Edit Pull Request Simple",
1054+
"description": "Edit pull request properties (simple endpoint).\n\nUpdate the state of a pull request (open, closed, draft, ready_for_review).\nThis endpoint only requires the PR ID, not the repo ID.\nThe requesting user must have write permissions to the repository.\n\nRate limit: 30 requests per minute.",
1055+
"operationId": "edit_pull_request_simple_v1_organizations__org_id__prs__pr_id__patch",
1056+
"parameters": [
1057+
{
1058+
"name": "org_id",
1059+
"in": "path",
1060+
"required": true,
1061+
"schema": {
1062+
"type": "integer",
1063+
"title": "Org Id"
1064+
}
1065+
},
1066+
{
1067+
"name": "pr_id",
1068+
"in": "path",
1069+
"required": true,
1070+
"schema": {
1071+
"type": "integer",
1072+
"title": "Pr Id"
1073+
}
1074+
},
1075+
{
1076+
"name": "authorization",
1077+
"in": "header",
1078+
"required": false,
1079+
"schema": {
1080+
"title": "Authorization"
1081+
}
1082+
}
1083+
],
1084+
"requestBody": {
1085+
"required": true,
1086+
"content": {
1087+
"application/json": {
1088+
"schema": {
1089+
"$ref": "#/components/schemas/EditPRInput"
1090+
}
1091+
}
1092+
}
1093+
},
1094+
"responses": {
1095+
"200": {
1096+
"description": "Successful Response",
1097+
"content": {
1098+
"application/json": {
1099+
"schema": {
1100+
"$ref": "#/components/schemas/EditPRResponse"
1101+
}
1102+
}
1103+
}
1104+
},
1105+
"429": {
1106+
"content": {
1107+
"application/json": {
1108+
"schema": {
1109+
"$ref": "#/components/schemas/APIRateLimitErrorResponse"
1110+
}
1111+
}
1112+
},
1113+
"description": "Too Many Requests"
1114+
},
1115+
"422": {
1116+
"description": "Validation Error",
1117+
"content": {
1118+
"application/json": {
1119+
"schema": {
1120+
"$ref": "#/components/schemas/HTTPValidationError"
1121+
}
1122+
}
1123+
}
1124+
}
1125+
}
1126+
}
1127+
},
1128+
"/v1/organizations/{org_id}/repos/{repo_id}/prs/{pr_id}": {
1129+
"patch": {
1130+
"tags": [
1131+
"pull-requests",
1132+
"pull-requests",
1133+
"pull-requests"
1134+
],
1135+
"summary": "Edit Pull Request",
1136+
"description": "Edit pull request properties (RESTful endpoint).\n\nUpdate the state of a pull request (open, closed, draft, ready_for_review).\nThis endpoint requires both repo_id and pr_id for RESTful compliance.\nThe requesting user must have write permissions to the repository.\n\nRate limit: 30 requests per minute.",
1137+
"operationId": "edit_pull_request_v1_organizations__org_id__repos__repo_id__prs__pr_id__patch",
1138+
"parameters": [
1139+
{
1140+
"name": "org_id",
1141+
"in": "path",
1142+
"required": true,
1143+
"schema": {
1144+
"type": "integer",
1145+
"title": "Org Id"
1146+
}
1147+
},
1148+
{
1149+
"name": "repo_id",
1150+
"in": "path",
1151+
"required": true,
1152+
"schema": {
1153+
"type": "integer",
1154+
"title": "Repo Id"
1155+
}
1156+
},
1157+
{
1158+
"name": "pr_id",
1159+
"in": "path",
1160+
"required": true,
1161+
"schema": {
1162+
"type": "integer",
1163+
"title": "Pr Id"
1164+
}
1165+
},
1166+
{
1167+
"name": "authorization",
1168+
"in": "header",
1169+
"required": false,
1170+
"schema": {
1171+
"title": "Authorization"
1172+
}
1173+
}
1174+
],
1175+
"requestBody": {
1176+
"required": true,
1177+
"content": {
1178+
"application/json": {
1179+
"schema": {
1180+
"$ref": "#/components/schemas/EditPRInput"
1181+
}
1182+
}
1183+
}
1184+
},
1185+
"responses": {
1186+
"200": {
1187+
"description": "Successful Response",
1188+
"content": {
1189+
"application/json": {
1190+
"schema": {
1191+
"$ref": "#/components/schemas/EditPRResponse"
1192+
}
1193+
}
1194+
}
1195+
},
1196+
"429": {
1197+
"content": {
1198+
"application/json": {
1199+
"schema": {
1200+
"$ref": "#/components/schemas/APIRateLimitErrorResponse"
1201+
}
1202+
}
1203+
},
1204+
"description": "Too Many Requests"
1205+
},
1206+
"422": {
1207+
"description": "Validation Error",
1208+
"content": {
1209+
"application/json": {
1210+
"schema": {
1211+
"$ref": "#/components/schemas/HTTPValidationError"
1212+
}
1213+
}
1214+
}
1215+
}
1216+
}
1217+
}
1218+
},
10461219
"/v1/organizations/{org_id}/integrations": {
10471220
"get": {
10481221
"tags": [
@@ -1972,6 +2145,95 @@
19722145
],
19732146
"title": "CreateAgentRunInput"
19742147
},
2148+
"EditPRInput": {
2149+
"properties": {
2150+
"state": {
2151+
"type": "string",
2152+
"enum": [
2153+
"open",
2154+
"closed",
2155+
"draft",
2156+
"ready_for_review"
2157+
],
2158+
"title": "State"
2159+
}
2160+
},
2161+
"type": "object",
2162+
"required": [
2163+
"state"
2164+
],
2165+
"title": "EditPRInput",
2166+
"description": "Input for editing PR properties."
2167+
},
2168+
"EditPRResponse": {
2169+
"properties": {
2170+
"success": {
2171+
"type": "boolean",
2172+
"title": "Success"
2173+
},
2174+
"url": {
2175+
"anyOf": [
2176+
{
2177+
"type": "string"
2178+
},
2179+
{
2180+
"type": "null"
2181+
}
2182+
],
2183+
"title": "Url"
2184+
},
2185+
"number": {
2186+
"anyOf": [
2187+
{
2188+
"type": "integer"
2189+
},
2190+
{
2191+
"type": "null"
2192+
}
2193+
],
2194+
"title": "Number"
2195+
},
2196+
"title": {
2197+
"anyOf": [
2198+
{
2199+
"type": "string"
2200+
},
2201+
{
2202+
"type": "null"
2203+
}
2204+
],
2205+
"title": "Title"
2206+
},
2207+
"state": {
2208+
"anyOf": [
2209+
{
2210+
"type": "string"
2211+
},
2212+
{
2213+
"type": "null"
2214+
}
2215+
],
2216+
"title": "State"
2217+
},
2218+
"error": {
2219+
"anyOf": [
2220+
{
2221+
"type": "string"
2222+
},
2223+
{
2224+
"type": "null"
2225+
}
2226+
],
2227+
"title": "Error"
2228+
}
2229+
},
2230+
"type": "object",
2231+
"required": [
2232+
"success"
2233+
],
2234+
"title": "EditPRResponse",
2235+
"description": "Response from editing PR properties."
2236+
},
19752237
"GenerateSetupCommandsInput": {
19762238
"properties": {
19772239
"repo_id": {

0 commit comments

Comments
 (0)