api.json 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554
  1. {
  2. "openapi": "3.0.0",
  3. "info": {
  4. "title": "Organizr API",
  5. "description": "Organizr - Accept no others",
  6. "version": "2.0"
  7. },
  8. "servers": [
  9. {
  10. "url": "http://docker:8000/",
  11. "description": "This Organizr Install"
  12. },
  13. {
  14. "url": "https://demo.organizr.app",
  15. "description": "Organizr Demo API"
  16. },
  17. {
  18. "url": "{schema}://{hostPath}",
  19. "description": "Custom Organizr API",
  20. "variables": {
  21. "schema": {
  22. "enum": [
  23. "https",
  24. "http"
  25. ],
  26. "default": "http"
  27. },
  28. "hostPath": {
  29. "default": "localhost",
  30. "description": "Your Organizr URL"
  31. }
  32. }
  33. }
  34. ],
  35. "paths": {
  36. "/api/v2/plugins/chat/settings": {
  37. "get": {
  38. "tags": [
  39. "plugins-chat"
  40. ],
  41. "summary": "Get settings",
  42. "responses": {
  43. "200": {
  44. "description": "Success",
  45. "content": {
  46. "application/json": {
  47. "schema": {
  48. "$ref": "#/components/schemas/pluginSettingsPage"
  49. }
  50. }
  51. }
  52. },
  53. "401": {
  54. "description": "Unauthorized"
  55. }
  56. },
  57. "security": [
  58. {
  59. "api_key": []
  60. }
  61. ]
  62. }
  63. },
  64. "/api/v2/plugins/chat/message": {
  65. "get": {
  66. "tags": [
  67. "plugins-chat"
  68. ],
  69. "summary": "Get all messages",
  70. "responses": {
  71. "200": {
  72. "description": "Success",
  73. "content": {
  74. "application/json": {
  75. "schema": {
  76. "$ref": "#/components/schemas/getChatMessages"
  77. }
  78. }
  79. }
  80. },
  81. "401": {
  82. "description": "Unauthorized"
  83. }
  84. },
  85. "security": [
  86. {
  87. "api_key": []
  88. }
  89. ]
  90. },
  91. "post": {
  92. "tags": [
  93. "plugins-chat"
  94. ],
  95. "summary": "Submit a message",
  96. "requestBody": {
  97. "description": "Success",
  98. "required": true,
  99. "content": {
  100. "application/x-www-form-urlencoded": {
  101. "schema": {
  102. "properties": {
  103. "message": {
  104. "description": "message to send",
  105. "type": "string"
  106. }
  107. },
  108. "type": "object"
  109. }
  110. },
  111. "application/json": {
  112. "schema": {
  113. "$ref": "#/components/schemas/submitMessageData"
  114. }
  115. }
  116. }
  117. },
  118. "responses": {
  119. "200": {
  120. "description": "Success",
  121. "content": {
  122. "application/json": {
  123. "schema": {
  124. "$ref": "#/components/schemas/submitMessage"
  125. }
  126. }
  127. }
  128. },
  129. "401": {
  130. "description": "Unauthorized"
  131. }
  132. },
  133. "security": [
  134. {
  135. "api_key": []
  136. }
  137. ]
  138. }
  139. },
  140. "/api/v2/plugins/healthchecks/settings": {
  141. "get": {
  142. "tags": [
  143. "plugins-healthchecks"
  144. ],
  145. "summary": "Get settings",
  146. "responses": {
  147. "200": {
  148. "description": "Success",
  149. "content": {
  150. "application/json": {
  151. "schema": {
  152. "$ref": "#/components/schemas/pluginSettingsPage"
  153. }
  154. }
  155. }
  156. },
  157. "401": {
  158. "description": "Unauthorized"
  159. }
  160. },
  161. "security": [
  162. {
  163. "api_key": []
  164. }
  165. ]
  166. }
  167. },
  168. "/api/v2/plugins/healthchecks/run": {
  169. "get": {
  170. "tags": [
  171. "plugins-healthchecks"
  172. ],
  173. "summary": "Run Healthchecks.io plugin",
  174. "responses": {
  175. "200": {
  176. "description": "Success",
  177. "content": {
  178. "application/json": {
  179. "schema": {
  180. "$ref": "#/components/schemas/healthChecksRun"
  181. }
  182. }
  183. }
  184. },
  185. "401": {
  186. "description": "Unauthorized"
  187. }
  188. },
  189. "security": [
  190. {
  191. "api_key": []
  192. }
  193. ]
  194. }
  195. },
  196. "/api/v2/plugins/invites/settings": {
  197. "get": {
  198. "tags": [
  199. "plugins-invites"
  200. ],
  201. "summary": "Get settings",
  202. "responses": {
  203. "200": {
  204. "description": "Success",
  205. "content": {
  206. "application/json": {
  207. "schema": {
  208. "$ref": "#/components/schemas/pluginSettingsPage"
  209. }
  210. }
  211. }
  212. },
  213. "401": {
  214. "description": "Unauthorized"
  215. }
  216. },
  217. "security": [
  218. {
  219. "api_key": []
  220. }
  221. ]
  222. }
  223. },
  224. "/api/v2/plugins/invites": {
  225. "get": {
  226. "tags": [
  227. "plugins-invites"
  228. ],
  229. "summary": "Get All Invites",
  230. "responses": {
  231. "200": {
  232. "description": "Success",
  233. "content": {
  234. "application/json": {
  235. "schema": {
  236. "$ref": "#/components/schemas/getInvites"
  237. }
  238. }
  239. }
  240. },
  241. "401": {
  242. "description": "Unauthorized"
  243. }
  244. },
  245. "security": [
  246. {
  247. "api_key": []
  248. }
  249. ]
  250. },
  251. "post": {
  252. "tags": [
  253. "plugins-invites"
  254. ],
  255. "summary": "Create Invite Code",
  256. "responses": {
  257. "200": {
  258. "description": "Success",
  259. "content": {
  260. "application/json": {
  261. "schema": {
  262. "$ref": "#/components/schemas/createInviteCode"
  263. }
  264. }
  265. }
  266. },
  267. "401": {
  268. "description": "Unauthorized"
  269. }
  270. },
  271. "security": [
  272. {
  273. "api_key": []
  274. }
  275. ]
  276. }
  277. },
  278. "/api/v2/plugins/invites/{code}": {
  279. "get": {
  280. "tags": [
  281. "plugins-invites"
  282. ],
  283. "summary": "Verify Invite Code",
  284. "parameters": [
  285. {
  286. "name": "code",
  287. "in": "path",
  288. "description": "The Invite Code",
  289. "required": true,
  290. "schema": {
  291. "type": "integer",
  292. "format": "int64"
  293. }
  294. }
  295. ],
  296. "responses": {
  297. "200": {
  298. "description": "Success",
  299. "content": {
  300. "application/json": {
  301. "schema": {
  302. "$ref": "#/components/schemas/verifyInviteCode"
  303. }
  304. }
  305. }
  306. },
  307. "401": {
  308. "description": "Unauthorized"
  309. }
  310. }
  311. },
  312. "post": {
  313. "tags": [
  314. "plugins-invites"
  315. ],
  316. "summary": "Use Invite Code",
  317. "parameters": [
  318. {
  319. "name": "code",
  320. "in": "path",
  321. "description": "The Invite Code",
  322. "required": true,
  323. "schema": {
  324. "type": "integer",
  325. "format": "int64"
  326. }
  327. }
  328. ],
  329. "responses": {
  330. "200": {
  331. "description": "Success",
  332. "content": {
  333. "application/json": {
  334. "schema": {
  335. "$ref": "#/components/schemas/useInviteCode"
  336. }
  337. }
  338. }
  339. },
  340. "401": {
  341. "description": "Unauthorized"
  342. }
  343. }
  344. },
  345. "delete": {
  346. "tags": [
  347. "plugins-invites"
  348. ],
  349. "summary": "Delete Invite Code",
  350. "parameters": [
  351. {
  352. "name": "code",
  353. "in": "path",
  354. "description": "The Invite Code",
  355. "required": true,
  356. "schema": {
  357. "type": "integer",
  358. "format": "int64"
  359. }
  360. }
  361. ],
  362. "responses": {
  363. "200": {
  364. "description": "Success",
  365. "content": {
  366. "application/json": {
  367. "schema": {
  368. "$ref": "#/components/schemas/deleteInviteCode"
  369. }
  370. }
  371. }
  372. },
  373. "401": {
  374. "description": "Unauthorized"
  375. }
  376. },
  377. "security": [
  378. {
  379. "api_key": []
  380. }
  381. ]
  382. }
  383. },
  384. "/api/v2/plugins/php-mailer/settings": {
  385. "get": {
  386. "tags": [
  387. "plugins-php-mailer"
  388. ],
  389. "summary": "Get settings",
  390. "responses": {
  391. "200": {
  392. "description": "Success",
  393. "content": {
  394. "application/json": {
  395. "schema": {
  396. "$ref": "#/components/schemas/pluginSettingsPage"
  397. }
  398. }
  399. }
  400. },
  401. "401": {
  402. "description": "Unauthorized"
  403. }
  404. },
  405. "security": [
  406. {
  407. "api_key": []
  408. }
  409. ]
  410. }
  411. },
  412. "/api/v2/plugins/php-mailer/email/test": {
  413. "get": {
  414. "tags": [
  415. "plugins-php-mailer"
  416. ],
  417. "summary": "Send Test Email to Default Admin Email",
  418. "responses": {
  419. "200": {
  420. "description": "Success",
  421. "content": {
  422. "application/json": {
  423. "schema": {
  424. "$ref": "#/components/schemas/successNullData"
  425. }
  426. }
  427. }
  428. },
  429. "401": {
  430. "description": "Unauthorized"
  431. }
  432. },
  433. "security": [
  434. {
  435. "api_key": []
  436. }
  437. ]
  438. }
  439. },
  440. "/api/v2/plugins/php-mailer/email/send": {
  441. "post": {
  442. "tags": [
  443. "plugins-php-mailer"
  444. ],
  445. "summary": "Send Email",
  446. "requestBody": {
  447. "description": "Success",
  448. "required": true,
  449. "content": {
  450. "application/json": {
  451. "schema": {
  452. "$ref": "#/components/schemas/sendEmailData"
  453. }
  454. }
  455. }
  456. },
  457. "responses": {
  458. "200": {
  459. "description": "Success",
  460. "content": {
  461. "application/json": {
  462. "schema": {
  463. "$ref": "#/components/schemas/successNullData"
  464. }
  465. }
  466. }
  467. },
  468. "401": {
  469. "description": "Unauthorized"
  470. }
  471. },
  472. "security": [
  473. {
  474. "api_key": []
  475. }
  476. ]
  477. }
  478. },
  479. "/api/v2/plugins/php-mailer/email/list": {
  480. "get": {
  481. "tags": [
  482. "plugins-php-mailer"
  483. ],
  484. "summary": "Get List of User Emails",
  485. "responses": {
  486. "200": {
  487. "description": "Success",
  488. "content": {
  489. "application/json": {
  490. "schema": {
  491. "$ref": "#/components/schemas/php-mailer-email-list"
  492. }
  493. }
  494. }
  495. },
  496. "401": {
  497. "description": "Unauthorized"
  498. }
  499. },
  500. "security": [
  501. {
  502. "api_key": []
  503. }
  504. ]
  505. }
  506. },
  507. "/api/v2/plugins/speedtest/settings": {
  508. "get": {
  509. "tags": [
  510. "plugins-speedtest"
  511. ],
  512. "summary": "Get settings",
  513. "responses": {
  514. "200": {
  515. "description": "Success",
  516. "content": {
  517. "application/json": {
  518. "schema": {
  519. "$ref": "#/components/schemas/pluginSettingsPage"
  520. }
  521. }
  522. }
  523. },
  524. "401": {
  525. "description": "Unauthorized"
  526. }
  527. },
  528. "security": [
  529. {
  530. "api_key": []
  531. }
  532. ]
  533. }
  534. },
  535. "/api/v2/2fa": {
  536. "put": {
  537. "tags": [
  538. "2fa"
  539. ],
  540. "summary": "Save 2FA code",
  541. "requestBody": {
  542. "description": "Success",
  543. "required": true,
  544. "content": {
  545. "application/json": {
  546. "schema": {
  547. "$ref": "#/components/schemas/submit-2fa-save"
  548. }
  549. }
  550. }
  551. },
  552. "responses": {
  553. "200": {
  554. "description": "Success",
  555. "content": {
  556. "application/json": {
  557. "schema": {
  558. "$ref": "#/components/schemas/success-message"
  559. }
  560. }
  561. }
  562. },
  563. "401": {
  564. "description": "Unauthorized",
  565. "content": {
  566. "application/json": {
  567. "schema": {
  568. "$ref": "#/components/schemas/unauthorized-message"
  569. }
  570. }
  571. }
  572. },
  573. "422": {
  574. "description": "Error",
  575. "content": {
  576. "application/json": {
  577. "schema": {
  578. "$ref": "#/components/schemas/error-message"
  579. }
  580. }
  581. }
  582. }
  583. },
  584. "security": [
  585. {
  586. "api_key": []
  587. }
  588. ]
  589. },
  590. "post": {
  591. "tags": [
  592. "2fa"
  593. ],
  594. "summary": "Verify 2FA code",
  595. "requestBody": {
  596. "description": "Success",
  597. "required": true,
  598. "content": {
  599. "application/json": {
  600. "schema": {
  601. "$ref": "#/components/schemas/submit-2fa-verify"
  602. }
  603. }
  604. }
  605. },
  606. "responses": {
  607. "200": {
  608. "description": "Success",
  609. "content": {
  610. "application/json": {
  611. "schema": {
  612. "$ref": "#/components/schemas/success-message"
  613. }
  614. }
  615. }
  616. },
  617. "401": {
  618. "description": "Unauthorized",
  619. "content": {
  620. "application/json": {
  621. "schema": {
  622. "$ref": "#/components/schemas/unauthorized-message"
  623. }
  624. }
  625. }
  626. },
  627. "404": {
  628. "description": "Error",
  629. "content": {
  630. "application/json": {
  631. "schema": {
  632. "$ref": "#/components/schemas/error-message"
  633. }
  634. }
  635. }
  636. },
  637. "422": {
  638. "description": "Error",
  639. "content": {
  640. "application/json": {
  641. "schema": {
  642. "$ref": "#/components/schemas/error-message"
  643. }
  644. }
  645. }
  646. },
  647. "500": {
  648. "description": "Error",
  649. "content": {
  650. "application/json": {
  651. "schema": {
  652. "$ref": "#/components/schemas/error-message"
  653. }
  654. }
  655. }
  656. }
  657. },
  658. "security": [
  659. {
  660. "api_key": []
  661. }
  662. ]
  663. },
  664. "delete": {
  665. "tags": [
  666. "2fa"
  667. ],
  668. "summary": "Delete 2FA code",
  669. "responses": {
  670. "204": {
  671. "description": "Success"
  672. },
  673. "401": {
  674. "description": "Unauthorized",
  675. "content": {
  676. "application/json": {
  677. "schema": {
  678. "$ref": "#/components/schemas/unauthorized-message"
  679. }
  680. }
  681. }
  682. }
  683. },
  684. "security": [
  685. {
  686. "api_key": []
  687. }
  688. ]
  689. }
  690. },
  691. "/api/v2/2fa/{type}": {
  692. "post": {
  693. "tags": [
  694. "2fa"
  695. ],
  696. "summary": "Create 2FA code",
  697. "parameters": [
  698. {
  699. "name": "type",
  700. "in": "path",
  701. "description": "The type of 2FA",
  702. "required": true,
  703. "schema": {
  704. "type": "string"
  705. },
  706. "example": "google"
  707. }
  708. ],
  709. "responses": {
  710. "200": {
  711. "description": "Success",
  712. "content": {
  713. "application/json": {
  714. "schema": {
  715. "$ref": "#/components/schemas/success-message"
  716. }
  717. }
  718. }
  719. }
  720. }
  721. }
  722. },
  723. "/api/v2/categories": {
  724. "get": {
  725. "tags": [
  726. "categories"
  727. ],
  728. "summary": "Get all categories",
  729. "responses": {
  730. "200": {
  731. "description": "Success",
  732. "content": {
  733. "application/json": {
  734. "schema": {
  735. "$ref": "#/components/schemas/success-message"
  736. }
  737. }
  738. }
  739. },
  740. "401": {
  741. "description": "Unauthorized",
  742. "content": {
  743. "application/json": {
  744. "schema": {
  745. "$ref": "#/components/schemas/unauthorized-message"
  746. }
  747. }
  748. }
  749. },
  750. "404": {
  751. "description": "Error",
  752. "content": {
  753. "application/json": {
  754. "schema": {
  755. "$ref": "#/components/schemas/error-message"
  756. }
  757. }
  758. }
  759. },
  760. "422": {
  761. "description": "Error",
  762. "content": {
  763. "application/json": {
  764. "schema": {
  765. "$ref": "#/components/schemas/error-message"
  766. }
  767. }
  768. }
  769. },
  770. "500": {
  771. "description": "Error",
  772. "content": {
  773. "application/json": {
  774. "schema": {
  775. "$ref": "#/components/schemas/error-message"
  776. }
  777. }
  778. }
  779. }
  780. },
  781. "security": [
  782. {
  783. "api_key": []
  784. }
  785. ]
  786. },
  787. "put": {
  788. "tags": [
  789. "categories"
  790. ],
  791. "summary": "Update category order",
  792. "requestBody": {
  793. "description": "Success",
  794. "required": true,
  795. "content": {
  796. "application/json": {
  797. "schema": {
  798. "$ref": "#/components/schemas/submit-2fa-verify"
  799. }
  800. }
  801. }
  802. },
  803. "responses": {
  804. "200": {
  805. "description": "Success",
  806. "content": {
  807. "application/json": {
  808. "schema": {
  809. "$ref": "#/components/schemas/success-message"
  810. }
  811. }
  812. }
  813. },
  814. "401": {
  815. "description": "Unauthorized",
  816. "content": {
  817. "application/json": {
  818. "schema": {
  819. "$ref": "#/components/schemas/unauthorized-message"
  820. }
  821. }
  822. }
  823. },
  824. "404": {
  825. "description": "Error",
  826. "content": {
  827. "application/json": {
  828. "schema": {
  829. "$ref": "#/components/schemas/error-message"
  830. }
  831. }
  832. }
  833. },
  834. "422": {
  835. "description": "Error",
  836. "content": {
  837. "application/json": {
  838. "schema": {
  839. "$ref": "#/components/schemas/error-message"
  840. }
  841. }
  842. }
  843. },
  844. "500": {
  845. "description": "Error",
  846. "content": {
  847. "application/json": {
  848. "schema": {
  849. "$ref": "#/components/schemas/error-message"
  850. }
  851. }
  852. }
  853. }
  854. },
  855. "security": [
  856. {
  857. "api_key": []
  858. }
  859. ]
  860. },
  861. "post": {
  862. "tags": [
  863. "categories"
  864. ],
  865. "summary": "Add new category",
  866. "requestBody": {
  867. "description": "Success",
  868. "required": true,
  869. "content": {
  870. "application/json": {
  871. "schema": {
  872. "$ref": "#/components/schemas/submit-2fa-verify"
  873. }
  874. }
  875. }
  876. },
  877. "responses": {
  878. "200": {
  879. "description": "Success",
  880. "content": {
  881. "application/json": {
  882. "schema": {
  883. "$ref": "#/components/schemas/success-message"
  884. }
  885. }
  886. }
  887. },
  888. "401": {
  889. "description": "Unauthorized",
  890. "content": {
  891. "application/json": {
  892. "schema": {
  893. "$ref": "#/components/schemas/unauthorized-message"
  894. }
  895. }
  896. }
  897. },
  898. "404": {
  899. "description": "Error",
  900. "content": {
  901. "application/json": {
  902. "schema": {
  903. "$ref": "#/components/schemas/error-message"
  904. }
  905. }
  906. }
  907. },
  908. "422": {
  909. "description": "Error",
  910. "content": {
  911. "application/json": {
  912. "schema": {
  913. "$ref": "#/components/schemas/error-message"
  914. }
  915. }
  916. }
  917. },
  918. "500": {
  919. "description": "Error",
  920. "content": {
  921. "application/json": {
  922. "schema": {
  923. "$ref": "#/components/schemas/error-message"
  924. }
  925. }
  926. }
  927. }
  928. },
  929. "security": [
  930. {
  931. "api_key": []
  932. }
  933. ]
  934. }
  935. },
  936. "/api/v2/categories/{id}": {
  937. "put": {
  938. "tags": [
  939. "categories"
  940. ],
  941. "summary": "Update category",
  942. "requestBody": {
  943. "description": "Success",
  944. "required": true,
  945. "content": {
  946. "application/json": {
  947. "schema": {
  948. "$ref": "#/components/schemas/submit-2fa-verify"
  949. }
  950. }
  951. }
  952. },
  953. "responses": {
  954. "200": {
  955. "description": "Success",
  956. "content": {
  957. "application/json": {
  958. "schema": {
  959. "$ref": "#/components/schemas/success-message"
  960. }
  961. }
  962. }
  963. },
  964. "401": {
  965. "description": "Unauthorized",
  966. "content": {
  967. "application/json": {
  968. "schema": {
  969. "$ref": "#/components/schemas/unauthorized-message"
  970. }
  971. }
  972. }
  973. },
  974. "404": {
  975. "description": "Error",
  976. "content": {
  977. "application/json": {
  978. "schema": {
  979. "$ref": "#/components/schemas/error-message"
  980. }
  981. }
  982. }
  983. },
  984. "422": {
  985. "description": "Error",
  986. "content": {
  987. "application/json": {
  988. "schema": {
  989. "$ref": "#/components/schemas/error-message"
  990. }
  991. }
  992. }
  993. },
  994. "500": {
  995. "description": "Error",
  996. "content": {
  997. "application/json": {
  998. "schema": {
  999. "$ref": "#/components/schemas/error-message"
  1000. }
  1001. }
  1002. }
  1003. }
  1004. },
  1005. "security": [
  1006. {
  1007. "api_key": []
  1008. }
  1009. ]
  1010. },
  1011. "delete": {
  1012. "tags": [
  1013. "categories"
  1014. ],
  1015. "summary": "Delete category",
  1016. "requestBody": {
  1017. "description": "Success",
  1018. "required": true,
  1019. "content": {
  1020. "application/json": {
  1021. "schema": {
  1022. "$ref": "#/components/schemas/submit-2fa-verify"
  1023. }
  1024. }
  1025. }
  1026. },
  1027. "responses": {
  1028. "200": {
  1029. "description": "Success",
  1030. "content": {
  1031. "application/json": {
  1032. "schema": {
  1033. "$ref": "#/components/schemas/success-message"
  1034. }
  1035. }
  1036. }
  1037. },
  1038. "401": {
  1039. "description": "Unauthorized",
  1040. "content": {
  1041. "application/json": {
  1042. "schema": {
  1043. "$ref": "#/components/schemas/unauthorized-message"
  1044. }
  1045. }
  1046. }
  1047. },
  1048. "404": {
  1049. "description": "Error",
  1050. "content": {
  1051. "application/json": {
  1052. "schema": {
  1053. "$ref": "#/components/schemas/error-message"
  1054. }
  1055. }
  1056. }
  1057. },
  1058. "422": {
  1059. "description": "Error",
  1060. "content": {
  1061. "application/json": {
  1062. "schema": {
  1063. "$ref": "#/components/schemas/error-message"
  1064. }
  1065. }
  1066. }
  1067. },
  1068. "500": {
  1069. "description": "Error",
  1070. "content": {
  1071. "application/json": {
  1072. "schema": {
  1073. "$ref": "#/components/schemas/error-message"
  1074. }
  1075. }
  1076. }
  1077. }
  1078. },
  1079. "security": [
  1080. {
  1081. "api_key": []
  1082. }
  1083. ]
  1084. }
  1085. },
  1086. "/api/v2/config": {
  1087. "put": {
  1088. "tags": [
  1089. "config"
  1090. ],
  1091. "summary": "Update Organizr Coniguration Item(s)",
  1092. "requestBody": {
  1093. "description": "Success",
  1094. "required": true,
  1095. "content": {
  1096. "application/json": {
  1097. "schema": {
  1098. "$ref": "#/components/schemas/config-items-example"
  1099. }
  1100. }
  1101. }
  1102. },
  1103. "responses": {
  1104. "200": {
  1105. "description": "Success",
  1106. "content": {
  1107. "application/json": {
  1108. "schema": {
  1109. "$ref": "#/components/schemas/success-message"
  1110. }
  1111. }
  1112. }
  1113. },
  1114. "401": {
  1115. "description": "Unauthorized"
  1116. }
  1117. },
  1118. "security": [
  1119. {
  1120. "api_key": []
  1121. }
  1122. ]
  1123. }
  1124. },
  1125. "/api/v2/test/iframe": {
  1126. "post": {
  1127. "tags": [
  1128. "test connection"
  1129. ],
  1130. "summary": "Test if URL can be iFramed",
  1131. "responses": {
  1132. "200": {
  1133. "description": "Success",
  1134. "content": {
  1135. "application/json": {
  1136. "schema": {
  1137. "$ref": "#/components/schemas/success-message"
  1138. }
  1139. }
  1140. }
  1141. },
  1142. "401": {
  1143. "description": "Unauthorized",
  1144. "content": {
  1145. "application/json": {
  1146. "schema": {
  1147. "$ref": "#/components/schemas/unauthorized-message"
  1148. }
  1149. }
  1150. }
  1151. },
  1152. "404": {
  1153. "description": "Error",
  1154. "content": {
  1155. "application/json": {
  1156. "schema": {
  1157. "$ref": "#/components/schemas/error-message"
  1158. }
  1159. }
  1160. }
  1161. },
  1162. "409": {
  1163. "description": "Error",
  1164. "content": {
  1165. "application/json": {
  1166. "schema": {
  1167. "$ref": "#/components/schemas/error-message"
  1168. }
  1169. }
  1170. }
  1171. }
  1172. },
  1173. "security": [
  1174. {
  1175. "api_key": []
  1176. }
  1177. ]
  1178. }
  1179. },
  1180. "/api/v2/test/path": {
  1181. "post": {
  1182. "tags": [
  1183. "test connection"
  1184. ],
  1185. "summary": "Test if path has correct permissions",
  1186. "responses": {
  1187. "200": {
  1188. "description": "Success",
  1189. "content": {
  1190. "application/json": {
  1191. "schema": {
  1192. "$ref": "#/components/schemas/success-message"
  1193. }
  1194. }
  1195. }
  1196. },
  1197. "401": {
  1198. "description": "Unauthorized",
  1199. "content": {
  1200. "application/json": {
  1201. "schema": {
  1202. "$ref": "#/components/schemas/unauthorized-message"
  1203. }
  1204. }
  1205. }
  1206. },
  1207. "404": {
  1208. "description": "Error",
  1209. "content": {
  1210. "application/json": {
  1211. "schema": {
  1212. "$ref": "#/components/schemas/error-message"
  1213. }
  1214. }
  1215. }
  1216. }
  1217. },
  1218. "security": [
  1219. {
  1220. "api_key": []
  1221. }
  1222. ]
  1223. }
  1224. },
  1225. "/api/v2/test/plex": {
  1226. "post": {
  1227. "tags": [
  1228. "test connection"
  1229. ],
  1230. "summary": "Test connection to Plex",
  1231. "responses": {
  1232. "200": {
  1233. "description": "Success",
  1234. "content": {
  1235. "application/json": {
  1236. "schema": {
  1237. "$ref": "#/components/schemas/success-message"
  1238. }
  1239. }
  1240. }
  1241. },
  1242. "401": {
  1243. "description": "Unauthorized",
  1244. "content": {
  1245. "application/json": {
  1246. "schema": {
  1247. "$ref": "#/components/schemas/unauthorized-message"
  1248. }
  1249. }
  1250. }
  1251. },
  1252. "422": {
  1253. "description": "Error",
  1254. "content": {
  1255. "application/json": {
  1256. "schema": {
  1257. "$ref": "#/components/schemas/error-message"
  1258. }
  1259. }
  1260. }
  1261. },
  1262. "500": {
  1263. "description": "Error",
  1264. "content": {
  1265. "application/json": {
  1266. "schema": {
  1267. "$ref": "#/components/schemas/error-message"
  1268. }
  1269. }
  1270. }
  1271. }
  1272. },
  1273. "security": [
  1274. {
  1275. "api_key": []
  1276. }
  1277. ]
  1278. }
  1279. },
  1280. "/api/v2/test/emby": {
  1281. "post": {
  1282. "tags": [
  1283. "test connection"
  1284. ],
  1285. "summary": "Test connection to Emby",
  1286. "responses": {
  1287. "200": {
  1288. "description": "Success",
  1289. "content": {
  1290. "application/json": {
  1291. "schema": {
  1292. "$ref": "#/components/schemas/success-message"
  1293. }
  1294. }
  1295. }
  1296. },
  1297. "401": {
  1298. "description": "Unauthorized",
  1299. "content": {
  1300. "application/json": {
  1301. "schema": {
  1302. "$ref": "#/components/schemas/unauthorized-message"
  1303. }
  1304. }
  1305. }
  1306. },
  1307. "422": {
  1308. "description": "Error",
  1309. "content": {
  1310. "application/json": {
  1311. "schema": {
  1312. "$ref": "#/components/schemas/error-message"
  1313. }
  1314. }
  1315. }
  1316. },
  1317. "500": {
  1318. "description": "Error",
  1319. "content": {
  1320. "application/json": {
  1321. "schema": {
  1322. "$ref": "#/components/schemas/error-message"
  1323. }
  1324. }
  1325. }
  1326. }
  1327. },
  1328. "security": [
  1329. {
  1330. "api_key": []
  1331. }
  1332. ]
  1333. }
  1334. },
  1335. "/api/v2/test/sabnzbd": {
  1336. "post": {
  1337. "tags": [
  1338. "test connection"
  1339. ],
  1340. "summary": "Test connection to SabNZBd",
  1341. "responses": {
  1342. "200": {
  1343. "description": "Success",
  1344. "content": {
  1345. "application/json": {
  1346. "schema": {
  1347. "$ref": "#/components/schemas/success-message"
  1348. }
  1349. }
  1350. }
  1351. },
  1352. "401": {
  1353. "description": "Unauthorized",
  1354. "content": {
  1355. "application/json": {
  1356. "schema": {
  1357. "$ref": "#/components/schemas/unauthorized-message"
  1358. }
  1359. }
  1360. }
  1361. },
  1362. "422": {
  1363. "description": "Error",
  1364. "content": {
  1365. "application/json": {
  1366. "schema": {
  1367. "$ref": "#/components/schemas/error-message"
  1368. }
  1369. }
  1370. }
  1371. },
  1372. "500": {
  1373. "description": "Error",
  1374. "content": {
  1375. "application/json": {
  1376. "schema": {
  1377. "$ref": "#/components/schemas/error-message"
  1378. }
  1379. }
  1380. }
  1381. }
  1382. },
  1383. "security": [
  1384. {
  1385. "api_key": []
  1386. }
  1387. ]
  1388. }
  1389. },
  1390. "/api/v2/test/pihole": {
  1391. "post": {
  1392. "tags": [
  1393. "test connection"
  1394. ],
  1395. "summary": "Test connection to PiHole",
  1396. "responses": {
  1397. "200": {
  1398. "description": "Success",
  1399. "content": {
  1400. "application/json": {
  1401. "schema": {
  1402. "$ref": "#/components/schemas/success-message"
  1403. }
  1404. }
  1405. }
  1406. },
  1407. "401": {
  1408. "description": "Unauthorized",
  1409. "content": {
  1410. "application/json": {
  1411. "schema": {
  1412. "$ref": "#/components/schemas/unauthorized-message"
  1413. }
  1414. }
  1415. }
  1416. },
  1417. "422": {
  1418. "description": "Error",
  1419. "content": {
  1420. "application/json": {
  1421. "schema": {
  1422. "$ref": "#/components/schemas/error-message"
  1423. }
  1424. }
  1425. }
  1426. },
  1427. "500": {
  1428. "description": "Error",
  1429. "content": {
  1430. "application/json": {
  1431. "schema": {
  1432. "$ref": "#/components/schemas/error-message"
  1433. }
  1434. }
  1435. }
  1436. }
  1437. },
  1438. "security": [
  1439. {
  1440. "api_key": []
  1441. }
  1442. ]
  1443. }
  1444. },
  1445. "/api/v2/test/rtorrent": {
  1446. "post": {
  1447. "tags": [
  1448. "test connection"
  1449. ],
  1450. "summary": "Test connection to rTorrent",
  1451. "responses": {
  1452. "200": {
  1453. "description": "Success",
  1454. "content": {
  1455. "application/json": {
  1456. "schema": {
  1457. "$ref": "#/components/schemas/success-message"
  1458. }
  1459. }
  1460. }
  1461. },
  1462. "401": {
  1463. "description": "Unauthorized",
  1464. "content": {
  1465. "application/json": {
  1466. "schema": {
  1467. "$ref": "#/components/schemas/unauthorized-message"
  1468. }
  1469. }
  1470. }
  1471. },
  1472. "422": {
  1473. "description": "Error",
  1474. "content": {
  1475. "application/json": {
  1476. "schema": {
  1477. "$ref": "#/components/schemas/error-message"
  1478. }
  1479. }
  1480. }
  1481. },
  1482. "500": {
  1483. "description": "Error",
  1484. "content": {
  1485. "application/json": {
  1486. "schema": {
  1487. "$ref": "#/components/schemas/error-message"
  1488. }
  1489. }
  1490. }
  1491. }
  1492. },
  1493. "security": [
  1494. {
  1495. "api_key": []
  1496. }
  1497. ]
  1498. }
  1499. },
  1500. "/api/v2/test/sonarr": {
  1501. "post": {
  1502. "tags": [
  1503. "test connection"
  1504. ],
  1505. "summary": "Test connection to Sonarr",
  1506. "responses": {
  1507. "200": {
  1508. "description": "Success",
  1509. "content": {
  1510. "application/json": {
  1511. "schema": {
  1512. "$ref": "#/components/schemas/success-message"
  1513. }
  1514. }
  1515. }
  1516. },
  1517. "401": {
  1518. "description": "Unauthorized",
  1519. "content": {
  1520. "application/json": {
  1521. "schema": {
  1522. "$ref": "#/components/schemas/unauthorized-message"
  1523. }
  1524. }
  1525. }
  1526. },
  1527. "422": {
  1528. "description": "Error",
  1529. "content": {
  1530. "application/json": {
  1531. "schema": {
  1532. "$ref": "#/components/schemas/error-message"
  1533. }
  1534. }
  1535. }
  1536. },
  1537. "500": {
  1538. "description": "Error",
  1539. "content": {
  1540. "application/json": {
  1541. "schema": {
  1542. "$ref": "#/components/schemas/error-message"
  1543. }
  1544. }
  1545. }
  1546. }
  1547. },
  1548. "security": [
  1549. {
  1550. "api_key": []
  1551. }
  1552. ]
  1553. }
  1554. },
  1555. "/api/v2/test/radarr": {
  1556. "post": {
  1557. "tags": [
  1558. "test connection"
  1559. ],
  1560. "summary": "Test connection to Radarr",
  1561. "responses": {
  1562. "200": {
  1563. "description": "Success",
  1564. "content": {
  1565. "application/json": {
  1566. "schema": {
  1567. "$ref": "#/components/schemas/success-message"
  1568. }
  1569. }
  1570. }
  1571. },
  1572. "401": {
  1573. "description": "Unauthorized",
  1574. "content": {
  1575. "application/json": {
  1576. "schema": {
  1577. "$ref": "#/components/schemas/unauthorized-message"
  1578. }
  1579. }
  1580. }
  1581. },
  1582. "422": {
  1583. "description": "Error",
  1584. "content": {
  1585. "application/json": {
  1586. "schema": {
  1587. "$ref": "#/components/schemas/error-message"
  1588. }
  1589. }
  1590. }
  1591. },
  1592. "500": {
  1593. "description": "Error",
  1594. "content": {
  1595. "application/json": {
  1596. "schema": {
  1597. "$ref": "#/components/schemas/error-message"
  1598. }
  1599. }
  1600. }
  1601. }
  1602. },
  1603. "security": [
  1604. {
  1605. "api_key": []
  1606. }
  1607. ]
  1608. }
  1609. },
  1610. "/api/v2/test/lidarr": {
  1611. "post": {
  1612. "tags": [
  1613. "test connection"
  1614. ],
  1615. "summary": "Test connection to Lidarr",
  1616. "responses": {
  1617. "200": {
  1618. "description": "Success",
  1619. "content": {
  1620. "application/json": {
  1621. "schema": {
  1622. "$ref": "#/components/schemas/success-message"
  1623. }
  1624. }
  1625. }
  1626. },
  1627. "401": {
  1628. "description": "Unauthorized",
  1629. "content": {
  1630. "application/json": {
  1631. "schema": {
  1632. "$ref": "#/components/schemas/unauthorized-message"
  1633. }
  1634. }
  1635. }
  1636. },
  1637. "422": {
  1638. "description": "Error",
  1639. "content": {
  1640. "application/json": {
  1641. "schema": {
  1642. "$ref": "#/components/schemas/error-message"
  1643. }
  1644. }
  1645. }
  1646. },
  1647. "500": {
  1648. "description": "Error",
  1649. "content": {
  1650. "application/json": {
  1651. "schema": {
  1652. "$ref": "#/components/schemas/error-message"
  1653. }
  1654. }
  1655. }
  1656. }
  1657. },
  1658. "security": [
  1659. {
  1660. "api_key": []
  1661. }
  1662. ]
  1663. }
  1664. },
  1665. "/api/v2/test/sickrage": {
  1666. "post": {
  1667. "tags": [
  1668. "test connection"
  1669. ],
  1670. "summary": "Test connection to SickRage",
  1671. "responses": {
  1672. "200": {
  1673. "description": "Success",
  1674. "content": {
  1675. "application/json": {
  1676. "schema": {
  1677. "$ref": "#/components/schemas/success-message"
  1678. }
  1679. }
  1680. }
  1681. },
  1682. "401": {
  1683. "description": "Unauthorized",
  1684. "content": {
  1685. "application/json": {
  1686. "schema": {
  1687. "$ref": "#/components/schemas/unauthorized-message"
  1688. }
  1689. }
  1690. }
  1691. },
  1692. "422": {
  1693. "description": "Error",
  1694. "content": {
  1695. "application/json": {
  1696. "schema": {
  1697. "$ref": "#/components/schemas/error-message"
  1698. }
  1699. }
  1700. }
  1701. },
  1702. "500": {
  1703. "description": "Error",
  1704. "content": {
  1705. "application/json": {
  1706. "schema": {
  1707. "$ref": "#/components/schemas/error-message"
  1708. }
  1709. }
  1710. }
  1711. }
  1712. },
  1713. "security": [
  1714. {
  1715. "api_key": []
  1716. }
  1717. ]
  1718. }
  1719. },
  1720. "/api/v2/test/ombi": {
  1721. "post": {
  1722. "tags": [
  1723. "test connection"
  1724. ],
  1725. "summary": "Test connection to Ombi",
  1726. "responses": {
  1727. "200": {
  1728. "description": "Success",
  1729. "content": {
  1730. "application/json": {
  1731. "schema": {
  1732. "$ref": "#/components/schemas/success-message"
  1733. }
  1734. }
  1735. }
  1736. },
  1737. "401": {
  1738. "description": "Unauthorized",
  1739. "content": {
  1740. "application/json": {
  1741. "schema": {
  1742. "$ref": "#/components/schemas/unauthorized-message"
  1743. }
  1744. }
  1745. }
  1746. },
  1747. "422": {
  1748. "description": "Error",
  1749. "content": {
  1750. "application/json": {
  1751. "schema": {
  1752. "$ref": "#/components/schemas/error-message"
  1753. }
  1754. }
  1755. }
  1756. },
  1757. "500": {
  1758. "description": "Error",
  1759. "content": {
  1760. "application/json": {
  1761. "schema": {
  1762. "$ref": "#/components/schemas/error-message"
  1763. }
  1764. }
  1765. }
  1766. }
  1767. },
  1768. "security": [
  1769. {
  1770. "api_key": []
  1771. }
  1772. ]
  1773. }
  1774. },
  1775. "/api/v2/test/nzbget": {
  1776. "post": {
  1777. "tags": [
  1778. "test connection"
  1779. ],
  1780. "summary": "Test connection to NzbGet",
  1781. "responses": {
  1782. "200": {
  1783. "description": "Success",
  1784. "content": {
  1785. "application/json": {
  1786. "schema": {
  1787. "$ref": "#/components/schemas/success-message"
  1788. }
  1789. }
  1790. }
  1791. },
  1792. "401": {
  1793. "description": "Unauthorized",
  1794. "content": {
  1795. "application/json": {
  1796. "schema": {
  1797. "$ref": "#/components/schemas/unauthorized-message"
  1798. }
  1799. }
  1800. }
  1801. },
  1802. "422": {
  1803. "description": "Error",
  1804. "content": {
  1805. "application/json": {
  1806. "schema": {
  1807. "$ref": "#/components/schemas/error-message"
  1808. }
  1809. }
  1810. }
  1811. },
  1812. "500": {
  1813. "description": "Error",
  1814. "content": {
  1815. "application/json": {
  1816. "schema": {
  1817. "$ref": "#/components/schemas/error-message"
  1818. }
  1819. }
  1820. }
  1821. }
  1822. },
  1823. "security": [
  1824. {
  1825. "api_key": []
  1826. }
  1827. ]
  1828. }
  1829. },
  1830. "/api/v2/test/deluge": {
  1831. "post": {
  1832. "tags": [
  1833. "test connection"
  1834. ],
  1835. "summary": "Test connection to Deluge",
  1836. "responses": {
  1837. "200": {
  1838. "description": "Success",
  1839. "content": {
  1840. "application/json": {
  1841. "schema": {
  1842. "$ref": "#/components/schemas/success-message"
  1843. }
  1844. }
  1845. }
  1846. },
  1847. "401": {
  1848. "description": "Unauthorized",
  1849. "content": {
  1850. "application/json": {
  1851. "schema": {
  1852. "$ref": "#/components/schemas/unauthorized-message"
  1853. }
  1854. }
  1855. }
  1856. },
  1857. "422": {
  1858. "description": "Error",
  1859. "content": {
  1860. "application/json": {
  1861. "schema": {
  1862. "$ref": "#/components/schemas/error-message"
  1863. }
  1864. }
  1865. }
  1866. },
  1867. "500": {
  1868. "description": "Error",
  1869. "content": {
  1870. "application/json": {
  1871. "schema": {
  1872. "$ref": "#/components/schemas/error-message"
  1873. }
  1874. }
  1875. }
  1876. }
  1877. },
  1878. "security": [
  1879. {
  1880. "api_key": []
  1881. }
  1882. ]
  1883. }
  1884. },
  1885. "/api/v2/test/jdownloader": {
  1886. "post": {
  1887. "tags": [
  1888. "test connection"
  1889. ],
  1890. "summary": "Test connection to jDownloader",
  1891. "responses": {
  1892. "200": {
  1893. "description": "Success",
  1894. "content": {
  1895. "application/json": {
  1896. "schema": {
  1897. "$ref": "#/components/schemas/success-message"
  1898. }
  1899. }
  1900. }
  1901. },
  1902. "401": {
  1903. "description": "Unauthorized",
  1904. "content": {
  1905. "application/json": {
  1906. "schema": {
  1907. "$ref": "#/components/schemas/unauthorized-message"
  1908. }
  1909. }
  1910. }
  1911. },
  1912. "422": {
  1913. "description": "Error",
  1914. "content": {
  1915. "application/json": {
  1916. "schema": {
  1917. "$ref": "#/components/schemas/error-message"
  1918. }
  1919. }
  1920. }
  1921. },
  1922. "500": {
  1923. "description": "Error",
  1924. "content": {
  1925. "application/json": {
  1926. "schema": {
  1927. "$ref": "#/components/schemas/error-message"
  1928. }
  1929. }
  1930. }
  1931. }
  1932. },
  1933. "security": [
  1934. {
  1935. "api_key": []
  1936. }
  1937. ]
  1938. }
  1939. },
  1940. "/api/v2/test/transmission": {
  1941. "post": {
  1942. "tags": [
  1943. "test connection"
  1944. ],
  1945. "summary": "Test connection to Transmission",
  1946. "responses": {
  1947. "200": {
  1948. "description": "Success",
  1949. "content": {
  1950. "application/json": {
  1951. "schema": {
  1952. "$ref": "#/components/schemas/success-message"
  1953. }
  1954. }
  1955. }
  1956. },
  1957. "401": {
  1958. "description": "Unauthorized",
  1959. "content": {
  1960. "application/json": {
  1961. "schema": {
  1962. "$ref": "#/components/schemas/unauthorized-message"
  1963. }
  1964. }
  1965. }
  1966. },
  1967. "422": {
  1968. "description": "Error",
  1969. "content": {
  1970. "application/json": {
  1971. "schema": {
  1972. "$ref": "#/components/schemas/error-message"
  1973. }
  1974. }
  1975. }
  1976. },
  1977. "500": {
  1978. "description": "Error",
  1979. "content": {
  1980. "application/json": {
  1981. "schema": {
  1982. "$ref": "#/components/schemas/error-message"
  1983. }
  1984. }
  1985. }
  1986. }
  1987. },
  1988. "security": [
  1989. {
  1990. "api_key": []
  1991. }
  1992. ]
  1993. }
  1994. },
  1995. "/api/v2/test/qbittorrent": {
  1996. "post": {
  1997. "tags": [
  1998. "test connection"
  1999. ],
  2000. "summary": "Test connection to qBittorrent",
  2001. "responses": {
  2002. "200": {
  2003. "description": "Success",
  2004. "content": {
  2005. "application/json": {
  2006. "schema": {
  2007. "$ref": "#/components/schemas/success-message"
  2008. }
  2009. }
  2010. }
  2011. },
  2012. "401": {
  2013. "description": "Unauthorized",
  2014. "content": {
  2015. "application/json": {
  2016. "schema": {
  2017. "$ref": "#/components/schemas/unauthorized-message"
  2018. }
  2019. }
  2020. }
  2021. },
  2022. "422": {
  2023. "description": "Error",
  2024. "content": {
  2025. "application/json": {
  2026. "schema": {
  2027. "$ref": "#/components/schemas/error-message"
  2028. }
  2029. }
  2030. }
  2031. },
  2032. "500": {
  2033. "description": "Error",
  2034. "content": {
  2035. "application/json": {
  2036. "schema": {
  2037. "$ref": "#/components/schemas/error-message"
  2038. }
  2039. }
  2040. }
  2041. }
  2042. },
  2043. "security": [
  2044. {
  2045. "api_key": []
  2046. }
  2047. ]
  2048. }
  2049. },
  2050. "/api/v2/test/unifi": {
  2051. "post": {
  2052. "tags": [
  2053. "test connection"
  2054. ],
  2055. "summary": "Test connection to Unifi",
  2056. "responses": {
  2057. "200": {
  2058. "description": "Success",
  2059. "content": {
  2060. "application/json": {
  2061. "schema": {
  2062. "$ref": "#/components/schemas/success-message"
  2063. }
  2064. }
  2065. }
  2066. },
  2067. "401": {
  2068. "description": "Unauthorized",
  2069. "content": {
  2070. "application/json": {
  2071. "schema": {
  2072. "$ref": "#/components/schemas/unauthorized-message"
  2073. }
  2074. }
  2075. }
  2076. },
  2077. "422": {
  2078. "description": "Error",
  2079. "content": {
  2080. "application/json": {
  2081. "schema": {
  2082. "$ref": "#/components/schemas/error-message"
  2083. }
  2084. }
  2085. }
  2086. },
  2087. "500": {
  2088. "description": "Error",
  2089. "content": {
  2090. "application/json": {
  2091. "schema": {
  2092. "$ref": "#/components/schemas/error-message"
  2093. }
  2094. }
  2095. }
  2096. }
  2097. },
  2098. "security": [
  2099. {
  2100. "api_key": []
  2101. }
  2102. ]
  2103. }
  2104. },
  2105. "/api/v2/test/unifi/site": {
  2106. "post": {
  2107. "tags": [
  2108. "test connection"
  2109. ],
  2110. "summary": "Test connection to Unifi Sites",
  2111. "responses": {
  2112. "200": {
  2113. "description": "Success",
  2114. "content": {
  2115. "application/json": {
  2116. "schema": {
  2117. "$ref": "#/components/schemas/success-message"
  2118. }
  2119. }
  2120. }
  2121. },
  2122. "401": {
  2123. "description": "Unauthorized",
  2124. "content": {
  2125. "application/json": {
  2126. "schema": {
  2127. "$ref": "#/components/schemas/unauthorized-message"
  2128. }
  2129. }
  2130. }
  2131. },
  2132. "422": {
  2133. "description": "Error",
  2134. "content": {
  2135. "application/json": {
  2136. "schema": {
  2137. "$ref": "#/components/schemas/error-message"
  2138. }
  2139. }
  2140. }
  2141. },
  2142. "500": {
  2143. "description": "Error",
  2144. "content": {
  2145. "application/json": {
  2146. "schema": {
  2147. "$ref": "#/components/schemas/error-message"
  2148. }
  2149. }
  2150. }
  2151. }
  2152. },
  2153. "security": [
  2154. {
  2155. "api_key": []
  2156. }
  2157. ]
  2158. }
  2159. },
  2160. "/api/v2/test/tautulli": {
  2161. "post": {
  2162. "tags": [
  2163. "test connection"
  2164. ],
  2165. "summary": "Test connection to Tautulli",
  2166. "responses": {
  2167. "200": {
  2168. "description": "Success",
  2169. "content": {
  2170. "application/json": {
  2171. "schema": {
  2172. "$ref": "#/components/schemas/success-message"
  2173. }
  2174. }
  2175. }
  2176. },
  2177. "401": {
  2178. "description": "Unauthorized",
  2179. "content": {
  2180. "application/json": {
  2181. "schema": {
  2182. "$ref": "#/components/schemas/unauthorized-message"
  2183. }
  2184. }
  2185. }
  2186. },
  2187. "422": {
  2188. "description": "Error",
  2189. "content": {
  2190. "application/json": {
  2191. "schema": {
  2192. "$ref": "#/components/schemas/error-message"
  2193. }
  2194. }
  2195. }
  2196. },
  2197. "500": {
  2198. "description": "Error",
  2199. "content": {
  2200. "application/json": {
  2201. "schema": {
  2202. "$ref": "#/components/schemas/error-message"
  2203. }
  2204. }
  2205. }
  2206. }
  2207. },
  2208. "security": [
  2209. {
  2210. "api_key": []
  2211. }
  2212. ]
  2213. }
  2214. },
  2215. "/api/v2/emby/register": {
  2216. "post": {
  2217. "tags": [
  2218. "emby"
  2219. ],
  2220. "summary": "Register a user using Emby API",
  2221. "responses": {
  2222. "200": {
  2223. "description": "Success",
  2224. "content": {
  2225. "application/json": {
  2226. "schema": {
  2227. "$ref": "#/components/schemas/status"
  2228. }
  2229. }
  2230. }
  2231. },
  2232. "401": {
  2233. "description": "Unauthorized"
  2234. }
  2235. }
  2236. }
  2237. },
  2238. "/api/v2/page/{page}": {
  2239. "get": {
  2240. "tags": [
  2241. "page"
  2242. ],
  2243. "summary": "Get HTML for Organizr Pages",
  2244. "parameters": [
  2245. {
  2246. "name": "page",
  2247. "in": "path",
  2248. "description": "Page to get",
  2249. "required": true,
  2250. "schema": {
  2251. "type": "string"
  2252. }
  2253. }
  2254. ],
  2255. "responses": {
  2256. "200": {
  2257. "description": "Success",
  2258. "content": {
  2259. "application/json": {
  2260. "schema": {
  2261. "$ref": "#/components/schemas/get-html"
  2262. }
  2263. }
  2264. }
  2265. },
  2266. "401": {
  2267. "description": "Unauthorized"
  2268. }
  2269. },
  2270. "security": [
  2271. {
  2272. "api_key": []
  2273. }
  2274. ]
  2275. }
  2276. },
  2277. "/api/v2/page": {
  2278. "get": {
  2279. "tags": [
  2280. "page"
  2281. ],
  2282. "summary": "Get list of all Organizr Pages",
  2283. "responses": {
  2284. "200": {
  2285. "description": "Success",
  2286. "content": {
  2287. "application/json": {
  2288. "schema": {
  2289. "$ref": "#/components/schemas/get-html"
  2290. }
  2291. }
  2292. }
  2293. },
  2294. "401": {
  2295. "description": "Unauthorized"
  2296. }
  2297. },
  2298. "security": [
  2299. {
  2300. "api_key": []
  2301. }
  2302. ]
  2303. }
  2304. },
  2305. "/api/v2/ping": {
  2306. "get": {
  2307. "summary": "Ping the Organizr API",
  2308. "responses": {
  2309. "200": {
  2310. "description": "Success",
  2311. "content": {
  2312. "application/json": {
  2313. "schema": {
  2314. "$ref": "#/components/schemas/ping"
  2315. }
  2316. }
  2317. }
  2318. },
  2319. "401": {
  2320. "description": "Unauthorized"
  2321. }
  2322. }
  2323. }
  2324. },
  2325. "/api/v2/plex/register": {
  2326. "post": {
  2327. "tags": [
  2328. "plex"
  2329. ],
  2330. "summary": "Register a user using Plex API",
  2331. "requestBody": {
  2332. "description": "Success",
  2333. "required": true,
  2334. "content": {
  2335. "application/json": {
  2336. "schema": {
  2337. "$ref": "#/components/schemas/plexRegister"
  2338. }
  2339. }
  2340. }
  2341. },
  2342. "responses": {
  2343. "200": {
  2344. "description": "Success",
  2345. "content": {
  2346. "application/json": {
  2347. "schema": {
  2348. "$ref": "#/components/schemas/status"
  2349. }
  2350. }
  2351. }
  2352. },
  2353. "401": {
  2354. "description": "Unauthorized"
  2355. }
  2356. }
  2357. }
  2358. },
  2359. "/api/v2/status": {
  2360. "get": {
  2361. "summary": "Query Organizr API to perform a Status Check",
  2362. "responses": {
  2363. "200": {
  2364. "description": "Success",
  2365. "content": {
  2366. "application/json": {
  2367. "schema": {
  2368. "$ref": "#/components/schemas/status"
  2369. }
  2370. }
  2371. }
  2372. },
  2373. "401": {
  2374. "description": "Unauthorized"
  2375. }
  2376. }
  2377. }
  2378. },
  2379. "/api/v2/auth": {
  2380. "get": {
  2381. "summary": "Nginx auth_request",
  2382. "parameters": [
  2383. {
  2384. "name": "group",
  2385. "in": "query",
  2386. "description": "The id of the group allowed",
  2387. "required": false,
  2388. "schema": {
  2389. "type": "integer",
  2390. "format": "int64"
  2391. }
  2392. },
  2393. {
  2394. "name": "whitelist",
  2395. "in": "query",
  2396. "description": "Whitelisted Ip's",
  2397. "required": false,
  2398. "explode": false,
  2399. "schema": {
  2400. "type": "array",
  2401. "items": {
  2402. "type": "string"
  2403. }
  2404. }
  2405. },
  2406. {
  2407. "name": "blacklist",
  2408. "in": "query",
  2409. "description": "Blacklisted Ip's",
  2410. "required": false,
  2411. "explode": false,
  2412. "schema": {
  2413. "type": "array",
  2414. "items": {
  2415. "type": "string"
  2416. }
  2417. }
  2418. }
  2419. ],
  2420. "responses": {
  2421. "200": {
  2422. "description": "Success"
  2423. },
  2424. "401": {
  2425. "description": "Unauthorized"
  2426. }
  2427. }
  2428. }
  2429. },
  2430. "/api/v2/update/download/{branch}": {
  2431. "get": {
  2432. "tags": [
  2433. "update"
  2434. ],
  2435. "summary": "Download Organizr Update Files",
  2436. "responses": {
  2437. "200": {
  2438. "description": "Success",
  2439. "content": {
  2440. "application/json": {
  2441. "schema": {
  2442. "$ref": "#/components/schemas/success-message"
  2443. }
  2444. }
  2445. }
  2446. },
  2447. "401": {
  2448. "description": "Unauthorized",
  2449. "content": {
  2450. "application/json": {
  2451. "schema": {
  2452. "$ref": "#/components/schemas/unauthorized-message"
  2453. }
  2454. }
  2455. }
  2456. },
  2457. "404": {
  2458. "description": "Error",
  2459. "content": {
  2460. "application/json": {
  2461. "schema": {
  2462. "$ref": "#/components/schemas/error-message"
  2463. }
  2464. }
  2465. }
  2466. },
  2467. "422": {
  2468. "description": "Error",
  2469. "content": {
  2470. "application/json": {
  2471. "schema": {
  2472. "$ref": "#/components/schemas/error-message"
  2473. }
  2474. }
  2475. }
  2476. },
  2477. "500": {
  2478. "description": "Error",
  2479. "content": {
  2480. "application/json": {
  2481. "schema": {
  2482. "$ref": "#/components/schemas/error-message"
  2483. }
  2484. }
  2485. }
  2486. }
  2487. },
  2488. "security": [
  2489. {
  2490. "api_key": []
  2491. }
  2492. ]
  2493. }
  2494. },
  2495. "/api/v2/update/unzip/{branch}": {
  2496. "get": {
  2497. "tags": [
  2498. "update"
  2499. ],
  2500. "summary": "Unzip Organizr Update Files",
  2501. "responses": {
  2502. "200": {
  2503. "description": "Success",
  2504. "content": {
  2505. "application/json": {
  2506. "schema": {
  2507. "$ref": "#/components/schemas/success-message"
  2508. }
  2509. }
  2510. }
  2511. },
  2512. "401": {
  2513. "description": "Unauthorized",
  2514. "content": {
  2515. "application/json": {
  2516. "schema": {
  2517. "$ref": "#/components/schemas/unauthorized-message"
  2518. }
  2519. }
  2520. }
  2521. },
  2522. "404": {
  2523. "description": "Error",
  2524. "content": {
  2525. "application/json": {
  2526. "schema": {
  2527. "$ref": "#/components/schemas/error-message"
  2528. }
  2529. }
  2530. }
  2531. },
  2532. "422": {
  2533. "description": "Error",
  2534. "content": {
  2535. "application/json": {
  2536. "schema": {
  2537. "$ref": "#/components/schemas/error-message"
  2538. }
  2539. }
  2540. }
  2541. },
  2542. "500": {
  2543. "description": "Error",
  2544. "content": {
  2545. "application/json": {
  2546. "schema": {
  2547. "$ref": "#/components/schemas/error-message"
  2548. }
  2549. }
  2550. }
  2551. }
  2552. },
  2553. "security": [
  2554. {
  2555. "api_key": []
  2556. }
  2557. ]
  2558. }
  2559. },
  2560. "/api/v2/update/move/{branch}": {
  2561. "get": {
  2562. "tags": [
  2563. "update"
  2564. ],
  2565. "summary": "Move Organizr Update Files",
  2566. "responses": {
  2567. "200": {
  2568. "description": "Success",
  2569. "content": {
  2570. "application/json": {
  2571. "schema": {
  2572. "$ref": "#/components/schemas/success-message"
  2573. }
  2574. }
  2575. }
  2576. },
  2577. "401": {
  2578. "description": "Unauthorized",
  2579. "content": {
  2580. "application/json": {
  2581. "schema": {
  2582. "$ref": "#/components/schemas/unauthorized-message"
  2583. }
  2584. }
  2585. }
  2586. },
  2587. "404": {
  2588. "description": "Error",
  2589. "content": {
  2590. "application/json": {
  2591. "schema": {
  2592. "$ref": "#/components/schemas/error-message"
  2593. }
  2594. }
  2595. }
  2596. },
  2597. "422": {
  2598. "description": "Error",
  2599. "content": {
  2600. "application/json": {
  2601. "schema": {
  2602. "$ref": "#/components/schemas/error-message"
  2603. }
  2604. }
  2605. }
  2606. },
  2607. "500": {
  2608. "description": "Error",
  2609. "content": {
  2610. "application/json": {
  2611. "schema": {
  2612. "$ref": "#/components/schemas/error-message"
  2613. }
  2614. }
  2615. }
  2616. }
  2617. },
  2618. "security": [
  2619. {
  2620. "api_key": []
  2621. }
  2622. ]
  2623. }
  2624. },
  2625. "/api/v2/update/cleanup/{branch}": {
  2626. "get": {
  2627. "tags": [
  2628. "update"
  2629. ],
  2630. "summary": "Cleanup Organizr Update Files",
  2631. "responses": {
  2632. "200": {
  2633. "description": "Success",
  2634. "content": {
  2635. "application/json": {
  2636. "schema": {
  2637. "$ref": "#/components/schemas/success-message"
  2638. }
  2639. }
  2640. }
  2641. },
  2642. "401": {
  2643. "description": "Unauthorized",
  2644. "content": {
  2645. "application/json": {
  2646. "schema": {
  2647. "$ref": "#/components/schemas/unauthorized-message"
  2648. }
  2649. }
  2650. }
  2651. },
  2652. "404": {
  2653. "description": "Error",
  2654. "content": {
  2655. "application/json": {
  2656. "schema": {
  2657. "$ref": "#/components/schemas/error-message"
  2658. }
  2659. }
  2660. }
  2661. },
  2662. "422": {
  2663. "description": "Error",
  2664. "content": {
  2665. "application/json": {
  2666. "schema": {
  2667. "$ref": "#/components/schemas/error-message"
  2668. }
  2669. }
  2670. }
  2671. },
  2672. "500": {
  2673. "description": "Error",
  2674. "content": {
  2675. "application/json": {
  2676. "schema": {
  2677. "$ref": "#/components/schemas/error-message"
  2678. }
  2679. }
  2680. }
  2681. }
  2682. },
  2683. "security": [
  2684. {
  2685. "api_key": []
  2686. }
  2687. ]
  2688. }
  2689. },
  2690. "/api/v2/update/docker": {
  2691. "get": {
  2692. "tags": [
  2693. "update"
  2694. ],
  2695. "summary": "Update Organizr install using Docker Container script",
  2696. "responses": {
  2697. "200": {
  2698. "description": "Success",
  2699. "content": {
  2700. "application/json": {
  2701. "schema": {
  2702. "$ref": "#/components/schemas/success-message"
  2703. }
  2704. }
  2705. }
  2706. },
  2707. "401": {
  2708. "description": "Unauthorized",
  2709. "content": {
  2710. "application/json": {
  2711. "schema": {
  2712. "$ref": "#/components/schemas/unauthorized-message"
  2713. }
  2714. }
  2715. }
  2716. },
  2717. "404": {
  2718. "description": "Error",
  2719. "content": {
  2720. "application/json": {
  2721. "schema": {
  2722. "$ref": "#/components/schemas/error-message"
  2723. }
  2724. }
  2725. }
  2726. },
  2727. "422": {
  2728. "description": "Error",
  2729. "content": {
  2730. "application/json": {
  2731. "schema": {
  2732. "$ref": "#/components/schemas/error-message"
  2733. }
  2734. }
  2735. }
  2736. },
  2737. "500": {
  2738. "description": "Error",
  2739. "content": {
  2740. "application/json": {
  2741. "schema": {
  2742. "$ref": "#/components/schemas/error-message"
  2743. }
  2744. }
  2745. }
  2746. }
  2747. },
  2748. "security": [
  2749. {
  2750. "api_key": []
  2751. }
  2752. ]
  2753. }
  2754. },
  2755. "/api/v2/update/windows": {
  2756. "get": {
  2757. "tags": [
  2758. "update"
  2759. ],
  2760. "summary": "Update Organizr install using Windows script",
  2761. "responses": {
  2762. "200": {
  2763. "description": "Success",
  2764. "content": {
  2765. "application/json": {
  2766. "schema": {
  2767. "$ref": "#/components/schemas/success-message"
  2768. }
  2769. }
  2770. }
  2771. },
  2772. "401": {
  2773. "description": "Unauthorized",
  2774. "content": {
  2775. "application/json": {
  2776. "schema": {
  2777. "$ref": "#/components/schemas/unauthorized-message"
  2778. }
  2779. }
  2780. }
  2781. },
  2782. "404": {
  2783. "description": "Error",
  2784. "content": {
  2785. "application/json": {
  2786. "schema": {
  2787. "$ref": "#/components/schemas/error-message"
  2788. }
  2789. }
  2790. }
  2791. },
  2792. "422": {
  2793. "description": "Error",
  2794. "content": {
  2795. "application/json": {
  2796. "schema": {
  2797. "$ref": "#/components/schemas/error-message"
  2798. }
  2799. }
  2800. }
  2801. },
  2802. "500": {
  2803. "description": "Error",
  2804. "content": {
  2805. "application/json": {
  2806. "schema": {
  2807. "$ref": "#/components/schemas/error-message"
  2808. }
  2809. }
  2810. }
  2811. }
  2812. },
  2813. "security": [
  2814. {
  2815. "api_key": []
  2816. }
  2817. ]
  2818. }
  2819. }
  2820. },
  2821. "components": {
  2822. "schemas": {
  2823. "getChatMessages": {
  2824. "properties": {
  2825. "response": {
  2826. "properties": {
  2827. "result": {
  2828. "description": "success or error",
  2829. "type": "string",
  2830. "example": "success"
  2831. },
  2832. "message": {
  2833. "description": "success or error message",
  2834. "type": "string",
  2835. "example": null
  2836. },
  2837. "data": {
  2838. "description": "data from api",
  2839. "type": "array",
  2840. "items": {
  2841. "properties": {
  2842. "username": {
  2843. "type": "string",
  2844. "example": "causefx"
  2845. },
  2846. "date": {
  2847. "type": "string",
  2848. "example": "2018-09-01 02:02:24"
  2849. },
  2850. "gravatar": {
  2851. "type": "string",
  2852. "example": "https://www.gravatar.com/avatar/a47c4a4b915ddf9601cd228f890bc366?s=100&d=mm"
  2853. },
  2854. "message": {
  2855. "type": "string",
  2856. "example": "ok first message!"
  2857. },
  2858. "uid": {
  2859. "type": "string",
  2860. "example": "f5287"
  2861. }
  2862. },
  2863. "type": "object"
  2864. }
  2865. }
  2866. },
  2867. "type": "object"
  2868. }
  2869. },
  2870. "type": "object"
  2871. },
  2872. "submitMessageData": {
  2873. "properties": {
  2874. "message": {
  2875. "type": "string",
  2876. "example": "This is my message"
  2877. }
  2878. },
  2879. "type": "object"
  2880. },
  2881. "submitMessage": {
  2882. "properties": {
  2883. "response": {
  2884. "properties": {
  2885. "result": {
  2886. "description": "success or error",
  2887. "type": "string",
  2888. "example": "success"
  2889. },
  2890. "message": {
  2891. "description": "success or error message",
  2892. "type": "string",
  2893. "example": "message has been accepted"
  2894. },
  2895. "data": {
  2896. "description": "data from api",
  2897. "type": "string",
  2898. "example": null
  2899. }
  2900. },
  2901. "type": "object"
  2902. }
  2903. },
  2904. "type": "object"
  2905. },
  2906. "healthChecksRun": {
  2907. "properties": {
  2908. "response": {
  2909. "properties": {
  2910. "result": {
  2911. "description": "success or error",
  2912. "type": "string",
  2913. "example": "success"
  2914. },
  2915. "message": {
  2916. "description": "success or error message",
  2917. "type": "string",
  2918. "example": null
  2919. },
  2920. "data": {
  2921. "description": "data from api",
  2922. "type": "array",
  2923. "items": {
  2924. "properties": {
  2925. "Service Name": {
  2926. "type": "string",
  2927. "example": "Radarr"
  2928. },
  2929. "UUID": {
  2930. "type": "string",
  2931. "example": "883f0097-8f4c-4ca5-a9cf-053cfab8e334"
  2932. },
  2933. "External URL": {
  2934. "type": "string",
  2935. "example": "https://radarr.com"
  2936. },
  2937. "Internal URL": {
  2938. "type": "string",
  2939. "example": "http://radarr:7878"
  2940. },
  2941. "Enabled": {
  2942. "type": "string",
  2943. "example": "true"
  2944. },
  2945. "results": {
  2946. "type": "array",
  2947. "items": {
  2948. "properties": {
  2949. "internal": {
  2950. "type": "string",
  2951. "example": "Success"
  2952. },
  2953. "external": {
  2954. "type": "string",
  2955. "example": "Success"
  2956. }
  2957. },
  2958. "type": "object"
  2959. }
  2960. }
  2961. },
  2962. "type": "object"
  2963. }
  2964. }
  2965. },
  2966. "type": "object"
  2967. }
  2968. },
  2969. "type": "object"
  2970. },
  2971. "getInvites": {
  2972. "properties": {
  2973. "response": {
  2974. "properties": {
  2975. "result": {
  2976. "description": "success or error",
  2977. "type": "string",
  2978. "example": "success"
  2979. },
  2980. "message": {
  2981. "description": "success or error message",
  2982. "type": "string",
  2983. "example": null
  2984. },
  2985. "data": {
  2986. "description": "data from api",
  2987. "type": "array",
  2988. "items": {
  2989. "properties": {
  2990. "id": {
  2991. "type": "number",
  2992. "example": 1
  2993. },
  2994. "code": {
  2995. "type": "string",
  2996. "example": "NN9JH9"
  2997. },
  2998. "date": {
  2999. "type": "string",
  3000. "example": "2018-09-01 02:02:24"
  3001. },
  3002. "email": {
  3003. "type": "string",
  3004. "example": "causefX@organizr.app"
  3005. },
  3006. "username": {
  3007. "type": "string",
  3008. "example": "causefx"
  3009. },
  3010. "dateused": {
  3011. "type": "string",
  3012. "example": "2018-09-01 02:02:24"
  3013. },
  3014. "usedby": {
  3015. "type": "string",
  3016. "example": "causefx"
  3017. },
  3018. "ip": {
  3019. "type": "string",
  3020. "example": "10.0.0.0"
  3021. },
  3022. "valid": {
  3023. "type": "string",
  3024. "example": "No"
  3025. },
  3026. "type": {
  3027. "type": "string",
  3028. "example": "Plex"
  3029. }
  3030. },
  3031. "type": "object"
  3032. }
  3033. }
  3034. },
  3035. "type": "object"
  3036. }
  3037. },
  3038. "type": "object"
  3039. },
  3040. "createInviteCode": {
  3041. "properties": {
  3042. "response": {
  3043. "properties": {
  3044. "result": {
  3045. "description": "success or error",
  3046. "type": "string",
  3047. "example": "success"
  3048. },
  3049. "message": {
  3050. "description": "success or error message",
  3051. "type": "string",
  3052. "example": "Invite Code: XYXYXY has been created"
  3053. },
  3054. "data": {
  3055. "description": "data from api",
  3056. "type": "string",
  3057. "example": null
  3058. }
  3059. },
  3060. "type": "object"
  3061. }
  3062. },
  3063. "type": "object"
  3064. },
  3065. "verifyInviteCode": {
  3066. "properties": {
  3067. "response": {
  3068. "properties": {
  3069. "result": {
  3070. "description": "success or error",
  3071. "type": "string",
  3072. "example": "success"
  3073. },
  3074. "message": {
  3075. "description": "success or error message",
  3076. "type": "string",
  3077. "example": "Code has been verified"
  3078. },
  3079. "data": {
  3080. "description": "data from api",
  3081. "type": "string",
  3082. "example": null
  3083. }
  3084. },
  3085. "type": "object"
  3086. }
  3087. },
  3088. "type": "object"
  3089. },
  3090. "useInviteCode": {
  3091. "properties": {
  3092. "response": {
  3093. "properties": {
  3094. "result": {
  3095. "description": "success or error",
  3096. "type": "string",
  3097. "example": "success"
  3098. },
  3099. "message": {
  3100. "description": "success or error message",
  3101. "type": "string",
  3102. "example": "Plex/Emby User now has access to system"
  3103. },
  3104. "data": {
  3105. "description": "data from api",
  3106. "type": "string",
  3107. "example": null
  3108. }
  3109. },
  3110. "type": "object"
  3111. }
  3112. },
  3113. "type": "object"
  3114. },
  3115. "deleteInviteCode": {
  3116. "properties": {
  3117. "response": {
  3118. "properties": {
  3119. "result": {
  3120. "description": "success or error",
  3121. "type": "string",
  3122. "example": "success"
  3123. },
  3124. "message": {
  3125. "description": "success or error message",
  3126. "type": "string",
  3127. "example": "Code has been deleted"
  3128. },
  3129. "data": {
  3130. "description": "data from api",
  3131. "type": "string",
  3132. "example": null
  3133. }
  3134. },
  3135. "type": "object"
  3136. }
  3137. },
  3138. "type": "object"
  3139. },
  3140. "sendEmailData": {
  3141. "properties": {
  3142. "bcc": {
  3143. "description": "email of recipients (csv)",
  3144. "type": "string",
  3145. "example": "causefx@organizr.app,elmer@organizr.app"
  3146. },
  3147. "subject": {
  3148. "type": "string",
  3149. "example": "Hey There Buddy?!"
  3150. },
  3151. "body": {
  3152. "type": "string",
  3153. "example": "Hi! Boy, has it been a long time! Have you seen rox in socks?"
  3154. }
  3155. },
  3156. "type": "object"
  3157. },
  3158. "submit-2fa-verify": {
  3159. "properties": {
  3160. "secret": {
  3161. "type": "string",
  3162. "example": "OX1R4GA3425GSDF"
  3163. },
  3164. "code": {
  3165. "type": "string",
  3166. "example": "145047"
  3167. },
  3168. "type": {
  3169. "type": "string",
  3170. "example": "google"
  3171. }
  3172. },
  3173. "type": "object"
  3174. },
  3175. "submit-2fa-save": {
  3176. "properties": {
  3177. "secret": {
  3178. "type": "string",
  3179. "example": "OX1R4GA3425GSDF"
  3180. },
  3181. "type": {
  3182. "type": "string",
  3183. "example": "google"
  3184. }
  3185. },
  3186. "type": "object"
  3187. },
  3188. "submit-2fa-create": {
  3189. "properties": {
  3190. "type": {
  3191. "type": "string",
  3192. "example": "google"
  3193. }
  3194. },
  3195. "type": "object"
  3196. },
  3197. "get-html": {
  3198. "properties": {
  3199. "response": {
  3200. "properties": {
  3201. "result": {
  3202. "description": "success or error",
  3203. "type": "string",
  3204. "example": "success"
  3205. },
  3206. "message": {
  3207. "description": "success message or error message",
  3208. "type": "string",
  3209. "example": null
  3210. },
  3211. "data": {
  3212. "description": "data from api",
  3213. "type": "string",
  3214. "example": "\\r\\n\\u003Cscript\\u003E\\r\\n (function() {\\r\\n updateCheck();\\r\\n authDebugCheck();\\r\\n sponsorLoad();\\r\\n newsLoad();\\r\\n checkCommitLoad();\\r\\n [].slice.call(document.querySelectorAll('.sttabs-main-settings-div')).forEach(function(el) {\\r\\n new CBPFWTabs(el);\\r\\n });\\r\\n })();\\r\\n\\u003C/script\\u003E\\r\\n"
  3215. }
  3216. },
  3217. "type": "object"
  3218. }
  3219. },
  3220. "type": "object"
  3221. },
  3222. "plexRegister": {
  3223. "properties": {
  3224. "username": {
  3225. "type": "string",
  3226. "example": "causefx"
  3227. },
  3228. "email": {
  3229. "type": "string",
  3230. "example": "causefx@organizr.app"
  3231. },
  3232. "password": {
  3233. "type": "string",
  3234. "example": "iCanHazPa$$w0Rd"
  3235. }
  3236. },
  3237. "type": "object"
  3238. },
  3239. "ping": {
  3240. "properties": {
  3241. "response": {
  3242. "properties": {
  3243. "result": {
  3244. "description": "success or error",
  3245. "type": "string",
  3246. "example": "success"
  3247. },
  3248. "message": {
  3249. "description": "success or error message",
  3250. "type": "string",
  3251. "example": null
  3252. },
  3253. "data": {
  3254. "description": "data from api",
  3255. "type": "string",
  3256. "example": "pong"
  3257. }
  3258. },
  3259. "type": "object"
  3260. }
  3261. },
  3262. "type": "object"
  3263. },
  3264. "status": {
  3265. "properties": {
  3266. "response": {
  3267. "properties": {
  3268. "result": {
  3269. "description": "success or error",
  3270. "type": "string",
  3271. "example": "success"
  3272. },
  3273. "message": {
  3274. "description": "success or error message",
  3275. "type": "string",
  3276. "example": null
  3277. },
  3278. "data": {
  3279. "description": "data from api",
  3280. "properties": {
  3281. "status": {
  3282. "description": "success or error",
  3283. "type": "string",
  3284. "example": "ok"
  3285. },
  3286. "api_version": {
  3287. "type": "string",
  3288. "example": "2.0"
  3289. },
  3290. "organizr_version": {
  3291. "type": "string",
  3292. "example": "2.0.650"
  3293. }
  3294. },
  3295. "type": "object"
  3296. }
  3297. },
  3298. "type": "object"
  3299. }
  3300. },
  3301. "type": "object"
  3302. },
  3303. "pluginSettingsPage": {
  3304. "properties": {
  3305. "response": {
  3306. "properties": {
  3307. "result": {
  3308. "description": "success or error",
  3309. "type": "string",
  3310. "example": "success"
  3311. },
  3312. "message": {
  3313. "description": "success or error message",
  3314. "type": "string",
  3315. "example": null
  3316. },
  3317. "data": {
  3318. "description": "data from api",
  3319. "properties": {
  3320. "settingsPageObjectItem1": {
  3321. "type": "object"
  3322. },
  3323. "settingsPageObjectItem2": {
  3324. "type": "object"
  3325. },
  3326. "settingsPageObjectItem3": {
  3327. "type": "object"
  3328. }
  3329. },
  3330. "type": "object"
  3331. }
  3332. },
  3333. "type": "object"
  3334. }
  3335. },
  3336. "type": "object"
  3337. },
  3338. "successNullData": {
  3339. "properties": {
  3340. "response": {
  3341. "properties": {
  3342. "result": {
  3343. "description": "success or error",
  3344. "type": "string",
  3345. "example": "success"
  3346. },
  3347. "message": {
  3348. "description": "success message or error message",
  3349. "type": "string",
  3350. "example": null
  3351. },
  3352. "data": {
  3353. "description": "data from api",
  3354. "type": "string",
  3355. "example": null
  3356. }
  3357. },
  3358. "type": "object"
  3359. }
  3360. },
  3361. "type": "object"
  3362. },
  3363. "success-message": {
  3364. "properties": {
  3365. "response": {
  3366. "properties": {
  3367. "result": {
  3368. "description": "success or error",
  3369. "type": "string",
  3370. "example": "success"
  3371. },
  3372. "message": {
  3373. "description": "success message or error message",
  3374. "type": "string",
  3375. "example": "Successful message here"
  3376. },
  3377. "data": {
  3378. "description": "data from api",
  3379. "type": "string",
  3380. "example": null
  3381. }
  3382. },
  3383. "type": "object"
  3384. }
  3385. },
  3386. "type": "object"
  3387. },
  3388. "error-message": {
  3389. "properties": {
  3390. "response": {
  3391. "properties": {
  3392. "result": {
  3393. "description": "success or error",
  3394. "type": "string",
  3395. "example": "error"
  3396. },
  3397. "message": {
  3398. "description": "success message or error message",
  3399. "type": "string",
  3400. "example": "Error message here"
  3401. },
  3402. "data": {
  3403. "description": "data from api",
  3404. "type": "string",
  3405. "example": null
  3406. }
  3407. },
  3408. "type": "object"
  3409. }
  3410. },
  3411. "type": "object"
  3412. },
  3413. "unauthorized-message": {
  3414. "properties": {
  3415. "response": {
  3416. "properties": {
  3417. "result": {
  3418. "description": "success or error",
  3419. "type": "string",
  3420. "example": "error"
  3421. },
  3422. "message": {
  3423. "description": "success message or error message",
  3424. "type": "string",
  3425. "example": "User is not authorized"
  3426. },
  3427. "data": {
  3428. "description": "data from api",
  3429. "type": "string",
  3430. "example": null
  3431. }
  3432. },
  3433. "type": "object"
  3434. }
  3435. },
  3436. "type": "object"
  3437. },
  3438. "php-mailer-email-list": {
  3439. "properties": {
  3440. "response": {
  3441. "properties": {
  3442. "result": {
  3443. "description": "success or error",
  3444. "type": "string",
  3445. "example": "success"
  3446. },
  3447. "message": {
  3448. "description": "success or error message",
  3449. "type": "string",
  3450. "example": null
  3451. },
  3452. "data": {
  3453. "description": "data from api",
  3454. "type": "array",
  3455. "items": {
  3456. "properties": {
  3457. "causefx": {
  3458. "type": "string",
  3459. "example": "causefx@organizr.app"
  3460. }
  3461. },
  3462. "type": "object"
  3463. }
  3464. }
  3465. },
  3466. "type": "object"
  3467. }
  3468. },
  3469. "type": "object"
  3470. },
  3471. "config-items-example": {
  3472. "description": "list of config items to update",
  3473. "properties": {
  3474. "branch": {
  3475. "description": "config item name",
  3476. "type": "string",
  3477. "example": "v2-master"
  3478. },
  3479. "hideRegistration": {
  3480. "type": "boolean",
  3481. "example": false
  3482. },
  3483. "homepageUnifiAuth": {
  3484. "type": "string",
  3485. "example": "1"
  3486. }
  3487. },
  3488. "type": "object"
  3489. }
  3490. },
  3491. "securitySchemes": {
  3492. "api_key": {
  3493. "type": "apiKey",
  3494. "name": "Token",
  3495. "in": "header"
  3496. }
  3497. }
  3498. },
  3499. "tags": [
  3500. {
  3501. "name": "plugins-chat",
  3502. "description": "Pusher Chat Plugin"
  3503. },
  3504. {
  3505. "name": "plugins-healthchecks",
  3506. "description": "Healthchecks.io Ping Plugin"
  3507. },
  3508. {
  3509. "name": "plugins-invites",
  3510. "description": "Media Invite Plugin"
  3511. },
  3512. {
  3513. "name": "plugins-php-mailer",
  3514. "description": "PHP Mailer Plugin"
  3515. },
  3516. {
  3517. "name": "plugins-speedtest",
  3518. "description": "SpeedTest Plugin"
  3519. },
  3520. {
  3521. "name": "2fa",
  3522. "description": "Two Form Authentication"
  3523. },
  3524. {
  3525. "name": "categories",
  3526. "description": "Category Information"
  3527. },
  3528. {
  3529. "name": "config",
  3530. "description": "Organizr Configuration Items"
  3531. },
  3532. {
  3533. "name": "test connection",
  3534. "description": "Test Connections"
  3535. },
  3536. {
  3537. "name": "emby"
  3538. },
  3539. {
  3540. "name": "page",
  3541. "description": "HTML for Organizr Pages"
  3542. },
  3543. {
  3544. "name": "plex"
  3545. },
  3546. {
  3547. "name": "plugins"
  3548. },
  3549. {
  3550. "name": "update",
  3551. "description": "Organizr Update"
  3552. }
  3553. ]
  3554. }