api.json 133 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674
  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/jellyfin": {
  1336. "post": {
  1337. "tags": [
  1338. "test connection"
  1339. ],
  1340. "summary": "Test connection to Jellyfin",
  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/sabnzbd": {
  1391. "post": {
  1392. "tags": [
  1393. "test connection"
  1394. ],
  1395. "summary": "Test connection to SabNZBd",
  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/pihole": {
  1446. "post": {
  1447. "tags": [
  1448. "test connection"
  1449. ],
  1450. "summary": "Test connection to PiHole",
  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/rtorrent": {
  1501. "post": {
  1502. "tags": [
  1503. "test connection"
  1504. ],
  1505. "summary": "Test connection to rTorrent",
  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/sonarr": {
  1556. "post": {
  1557. "tags": [
  1558. "test connection"
  1559. ],
  1560. "summary": "Test connection to Sonarr",
  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/radarr": {
  1611. "post": {
  1612. "tags": [
  1613. "test connection"
  1614. ],
  1615. "summary": "Test connection to Radarr",
  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/lidarr": {
  1666. "post": {
  1667. "tags": [
  1668. "test connection"
  1669. ],
  1670. "summary": "Test connection to Lidarr",
  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/sickrage": {
  1721. "post": {
  1722. "tags": [
  1723. "test connection"
  1724. ],
  1725. "summary": "Test connection to SickRage",
  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/ombi": {
  1776. "post": {
  1777. "tags": [
  1778. "test connection"
  1779. ],
  1780. "summary": "Test connection to Ombi",
  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/nzbget": {
  1831. "post": {
  1832. "tags": [
  1833. "test connection"
  1834. ],
  1835. "summary": "Test connection to NzbGet",
  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/deluge": {
  1886. "post": {
  1887. "tags": [
  1888. "test connection"
  1889. ],
  1890. "summary": "Test connection to Deluge",
  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/jdownloader": {
  1941. "post": {
  1942. "tags": [
  1943. "test connection"
  1944. ],
  1945. "summary": "Test connection to jDownloader",
  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/transmission": {
  1996. "post": {
  1997. "tags": [
  1998. "test connection"
  1999. ],
  2000. "summary": "Test connection to Transmission",
  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/qbittorrent": {
  2051. "post": {
  2052. "tags": [
  2053. "test connection"
  2054. ],
  2055. "summary": "Test connection to qBittorrent",
  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": {
  2106. "post": {
  2107. "tags": [
  2108. "test connection"
  2109. ],
  2110. "summary": "Test connection to Unifi",
  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/unifi/site": {
  2161. "post": {
  2162. "tags": [
  2163. "test connection"
  2164. ],
  2165. "summary": "Test connection to Unifi Sites",
  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/test/tautulli": {
  2216. "post": {
  2217. "tags": [
  2218. "test connection"
  2219. ],
  2220. "summary": "Test connection to Tautulli",
  2221. "responses": {
  2222. "200": {
  2223. "description": "Success",
  2224. "content": {
  2225. "application/json": {
  2226. "schema": {
  2227. "$ref": "#/components/schemas/success-message"
  2228. }
  2229. }
  2230. }
  2231. },
  2232. "401": {
  2233. "description": "Unauthorized",
  2234. "content": {
  2235. "application/json": {
  2236. "schema": {
  2237. "$ref": "#/components/schemas/unauthorized-message"
  2238. }
  2239. }
  2240. }
  2241. },
  2242. "422": {
  2243. "description": "Error",
  2244. "content": {
  2245. "application/json": {
  2246. "schema": {
  2247. "$ref": "#/components/schemas/error-message"
  2248. }
  2249. }
  2250. }
  2251. },
  2252. "500": {
  2253. "description": "Error",
  2254. "content": {
  2255. "application/json": {
  2256. "schema": {
  2257. "$ref": "#/components/schemas/error-message"
  2258. }
  2259. }
  2260. }
  2261. }
  2262. },
  2263. "security": [
  2264. {
  2265. "api_key": []
  2266. }
  2267. ]
  2268. }
  2269. },
  2270. "/api/v2/emby/register": {
  2271. "post": {
  2272. "tags": [
  2273. "emby"
  2274. ],
  2275. "summary": "Register a user using Emby API",
  2276. "responses": {
  2277. "200": {
  2278. "description": "Success",
  2279. "content": {
  2280. "application/json": {
  2281. "schema": {
  2282. "$ref": "#/components/schemas/status"
  2283. }
  2284. }
  2285. }
  2286. },
  2287. "401": {
  2288. "description": "Unauthorized"
  2289. }
  2290. }
  2291. }
  2292. },
  2293. "/api/v2/page/{page}": {
  2294. "get": {
  2295. "tags": [
  2296. "page"
  2297. ],
  2298. "summary": "Get HTML for Organizr Pages",
  2299. "parameters": [
  2300. {
  2301. "name": "page",
  2302. "in": "path",
  2303. "description": "Page to get",
  2304. "required": true,
  2305. "schema": {
  2306. "type": "string"
  2307. }
  2308. }
  2309. ],
  2310. "responses": {
  2311. "200": {
  2312. "description": "Success",
  2313. "content": {
  2314. "application/json": {
  2315. "schema": {
  2316. "$ref": "#/components/schemas/get-html"
  2317. }
  2318. }
  2319. }
  2320. },
  2321. "401": {
  2322. "description": "Unauthorized"
  2323. }
  2324. },
  2325. "security": [
  2326. {
  2327. "api_key": []
  2328. }
  2329. ]
  2330. }
  2331. },
  2332. "/api/v2/page": {
  2333. "get": {
  2334. "tags": [
  2335. "page"
  2336. ],
  2337. "summary": "Get list of all Organizr Pages",
  2338. "responses": {
  2339. "200": {
  2340. "description": "Success",
  2341. "content": {
  2342. "application/json": {
  2343. "schema": {
  2344. "$ref": "#/components/schemas/get-html"
  2345. }
  2346. }
  2347. }
  2348. },
  2349. "401": {
  2350. "description": "Unauthorized"
  2351. }
  2352. },
  2353. "security": [
  2354. {
  2355. "api_key": []
  2356. }
  2357. ]
  2358. }
  2359. },
  2360. "/api/v2/ping": {
  2361. "get": {
  2362. "summary": "Ping the Organizr API",
  2363. "responses": {
  2364. "200": {
  2365. "description": "Success",
  2366. "content": {
  2367. "application/json": {
  2368. "schema": {
  2369. "$ref": "#/components/schemas/ping"
  2370. }
  2371. }
  2372. }
  2373. },
  2374. "401": {
  2375. "description": "Unauthorized"
  2376. }
  2377. }
  2378. }
  2379. },
  2380. "/api/v2/plex/register": {
  2381. "post": {
  2382. "tags": [
  2383. "plex"
  2384. ],
  2385. "summary": "Register a user using Plex API",
  2386. "requestBody": {
  2387. "description": "Success",
  2388. "required": true,
  2389. "content": {
  2390. "application/json": {
  2391. "schema": {
  2392. "$ref": "#/components/schemas/plexRegister"
  2393. }
  2394. }
  2395. }
  2396. },
  2397. "responses": {
  2398. "200": {
  2399. "description": "Success",
  2400. "content": {
  2401. "application/json": {
  2402. "schema": {
  2403. "$ref": "#/components/schemas/status"
  2404. }
  2405. }
  2406. }
  2407. },
  2408. "401": {
  2409. "description": "Unauthorized"
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "/api/v2/status": {
  2415. "get": {
  2416. "summary": "Query Organizr API to perform a Status Check",
  2417. "responses": {
  2418. "200": {
  2419. "description": "Success",
  2420. "content": {
  2421. "application/json": {
  2422. "schema": {
  2423. "$ref": "#/components/schemas/status"
  2424. }
  2425. }
  2426. }
  2427. },
  2428. "401": {
  2429. "description": "Unauthorized"
  2430. }
  2431. }
  2432. }
  2433. },
  2434. "/api/v2/auth": {
  2435. "get": {
  2436. "summary": "Nginx auth_request",
  2437. "parameters": [
  2438. {
  2439. "name": "group",
  2440. "in": "query",
  2441. "description": "The id of the group allowed",
  2442. "required": false,
  2443. "schema": {
  2444. "type": "integer",
  2445. "format": "int64"
  2446. }
  2447. },
  2448. {
  2449. "name": "whitelist",
  2450. "in": "query",
  2451. "description": "Whitelisted Ip's",
  2452. "required": false,
  2453. "explode": false,
  2454. "schema": {
  2455. "type": "array",
  2456. "items": {
  2457. "type": "string"
  2458. }
  2459. }
  2460. },
  2461. {
  2462. "name": "blacklist",
  2463. "in": "query",
  2464. "description": "Blacklisted Ip's",
  2465. "required": false,
  2466. "explode": false,
  2467. "schema": {
  2468. "type": "array",
  2469. "items": {
  2470. "type": "string"
  2471. }
  2472. }
  2473. }
  2474. ],
  2475. "responses": {
  2476. "200": {
  2477. "description": "Success"
  2478. },
  2479. "401": {
  2480. "description": "Unauthorized"
  2481. }
  2482. }
  2483. }
  2484. },
  2485. "/api/v2/update/download/{branch}": {
  2486. "get": {
  2487. "tags": [
  2488. "update"
  2489. ],
  2490. "summary": "Download Organizr Update Files",
  2491. "responses": {
  2492. "200": {
  2493. "description": "Success",
  2494. "content": {
  2495. "application/json": {
  2496. "schema": {
  2497. "$ref": "#/components/schemas/success-message"
  2498. }
  2499. }
  2500. }
  2501. },
  2502. "401": {
  2503. "description": "Unauthorized",
  2504. "content": {
  2505. "application/json": {
  2506. "schema": {
  2507. "$ref": "#/components/schemas/unauthorized-message"
  2508. }
  2509. }
  2510. }
  2511. },
  2512. "404": {
  2513. "description": "Error",
  2514. "content": {
  2515. "application/json": {
  2516. "schema": {
  2517. "$ref": "#/components/schemas/error-message"
  2518. }
  2519. }
  2520. }
  2521. },
  2522. "422": {
  2523. "description": "Error",
  2524. "content": {
  2525. "application/json": {
  2526. "schema": {
  2527. "$ref": "#/components/schemas/error-message"
  2528. }
  2529. }
  2530. }
  2531. },
  2532. "500": {
  2533. "description": "Error",
  2534. "content": {
  2535. "application/json": {
  2536. "schema": {
  2537. "$ref": "#/components/schemas/error-message"
  2538. }
  2539. }
  2540. }
  2541. }
  2542. },
  2543. "security": [
  2544. {
  2545. "api_key": []
  2546. }
  2547. ]
  2548. }
  2549. },
  2550. "/api/v2/update/unzip/{branch}": {
  2551. "get": {
  2552. "tags": [
  2553. "update"
  2554. ],
  2555. "summary": "Unzip Organizr Update Files",
  2556. "responses": {
  2557. "200": {
  2558. "description": "Success",
  2559. "content": {
  2560. "application/json": {
  2561. "schema": {
  2562. "$ref": "#/components/schemas/success-message"
  2563. }
  2564. }
  2565. }
  2566. },
  2567. "401": {
  2568. "description": "Unauthorized",
  2569. "content": {
  2570. "application/json": {
  2571. "schema": {
  2572. "$ref": "#/components/schemas/unauthorized-message"
  2573. }
  2574. }
  2575. }
  2576. },
  2577. "404": {
  2578. "description": "Error",
  2579. "content": {
  2580. "application/json": {
  2581. "schema": {
  2582. "$ref": "#/components/schemas/error-message"
  2583. }
  2584. }
  2585. }
  2586. },
  2587. "422": {
  2588. "description": "Error",
  2589. "content": {
  2590. "application/json": {
  2591. "schema": {
  2592. "$ref": "#/components/schemas/error-message"
  2593. }
  2594. }
  2595. }
  2596. },
  2597. "500": {
  2598. "description": "Error",
  2599. "content": {
  2600. "application/json": {
  2601. "schema": {
  2602. "$ref": "#/components/schemas/error-message"
  2603. }
  2604. }
  2605. }
  2606. }
  2607. },
  2608. "security": [
  2609. {
  2610. "api_key": []
  2611. }
  2612. ]
  2613. }
  2614. },
  2615. "/api/v2/update/move/{branch}": {
  2616. "get": {
  2617. "tags": [
  2618. "update"
  2619. ],
  2620. "summary": "Move Organizr Update Files",
  2621. "responses": {
  2622. "200": {
  2623. "description": "Success",
  2624. "content": {
  2625. "application/json": {
  2626. "schema": {
  2627. "$ref": "#/components/schemas/success-message"
  2628. }
  2629. }
  2630. }
  2631. },
  2632. "401": {
  2633. "description": "Unauthorized",
  2634. "content": {
  2635. "application/json": {
  2636. "schema": {
  2637. "$ref": "#/components/schemas/unauthorized-message"
  2638. }
  2639. }
  2640. }
  2641. },
  2642. "404": {
  2643. "description": "Error",
  2644. "content": {
  2645. "application/json": {
  2646. "schema": {
  2647. "$ref": "#/components/schemas/error-message"
  2648. }
  2649. }
  2650. }
  2651. },
  2652. "422": {
  2653. "description": "Error",
  2654. "content": {
  2655. "application/json": {
  2656. "schema": {
  2657. "$ref": "#/components/schemas/error-message"
  2658. }
  2659. }
  2660. }
  2661. },
  2662. "500": {
  2663. "description": "Error",
  2664. "content": {
  2665. "application/json": {
  2666. "schema": {
  2667. "$ref": "#/components/schemas/error-message"
  2668. }
  2669. }
  2670. }
  2671. }
  2672. },
  2673. "security": [
  2674. {
  2675. "api_key": []
  2676. }
  2677. ]
  2678. }
  2679. },
  2680. "/api/v2/update/cleanup/{branch}": {
  2681. "get": {
  2682. "tags": [
  2683. "update"
  2684. ],
  2685. "summary": "Cleanup Organizr Update Files",
  2686. "responses": {
  2687. "200": {
  2688. "description": "Success",
  2689. "content": {
  2690. "application/json": {
  2691. "schema": {
  2692. "$ref": "#/components/schemas/success-message"
  2693. }
  2694. }
  2695. }
  2696. },
  2697. "401": {
  2698. "description": "Unauthorized",
  2699. "content": {
  2700. "application/json": {
  2701. "schema": {
  2702. "$ref": "#/components/schemas/unauthorized-message"
  2703. }
  2704. }
  2705. }
  2706. },
  2707. "404": {
  2708. "description": "Error",
  2709. "content": {
  2710. "application/json": {
  2711. "schema": {
  2712. "$ref": "#/components/schemas/error-message"
  2713. }
  2714. }
  2715. }
  2716. },
  2717. "422": {
  2718. "description": "Error",
  2719. "content": {
  2720. "application/json": {
  2721. "schema": {
  2722. "$ref": "#/components/schemas/error-message"
  2723. }
  2724. }
  2725. }
  2726. },
  2727. "500": {
  2728. "description": "Error",
  2729. "content": {
  2730. "application/json": {
  2731. "schema": {
  2732. "$ref": "#/components/schemas/error-message"
  2733. }
  2734. }
  2735. }
  2736. }
  2737. },
  2738. "security": [
  2739. {
  2740. "api_key": []
  2741. }
  2742. ]
  2743. }
  2744. },
  2745. "/api/v2/update/docker": {
  2746. "get": {
  2747. "tags": [
  2748. "update"
  2749. ],
  2750. "summary": "Update Organizr install using Docker Container script",
  2751. "responses": {
  2752. "200": {
  2753. "description": "Success",
  2754. "content": {
  2755. "application/json": {
  2756. "schema": {
  2757. "$ref": "#/components/schemas/success-message"
  2758. }
  2759. }
  2760. }
  2761. },
  2762. "401": {
  2763. "description": "Unauthorized",
  2764. "content": {
  2765. "application/json": {
  2766. "schema": {
  2767. "$ref": "#/components/schemas/unauthorized-message"
  2768. }
  2769. }
  2770. }
  2771. },
  2772. "404": {
  2773. "description": "Error",
  2774. "content": {
  2775. "application/json": {
  2776. "schema": {
  2777. "$ref": "#/components/schemas/error-message"
  2778. }
  2779. }
  2780. }
  2781. },
  2782. "422": {
  2783. "description": "Error",
  2784. "content": {
  2785. "application/json": {
  2786. "schema": {
  2787. "$ref": "#/components/schemas/error-message"
  2788. }
  2789. }
  2790. }
  2791. },
  2792. "500": {
  2793. "description": "Error",
  2794. "content": {
  2795. "application/json": {
  2796. "schema": {
  2797. "$ref": "#/components/schemas/error-message"
  2798. }
  2799. }
  2800. }
  2801. }
  2802. },
  2803. "security": [
  2804. {
  2805. "api_key": []
  2806. }
  2807. ]
  2808. }
  2809. },
  2810. "/api/v2/update/windows": {
  2811. "get": {
  2812. "tags": [
  2813. "update"
  2814. ],
  2815. "summary": "Update Organizr install using Windows script",
  2816. "responses": {
  2817. "200": {
  2818. "description": "Success",
  2819. "content": {
  2820. "application/json": {
  2821. "schema": {
  2822. "$ref": "#/components/schemas/success-message"
  2823. }
  2824. }
  2825. }
  2826. },
  2827. "401": {
  2828. "description": "Unauthorized",
  2829. "content": {
  2830. "application/json": {
  2831. "schema": {
  2832. "$ref": "#/components/schemas/unauthorized-message"
  2833. }
  2834. }
  2835. }
  2836. },
  2837. "404": {
  2838. "description": "Error",
  2839. "content": {
  2840. "application/json": {
  2841. "schema": {
  2842. "$ref": "#/components/schemas/error-message"
  2843. }
  2844. }
  2845. }
  2846. },
  2847. "422": {
  2848. "description": "Error",
  2849. "content": {
  2850. "application/json": {
  2851. "schema": {
  2852. "$ref": "#/components/schemas/error-message"
  2853. }
  2854. }
  2855. }
  2856. },
  2857. "500": {
  2858. "description": "Error",
  2859. "content": {
  2860. "application/json": {
  2861. "schema": {
  2862. "$ref": "#/components/schemas/error-message"
  2863. }
  2864. }
  2865. }
  2866. }
  2867. },
  2868. "security": [
  2869. {
  2870. "api_key": []
  2871. }
  2872. ]
  2873. }
  2874. },
  2875. "/api/v2/update/migrate/{version}": {
  2876. "get": {
  2877. "tags": [
  2878. "update"
  2879. ],
  2880. "summary": "Run Organizr Version Mirgation for specific version",
  2881. "responses": {
  2882. "200": {
  2883. "description": "Success",
  2884. "content": {
  2885. "application/json": {
  2886. "schema": {
  2887. "$ref": "#/components/schemas/success-message"
  2888. }
  2889. }
  2890. }
  2891. },
  2892. "401": {
  2893. "description": "Unauthorized",
  2894. "content": {
  2895. "application/json": {
  2896. "schema": {
  2897. "$ref": "#/components/schemas/unauthorized-message"
  2898. }
  2899. }
  2900. }
  2901. },
  2902. "404": {
  2903. "description": "Error",
  2904. "content": {
  2905. "application/json": {
  2906. "schema": {
  2907. "$ref": "#/components/schemas/error-message"
  2908. }
  2909. }
  2910. }
  2911. },
  2912. "422": {
  2913. "description": "Error",
  2914. "content": {
  2915. "application/json": {
  2916. "schema": {
  2917. "$ref": "#/components/schemas/error-message"
  2918. }
  2919. }
  2920. }
  2921. },
  2922. "500": {
  2923. "description": "Error",
  2924. "content": {
  2925. "application/json": {
  2926. "schema": {
  2927. "$ref": "#/components/schemas/error-message"
  2928. }
  2929. }
  2930. }
  2931. }
  2932. },
  2933. "security": [
  2934. {
  2935. "api_key": []
  2936. }
  2937. ]
  2938. }
  2939. }
  2940. },
  2941. "components": {
  2942. "schemas": {
  2943. "getChatMessages": {
  2944. "properties": {
  2945. "response": {
  2946. "properties": {
  2947. "result": {
  2948. "description": "success or error",
  2949. "type": "string",
  2950. "example": "success"
  2951. },
  2952. "message": {
  2953. "description": "success or error message",
  2954. "type": "string",
  2955. "example": null
  2956. },
  2957. "data": {
  2958. "description": "data from api",
  2959. "type": "array",
  2960. "items": {
  2961. "properties": {
  2962. "username": {
  2963. "type": "string",
  2964. "example": "causefx"
  2965. },
  2966. "date": {
  2967. "type": "string",
  2968. "example": "2018-09-01 02:02:24"
  2969. },
  2970. "gravatar": {
  2971. "type": "string",
  2972. "example": "https://www.gravatar.com/avatar/a47c4a4b915ddf9601cd228f890bc366?s=100&d=mm"
  2973. },
  2974. "message": {
  2975. "type": "string",
  2976. "example": "ok first message!"
  2977. },
  2978. "uid": {
  2979. "type": "string",
  2980. "example": "f5287"
  2981. }
  2982. },
  2983. "type": "object"
  2984. }
  2985. }
  2986. },
  2987. "type": "object"
  2988. }
  2989. },
  2990. "type": "object"
  2991. },
  2992. "submitMessageData": {
  2993. "properties": {
  2994. "message": {
  2995. "type": "string",
  2996. "example": "This is my message"
  2997. }
  2998. },
  2999. "type": "object"
  3000. },
  3001. "submitMessage": {
  3002. "properties": {
  3003. "response": {
  3004. "properties": {
  3005. "result": {
  3006. "description": "success or error",
  3007. "type": "string",
  3008. "example": "success"
  3009. },
  3010. "message": {
  3011. "description": "success or error message",
  3012. "type": "string",
  3013. "example": "message has been accepted"
  3014. },
  3015. "data": {
  3016. "description": "data from api",
  3017. "type": "string",
  3018. "example": null
  3019. }
  3020. },
  3021. "type": "object"
  3022. }
  3023. },
  3024. "type": "object"
  3025. },
  3026. "healthChecksRun": {
  3027. "properties": {
  3028. "response": {
  3029. "properties": {
  3030. "result": {
  3031. "description": "success or error",
  3032. "type": "string",
  3033. "example": "success"
  3034. },
  3035. "message": {
  3036. "description": "success or error message",
  3037. "type": "string",
  3038. "example": null
  3039. },
  3040. "data": {
  3041. "description": "data from api",
  3042. "type": "array",
  3043. "items": {
  3044. "properties": {
  3045. "Service Name": {
  3046. "type": "string",
  3047. "example": "Radarr"
  3048. },
  3049. "UUID": {
  3050. "type": "string",
  3051. "example": "883f0097-8f4c-4ca5-a9cf-053cfab8e334"
  3052. },
  3053. "External URL": {
  3054. "type": "string",
  3055. "example": "https://radarr.com"
  3056. },
  3057. "Internal URL": {
  3058. "type": "string",
  3059. "example": "http://radarr:7878"
  3060. },
  3061. "Enabled": {
  3062. "type": "string",
  3063. "example": "true"
  3064. },
  3065. "results": {
  3066. "type": "array",
  3067. "items": {
  3068. "properties": {
  3069. "internal": {
  3070. "type": "string",
  3071. "example": "Success"
  3072. },
  3073. "external": {
  3074. "type": "string",
  3075. "example": "Success"
  3076. }
  3077. },
  3078. "type": "object"
  3079. }
  3080. }
  3081. },
  3082. "type": "object"
  3083. }
  3084. }
  3085. },
  3086. "type": "object"
  3087. }
  3088. },
  3089. "type": "object"
  3090. },
  3091. "getInvites": {
  3092. "properties": {
  3093. "response": {
  3094. "properties": {
  3095. "result": {
  3096. "description": "success or error",
  3097. "type": "string",
  3098. "example": "success"
  3099. },
  3100. "message": {
  3101. "description": "success or error message",
  3102. "type": "string",
  3103. "example": null
  3104. },
  3105. "data": {
  3106. "description": "data from api",
  3107. "type": "array",
  3108. "items": {
  3109. "properties": {
  3110. "id": {
  3111. "type": "number",
  3112. "example": 1
  3113. },
  3114. "code": {
  3115. "type": "string",
  3116. "example": "NN9JH9"
  3117. },
  3118. "date": {
  3119. "type": "string",
  3120. "example": "2018-09-01 02:02:24"
  3121. },
  3122. "email": {
  3123. "type": "string",
  3124. "example": "causefX@organizr.app"
  3125. },
  3126. "username": {
  3127. "type": "string",
  3128. "example": "causefx"
  3129. },
  3130. "dateused": {
  3131. "type": "string",
  3132. "example": "2018-09-01 02:02:24"
  3133. },
  3134. "usedby": {
  3135. "type": "string",
  3136. "example": "causefx"
  3137. },
  3138. "ip": {
  3139. "type": "string",
  3140. "example": "10.0.0.0"
  3141. },
  3142. "valid": {
  3143. "type": "string",
  3144. "example": "No"
  3145. },
  3146. "type": {
  3147. "type": "string",
  3148. "example": "Plex"
  3149. }
  3150. },
  3151. "type": "object"
  3152. }
  3153. }
  3154. },
  3155. "type": "object"
  3156. }
  3157. },
  3158. "type": "object"
  3159. },
  3160. "createInviteCode": {
  3161. "properties": {
  3162. "response": {
  3163. "properties": {
  3164. "result": {
  3165. "description": "success or error",
  3166. "type": "string",
  3167. "example": "success"
  3168. },
  3169. "message": {
  3170. "description": "success or error message",
  3171. "type": "string",
  3172. "example": "Invite Code: XYXYXY has been created"
  3173. },
  3174. "data": {
  3175. "description": "data from api",
  3176. "type": "string",
  3177. "example": null
  3178. }
  3179. },
  3180. "type": "object"
  3181. }
  3182. },
  3183. "type": "object"
  3184. },
  3185. "verifyInviteCode": {
  3186. "properties": {
  3187. "response": {
  3188. "properties": {
  3189. "result": {
  3190. "description": "success or error",
  3191. "type": "string",
  3192. "example": "success"
  3193. },
  3194. "message": {
  3195. "description": "success or error message",
  3196. "type": "string",
  3197. "example": "Code has been verified"
  3198. },
  3199. "data": {
  3200. "description": "data from api",
  3201. "type": "string",
  3202. "example": null
  3203. }
  3204. },
  3205. "type": "object"
  3206. }
  3207. },
  3208. "type": "object"
  3209. },
  3210. "useInviteCode": {
  3211. "properties": {
  3212. "response": {
  3213. "properties": {
  3214. "result": {
  3215. "description": "success or error",
  3216. "type": "string",
  3217. "example": "success"
  3218. },
  3219. "message": {
  3220. "description": "success or error message",
  3221. "type": "string",
  3222. "example": "Plex/Emby User now has access to system"
  3223. },
  3224. "data": {
  3225. "description": "data from api",
  3226. "type": "string",
  3227. "example": null
  3228. }
  3229. },
  3230. "type": "object"
  3231. }
  3232. },
  3233. "type": "object"
  3234. },
  3235. "deleteInviteCode": {
  3236. "properties": {
  3237. "response": {
  3238. "properties": {
  3239. "result": {
  3240. "description": "success or error",
  3241. "type": "string",
  3242. "example": "success"
  3243. },
  3244. "message": {
  3245. "description": "success or error message",
  3246. "type": "string",
  3247. "example": "Code has been deleted"
  3248. },
  3249. "data": {
  3250. "description": "data from api",
  3251. "type": "string",
  3252. "example": null
  3253. }
  3254. },
  3255. "type": "object"
  3256. }
  3257. },
  3258. "type": "object"
  3259. },
  3260. "sendEmailData": {
  3261. "properties": {
  3262. "bcc": {
  3263. "description": "email of recipients (csv)",
  3264. "type": "string",
  3265. "example": "causefx@organizr.app,elmer@organizr.app"
  3266. },
  3267. "subject": {
  3268. "type": "string",
  3269. "example": "Hey There Buddy?!"
  3270. },
  3271. "body": {
  3272. "type": "string",
  3273. "example": "Hi! Boy, has it been a long time! Have you seen rox in socks?"
  3274. }
  3275. },
  3276. "type": "object"
  3277. },
  3278. "submit-2fa-verify": {
  3279. "properties": {
  3280. "secret": {
  3281. "type": "string",
  3282. "example": "OX1R4GA3425GSDF"
  3283. },
  3284. "code": {
  3285. "type": "string",
  3286. "example": "145047"
  3287. },
  3288. "type": {
  3289. "type": "string",
  3290. "example": "google"
  3291. }
  3292. },
  3293. "type": "object"
  3294. },
  3295. "submit-2fa-save": {
  3296. "properties": {
  3297. "secret": {
  3298. "type": "string",
  3299. "example": "OX1R4GA3425GSDF"
  3300. },
  3301. "type": {
  3302. "type": "string",
  3303. "example": "google"
  3304. }
  3305. },
  3306. "type": "object"
  3307. },
  3308. "submit-2fa-create": {
  3309. "properties": {
  3310. "type": {
  3311. "type": "string",
  3312. "example": "google"
  3313. }
  3314. },
  3315. "type": "object"
  3316. },
  3317. "get-html": {
  3318. "properties": {
  3319. "response": {
  3320. "properties": {
  3321. "result": {
  3322. "description": "success or error",
  3323. "type": "string",
  3324. "example": "success"
  3325. },
  3326. "message": {
  3327. "description": "success message or error message",
  3328. "type": "string",
  3329. "example": null
  3330. },
  3331. "data": {
  3332. "description": "data from api",
  3333. "type": "string",
  3334. "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"
  3335. }
  3336. },
  3337. "type": "object"
  3338. }
  3339. },
  3340. "type": "object"
  3341. },
  3342. "plexRegister": {
  3343. "properties": {
  3344. "username": {
  3345. "type": "string",
  3346. "example": "causefx"
  3347. },
  3348. "email": {
  3349. "type": "string",
  3350. "example": "causefx@organizr.app"
  3351. },
  3352. "password": {
  3353. "type": "string",
  3354. "example": "iCanHazPa$$w0Rd"
  3355. }
  3356. },
  3357. "type": "object"
  3358. },
  3359. "ping": {
  3360. "properties": {
  3361. "response": {
  3362. "properties": {
  3363. "result": {
  3364. "description": "success or error",
  3365. "type": "string",
  3366. "example": "success"
  3367. },
  3368. "message": {
  3369. "description": "success or error message",
  3370. "type": "string",
  3371. "example": null
  3372. },
  3373. "data": {
  3374. "description": "data from api",
  3375. "type": "string",
  3376. "example": "pong"
  3377. }
  3378. },
  3379. "type": "object"
  3380. }
  3381. },
  3382. "type": "object"
  3383. },
  3384. "status": {
  3385. "properties": {
  3386. "response": {
  3387. "properties": {
  3388. "result": {
  3389. "description": "success or error",
  3390. "type": "string",
  3391. "example": "success"
  3392. },
  3393. "message": {
  3394. "description": "success or error message",
  3395. "type": "string",
  3396. "example": null
  3397. },
  3398. "data": {
  3399. "description": "data from api",
  3400. "properties": {
  3401. "status": {
  3402. "description": "success or error",
  3403. "type": "string",
  3404. "example": "ok"
  3405. },
  3406. "api_version": {
  3407. "type": "string",
  3408. "example": "2.0"
  3409. },
  3410. "organizr_version": {
  3411. "type": "string",
  3412. "example": "2.0.650"
  3413. }
  3414. },
  3415. "type": "object"
  3416. }
  3417. },
  3418. "type": "object"
  3419. }
  3420. },
  3421. "type": "object"
  3422. },
  3423. "pluginSettingsPage": {
  3424. "properties": {
  3425. "response": {
  3426. "properties": {
  3427. "result": {
  3428. "description": "success or error",
  3429. "type": "string",
  3430. "example": "success"
  3431. },
  3432. "message": {
  3433. "description": "success or error message",
  3434. "type": "string",
  3435. "example": null
  3436. },
  3437. "data": {
  3438. "description": "data from api",
  3439. "properties": {
  3440. "settingsPageObjectItem1": {
  3441. "type": "object"
  3442. },
  3443. "settingsPageObjectItem2": {
  3444. "type": "object"
  3445. },
  3446. "settingsPageObjectItem3": {
  3447. "type": "object"
  3448. }
  3449. },
  3450. "type": "object"
  3451. }
  3452. },
  3453. "type": "object"
  3454. }
  3455. },
  3456. "type": "object"
  3457. },
  3458. "successNullData": {
  3459. "properties": {
  3460. "response": {
  3461. "properties": {
  3462. "result": {
  3463. "description": "success or error",
  3464. "type": "string",
  3465. "example": "success"
  3466. },
  3467. "message": {
  3468. "description": "success message or error message",
  3469. "type": "string",
  3470. "example": null
  3471. },
  3472. "data": {
  3473. "description": "data from api",
  3474. "type": "string",
  3475. "example": null
  3476. }
  3477. },
  3478. "type": "object"
  3479. }
  3480. },
  3481. "type": "object"
  3482. },
  3483. "success-message": {
  3484. "properties": {
  3485. "response": {
  3486. "properties": {
  3487. "result": {
  3488. "description": "success or error",
  3489. "type": "string",
  3490. "example": "success"
  3491. },
  3492. "message": {
  3493. "description": "success message or error message",
  3494. "type": "string",
  3495. "example": "Successful message here"
  3496. },
  3497. "data": {
  3498. "description": "data from api",
  3499. "type": "string",
  3500. "example": null
  3501. }
  3502. },
  3503. "type": "object"
  3504. }
  3505. },
  3506. "type": "object"
  3507. },
  3508. "error-message": {
  3509. "properties": {
  3510. "response": {
  3511. "properties": {
  3512. "result": {
  3513. "description": "success or error",
  3514. "type": "string",
  3515. "example": "error"
  3516. },
  3517. "message": {
  3518. "description": "success message or error message",
  3519. "type": "string",
  3520. "example": "Error message here"
  3521. },
  3522. "data": {
  3523. "description": "data from api",
  3524. "type": "string",
  3525. "example": null
  3526. }
  3527. },
  3528. "type": "object"
  3529. }
  3530. },
  3531. "type": "object"
  3532. },
  3533. "unauthorized-message": {
  3534. "properties": {
  3535. "response": {
  3536. "properties": {
  3537. "result": {
  3538. "description": "success or error",
  3539. "type": "string",
  3540. "example": "error"
  3541. },
  3542. "message": {
  3543. "description": "success message or error message",
  3544. "type": "string",
  3545. "example": "User is not authorized"
  3546. },
  3547. "data": {
  3548. "description": "data from api",
  3549. "type": "string",
  3550. "example": null
  3551. }
  3552. },
  3553. "type": "object"
  3554. }
  3555. },
  3556. "type": "object"
  3557. },
  3558. "php-mailer-email-list": {
  3559. "properties": {
  3560. "response": {
  3561. "properties": {
  3562. "result": {
  3563. "description": "success or error",
  3564. "type": "string",
  3565. "example": "success"
  3566. },
  3567. "message": {
  3568. "description": "success or error message",
  3569. "type": "string",
  3570. "example": null
  3571. },
  3572. "data": {
  3573. "description": "data from api",
  3574. "type": "array",
  3575. "items": {
  3576. "properties": {
  3577. "causefx": {
  3578. "type": "string",
  3579. "example": "causefx@organizr.app"
  3580. }
  3581. },
  3582. "type": "object"
  3583. }
  3584. }
  3585. },
  3586. "type": "object"
  3587. }
  3588. },
  3589. "type": "object"
  3590. },
  3591. "config-items-example": {
  3592. "description": "list of config items to update",
  3593. "properties": {
  3594. "branch": {
  3595. "description": "config item name",
  3596. "type": "string",
  3597. "example": "v2-master"
  3598. },
  3599. "hideRegistration": {
  3600. "type": "boolean",
  3601. "example": false
  3602. },
  3603. "homepageUnifiAuth": {
  3604. "type": "string",
  3605. "example": "1"
  3606. }
  3607. },
  3608. "type": "object"
  3609. }
  3610. },
  3611. "securitySchemes": {
  3612. "api_key": {
  3613. "type": "apiKey",
  3614. "name": "Token",
  3615. "in": "header"
  3616. }
  3617. }
  3618. },
  3619. "tags": [
  3620. {
  3621. "name": "plugins-chat",
  3622. "description": "Pusher Chat Plugin"
  3623. },
  3624. {
  3625. "name": "plugins-healthchecks",
  3626. "description": "Healthchecks.io Ping Plugin"
  3627. },
  3628. {
  3629. "name": "plugins-invites",
  3630. "description": "Media Invite Plugin"
  3631. },
  3632. {
  3633. "name": "plugins-php-mailer",
  3634. "description": "PHP Mailer Plugin"
  3635. },
  3636. {
  3637. "name": "plugins-speedtest",
  3638. "description": "SpeedTest Plugin"
  3639. },
  3640. {
  3641. "name": "2fa",
  3642. "description": "Two Form Authentication"
  3643. },
  3644. {
  3645. "name": "categories",
  3646. "description": "Category Information"
  3647. },
  3648. {
  3649. "name": "config",
  3650. "description": "Organizr Configuration Items"
  3651. },
  3652. {
  3653. "name": "test connection",
  3654. "description": "Test Connections"
  3655. },
  3656. {
  3657. "name": "emby"
  3658. },
  3659. {
  3660. "name": "page",
  3661. "description": "HTML for Organizr Pages"
  3662. },
  3663. {
  3664. "name": "plex"
  3665. },
  3666. {
  3667. "name": "plugins"
  3668. },
  3669. {
  3670. "name": "update",
  3671. "description": "Organizr Update"
  3672. }
  3673. ]
  3674. }