openapi.json 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "user_status",
  5. "version": "0.0.1",
  6. "description": "User status",
  7. "license": {
  8. "name": "agpl"
  9. }
  10. },
  11. "components": {
  12. "securitySchemes": {
  13. "basic_auth": {
  14. "type": "http",
  15. "scheme": "basic"
  16. },
  17. "bearer_auth": {
  18. "type": "http",
  19. "scheme": "bearer"
  20. }
  21. },
  22. "schemas": {
  23. "Capabilities": {
  24. "type": "object",
  25. "required": [
  26. "user_status"
  27. ],
  28. "properties": {
  29. "user_status": {
  30. "type": "object",
  31. "required": [
  32. "enabled",
  33. "restore",
  34. "supports_emoji"
  35. ],
  36. "properties": {
  37. "enabled": {
  38. "type": "boolean"
  39. },
  40. "restore": {
  41. "type": "boolean"
  42. },
  43. "supports_emoji": {
  44. "type": "boolean"
  45. }
  46. }
  47. }
  48. }
  49. },
  50. "ClearAt": {
  51. "type": "object",
  52. "required": [
  53. "type",
  54. "time"
  55. ],
  56. "properties": {
  57. "type": {
  58. "type": "string",
  59. "enum": [
  60. "period",
  61. "end-of"
  62. ]
  63. },
  64. "time": {
  65. "oneOf": [
  66. {
  67. "type": "integer",
  68. "format": "int64"
  69. },
  70. {
  71. "$ref": "#/components/schemas/ClearAtTimeType"
  72. }
  73. ]
  74. }
  75. }
  76. },
  77. "ClearAtTimeType": {
  78. "type": "string",
  79. "enum": [
  80. "day",
  81. "week"
  82. ]
  83. },
  84. "OCSMeta": {
  85. "type": "object",
  86. "required": [
  87. "status",
  88. "statuscode"
  89. ],
  90. "properties": {
  91. "status": {
  92. "type": "string"
  93. },
  94. "statuscode": {
  95. "type": "integer"
  96. },
  97. "message": {
  98. "type": "string"
  99. },
  100. "totalitems": {
  101. "type": "string"
  102. },
  103. "itemsperpage": {
  104. "type": "string"
  105. }
  106. }
  107. },
  108. "Predefined": {
  109. "type": "object",
  110. "required": [
  111. "id",
  112. "icon",
  113. "message",
  114. "clearAt",
  115. "visible"
  116. ],
  117. "properties": {
  118. "id": {
  119. "type": "string"
  120. },
  121. "icon": {
  122. "type": "string"
  123. },
  124. "message": {
  125. "type": "string"
  126. },
  127. "clearAt": {
  128. "$ref": "#/components/schemas/ClearAt",
  129. "nullable": true
  130. },
  131. "visible": {
  132. "type": "boolean",
  133. "nullable": true
  134. }
  135. }
  136. },
  137. "Private": {
  138. "allOf": [
  139. {
  140. "$ref": "#/components/schemas/Public"
  141. },
  142. {
  143. "type": "object",
  144. "required": [
  145. "messageId",
  146. "messageIsPredefined",
  147. "statusIsUserDefined"
  148. ],
  149. "properties": {
  150. "messageId": {
  151. "type": "string",
  152. "nullable": true
  153. },
  154. "messageIsPredefined": {
  155. "type": "boolean"
  156. },
  157. "statusIsUserDefined": {
  158. "type": "boolean"
  159. }
  160. }
  161. }
  162. ]
  163. },
  164. "Public": {
  165. "type": "object",
  166. "required": [
  167. "userId",
  168. "message",
  169. "icon",
  170. "clearAt",
  171. "status"
  172. ],
  173. "properties": {
  174. "userId": {
  175. "type": "string"
  176. },
  177. "message": {
  178. "type": "string",
  179. "nullable": true
  180. },
  181. "icon": {
  182. "type": "string",
  183. "nullable": true
  184. },
  185. "clearAt": {
  186. "type": "integer",
  187. "format": "int64",
  188. "nullable": true
  189. },
  190. "status": {
  191. "type": "string"
  192. }
  193. }
  194. }
  195. }
  196. },
  197. "paths": {
  198. "/ocs/v2.php/apps/user_status/api/v1/statuses": {
  199. "get": {
  200. "operationId": "statuses-find-all",
  201. "summary": "Find statuses of users",
  202. "tags": [
  203. "statuses"
  204. ],
  205. "security": [
  206. {
  207. "bearer_auth": []
  208. },
  209. {
  210. "basic_auth": []
  211. }
  212. ],
  213. "parameters": [
  214. {
  215. "name": "limit",
  216. "in": "query",
  217. "description": "Maximum number of statuses to find",
  218. "schema": {
  219. "type": "integer",
  220. "format": "int64",
  221. "nullable": true
  222. }
  223. },
  224. {
  225. "name": "offset",
  226. "in": "query",
  227. "description": "Offset for finding statuses",
  228. "schema": {
  229. "type": "integer",
  230. "format": "int64",
  231. "nullable": true
  232. }
  233. },
  234. {
  235. "name": "OCS-APIRequest",
  236. "in": "header",
  237. "required": true,
  238. "schema": {
  239. "type": "string",
  240. "default": "true"
  241. }
  242. }
  243. ],
  244. "responses": {
  245. "200": {
  246. "description": "",
  247. "content": {
  248. "application/json": {
  249. "schema": {
  250. "type": "object",
  251. "required": [
  252. "ocs"
  253. ],
  254. "properties": {
  255. "ocs": {
  256. "type": "object",
  257. "required": [
  258. "meta",
  259. "data"
  260. ],
  261. "properties": {
  262. "meta": {
  263. "$ref": "#/components/schemas/OCSMeta"
  264. },
  265. "data": {
  266. "type": "array",
  267. "items": {
  268. "$ref": "#/components/schemas/Public"
  269. }
  270. }
  271. }
  272. }
  273. }
  274. }
  275. }
  276. }
  277. }
  278. }
  279. }
  280. },
  281. "/ocs/v2.php/apps/user_status/api/v1/statuses/{userId}": {
  282. "get": {
  283. "operationId": "statuses-find",
  284. "summary": "Find the status of a user",
  285. "tags": [
  286. "statuses"
  287. ],
  288. "security": [
  289. {
  290. "bearer_auth": []
  291. },
  292. {
  293. "basic_auth": []
  294. }
  295. ],
  296. "parameters": [
  297. {
  298. "name": "userId",
  299. "in": "path",
  300. "description": "ID of the user",
  301. "required": true,
  302. "schema": {
  303. "type": "string"
  304. }
  305. },
  306. {
  307. "name": "OCS-APIRequest",
  308. "in": "header",
  309. "required": true,
  310. "schema": {
  311. "type": "string",
  312. "default": "true"
  313. }
  314. }
  315. ],
  316. "responses": {
  317. "200": {
  318. "description": "The status was found successfully",
  319. "content": {
  320. "application/json": {
  321. "schema": {
  322. "type": "object",
  323. "required": [
  324. "ocs"
  325. ],
  326. "properties": {
  327. "ocs": {
  328. "type": "object",
  329. "required": [
  330. "meta",
  331. "data"
  332. ],
  333. "properties": {
  334. "meta": {
  335. "$ref": "#/components/schemas/OCSMeta"
  336. },
  337. "data": {
  338. "$ref": "#/components/schemas/Public"
  339. }
  340. }
  341. }
  342. }
  343. }
  344. }
  345. }
  346. },
  347. "404": {
  348. "description": "The user was not found",
  349. "content": {
  350. "text/plain": {
  351. "schema": {
  352. "type": "object",
  353. "required": [
  354. "ocs"
  355. ],
  356. "properties": {
  357. "ocs": {
  358. "type": "object",
  359. "required": [
  360. "meta",
  361. "data"
  362. ],
  363. "properties": {
  364. "meta": {
  365. "$ref": "#/components/schemas/OCSMeta"
  366. },
  367. "data": {
  368. "type": "string"
  369. }
  370. }
  371. }
  372. }
  373. }
  374. }
  375. }
  376. }
  377. }
  378. }
  379. },
  380. "/ocs/v2.php/apps/user_status/api/v1/user_status": {
  381. "get": {
  382. "operationId": "user_status-get-status",
  383. "summary": "Get the status of the current user",
  384. "tags": [
  385. "user_status"
  386. ],
  387. "security": [
  388. {
  389. "bearer_auth": []
  390. },
  391. {
  392. "basic_auth": []
  393. }
  394. ],
  395. "parameters": [
  396. {
  397. "name": "OCS-APIRequest",
  398. "in": "header",
  399. "required": true,
  400. "schema": {
  401. "type": "string",
  402. "default": "true"
  403. }
  404. }
  405. ],
  406. "responses": {
  407. "200": {
  408. "description": "The status was found successfully",
  409. "content": {
  410. "application/json": {
  411. "schema": {
  412. "type": "object",
  413. "required": [
  414. "ocs"
  415. ],
  416. "properties": {
  417. "ocs": {
  418. "type": "object",
  419. "required": [
  420. "meta",
  421. "data"
  422. ],
  423. "properties": {
  424. "meta": {
  425. "$ref": "#/components/schemas/OCSMeta"
  426. },
  427. "data": {
  428. "$ref": "#/components/schemas/Private"
  429. }
  430. }
  431. }
  432. }
  433. }
  434. }
  435. }
  436. },
  437. "404": {
  438. "description": "The user was not found",
  439. "content": {
  440. "text/plain": {
  441. "schema": {
  442. "type": "object",
  443. "required": [
  444. "ocs"
  445. ],
  446. "properties": {
  447. "ocs": {
  448. "type": "object",
  449. "required": [
  450. "meta",
  451. "data"
  452. ],
  453. "properties": {
  454. "meta": {
  455. "$ref": "#/components/schemas/OCSMeta"
  456. },
  457. "data": {
  458. "type": "string"
  459. }
  460. }
  461. }
  462. }
  463. }
  464. }
  465. }
  466. }
  467. }
  468. }
  469. },
  470. "/ocs/v2.php/apps/user_status/api/v1/user_status/status": {
  471. "put": {
  472. "operationId": "user_status-set-status",
  473. "summary": "Update the status type of the current user",
  474. "tags": [
  475. "user_status"
  476. ],
  477. "security": [
  478. {
  479. "bearer_auth": []
  480. },
  481. {
  482. "basic_auth": []
  483. }
  484. ],
  485. "parameters": [
  486. {
  487. "name": "statusType",
  488. "in": "query",
  489. "description": "The new status type",
  490. "required": true,
  491. "schema": {
  492. "type": "string"
  493. }
  494. },
  495. {
  496. "name": "OCS-APIRequest",
  497. "in": "header",
  498. "required": true,
  499. "schema": {
  500. "type": "string",
  501. "default": "true"
  502. }
  503. }
  504. ],
  505. "responses": {
  506. "200": {
  507. "description": "The status was updated successfully",
  508. "content": {
  509. "application/json": {
  510. "schema": {
  511. "type": "object",
  512. "required": [
  513. "ocs"
  514. ],
  515. "properties": {
  516. "ocs": {
  517. "type": "object",
  518. "required": [
  519. "meta",
  520. "data"
  521. ],
  522. "properties": {
  523. "meta": {
  524. "$ref": "#/components/schemas/OCSMeta"
  525. },
  526. "data": {
  527. "$ref": "#/components/schemas/Private"
  528. }
  529. }
  530. }
  531. }
  532. }
  533. }
  534. }
  535. },
  536. "400": {
  537. "description": "The status type is invalid",
  538. "content": {
  539. "text/plain": {
  540. "schema": {
  541. "type": "object",
  542. "required": [
  543. "ocs"
  544. ],
  545. "properties": {
  546. "ocs": {
  547. "type": "object",
  548. "required": [
  549. "meta",
  550. "data"
  551. ],
  552. "properties": {
  553. "meta": {
  554. "$ref": "#/components/schemas/OCSMeta"
  555. },
  556. "data": {
  557. "type": "string"
  558. }
  559. }
  560. }
  561. }
  562. }
  563. }
  564. }
  565. }
  566. }
  567. }
  568. },
  569. "/ocs/v2.php/apps/user_status/api/v1/user_status/message/predefined": {
  570. "put": {
  571. "operationId": "user_status-set-predefined-message",
  572. "summary": "Set the message to a predefined message for the current user",
  573. "tags": [
  574. "user_status"
  575. ],
  576. "security": [
  577. {
  578. "bearer_auth": []
  579. },
  580. {
  581. "basic_auth": []
  582. }
  583. ],
  584. "parameters": [
  585. {
  586. "name": "messageId",
  587. "in": "query",
  588. "description": "ID of the predefined message",
  589. "required": true,
  590. "schema": {
  591. "type": "string"
  592. }
  593. },
  594. {
  595. "name": "clearAt",
  596. "in": "query",
  597. "description": "When the message should be cleared",
  598. "schema": {
  599. "type": "integer",
  600. "format": "int64",
  601. "nullable": true
  602. }
  603. },
  604. {
  605. "name": "OCS-APIRequest",
  606. "in": "header",
  607. "required": true,
  608. "schema": {
  609. "type": "string",
  610. "default": "true"
  611. }
  612. }
  613. ],
  614. "responses": {
  615. "200": {
  616. "description": "The message was updated successfully",
  617. "content": {
  618. "application/json": {
  619. "schema": {
  620. "type": "object",
  621. "required": [
  622. "ocs"
  623. ],
  624. "properties": {
  625. "ocs": {
  626. "type": "object",
  627. "required": [
  628. "meta",
  629. "data"
  630. ],
  631. "properties": {
  632. "meta": {
  633. "$ref": "#/components/schemas/OCSMeta"
  634. },
  635. "data": {
  636. "$ref": "#/components/schemas/Private"
  637. }
  638. }
  639. }
  640. }
  641. }
  642. }
  643. }
  644. },
  645. "400": {
  646. "description": "The clearAt or message-id is invalid",
  647. "content": {
  648. "text/plain": {
  649. "schema": {
  650. "type": "object",
  651. "required": [
  652. "ocs"
  653. ],
  654. "properties": {
  655. "ocs": {
  656. "type": "object",
  657. "required": [
  658. "meta",
  659. "data"
  660. ],
  661. "properties": {
  662. "meta": {
  663. "$ref": "#/components/schemas/OCSMeta"
  664. },
  665. "data": {
  666. "type": "string"
  667. }
  668. }
  669. }
  670. }
  671. }
  672. }
  673. }
  674. }
  675. }
  676. }
  677. },
  678. "/ocs/v2.php/apps/user_status/api/v1/user_status/message/custom": {
  679. "put": {
  680. "operationId": "user_status-set-custom-message",
  681. "summary": "Set the message to a custom message for the current user",
  682. "tags": [
  683. "user_status"
  684. ],
  685. "security": [
  686. {
  687. "bearer_auth": []
  688. },
  689. {
  690. "basic_auth": []
  691. }
  692. ],
  693. "parameters": [
  694. {
  695. "name": "statusIcon",
  696. "in": "query",
  697. "description": "Icon of the status",
  698. "schema": {
  699. "type": "string",
  700. "nullable": true
  701. }
  702. },
  703. {
  704. "name": "message",
  705. "in": "query",
  706. "description": "Message of the status",
  707. "schema": {
  708. "type": "string",
  709. "nullable": true
  710. }
  711. },
  712. {
  713. "name": "clearAt",
  714. "in": "query",
  715. "description": "When the message should be cleared",
  716. "schema": {
  717. "type": "integer",
  718. "format": "int64",
  719. "nullable": true
  720. }
  721. },
  722. {
  723. "name": "OCS-APIRequest",
  724. "in": "header",
  725. "required": true,
  726. "schema": {
  727. "type": "string",
  728. "default": "true"
  729. }
  730. }
  731. ],
  732. "responses": {
  733. "200": {
  734. "description": "The message was updated successfully",
  735. "content": {
  736. "application/json": {
  737. "schema": {
  738. "type": "object",
  739. "required": [
  740. "ocs"
  741. ],
  742. "properties": {
  743. "ocs": {
  744. "type": "object",
  745. "required": [
  746. "meta",
  747. "data"
  748. ],
  749. "properties": {
  750. "meta": {
  751. "$ref": "#/components/schemas/OCSMeta"
  752. },
  753. "data": {
  754. "$ref": "#/components/schemas/Private"
  755. }
  756. }
  757. }
  758. }
  759. }
  760. }
  761. }
  762. },
  763. "400": {
  764. "description": "The clearAt or icon is invalid or the message is too long",
  765. "content": {
  766. "text/plain": {
  767. "schema": {
  768. "type": "object",
  769. "required": [
  770. "ocs"
  771. ],
  772. "properties": {
  773. "ocs": {
  774. "type": "object",
  775. "required": [
  776. "meta",
  777. "data"
  778. ],
  779. "properties": {
  780. "meta": {
  781. "$ref": "#/components/schemas/OCSMeta"
  782. },
  783. "data": {
  784. "type": "string"
  785. }
  786. }
  787. }
  788. }
  789. }
  790. }
  791. }
  792. }
  793. }
  794. }
  795. },
  796. "/ocs/v2.php/apps/user_status/api/v1/user_status/message": {
  797. "delete": {
  798. "operationId": "user_status-clear-message",
  799. "summary": "Clear the message of the current user",
  800. "tags": [
  801. "user_status"
  802. ],
  803. "security": [
  804. {
  805. "bearer_auth": []
  806. },
  807. {
  808. "basic_auth": []
  809. }
  810. ],
  811. "parameters": [
  812. {
  813. "name": "OCS-APIRequest",
  814. "in": "header",
  815. "required": true,
  816. "schema": {
  817. "type": "string",
  818. "default": "true"
  819. }
  820. }
  821. ],
  822. "responses": {
  823. "200": {
  824. "description": "",
  825. "content": {
  826. "application/json": {
  827. "schema": {
  828. "type": "object",
  829. "required": [
  830. "ocs"
  831. ],
  832. "properties": {
  833. "ocs": {
  834. "type": "object",
  835. "required": [
  836. "meta",
  837. "data"
  838. ],
  839. "properties": {
  840. "meta": {
  841. "$ref": "#/components/schemas/OCSMeta"
  842. },
  843. "data": {
  844. "type": "object",
  845. "additionalProperties": true
  846. }
  847. }
  848. }
  849. }
  850. }
  851. }
  852. }
  853. }
  854. }
  855. }
  856. },
  857. "/ocs/v2.php/apps/user_status/api/v1/user_status/revert/{messageId}": {
  858. "delete": {
  859. "operationId": "user_status-revert-status",
  860. "summary": "Revert the status to the previous status",
  861. "tags": [
  862. "user_status"
  863. ],
  864. "security": [
  865. {
  866. "bearer_auth": []
  867. },
  868. {
  869. "basic_auth": []
  870. }
  871. ],
  872. "parameters": [
  873. {
  874. "name": "messageId",
  875. "in": "path",
  876. "description": "ID of the message to delete",
  877. "required": true,
  878. "schema": {
  879. "type": "string"
  880. }
  881. },
  882. {
  883. "name": "OCS-APIRequest",
  884. "in": "header",
  885. "required": true,
  886. "schema": {
  887. "type": "string",
  888. "default": "true"
  889. }
  890. }
  891. ],
  892. "responses": {
  893. "200": {
  894. "description": "Status reverted",
  895. "content": {
  896. "application/json": {
  897. "schema": {
  898. "type": "object",
  899. "required": [
  900. "ocs"
  901. ],
  902. "properties": {
  903. "ocs": {
  904. "type": "object",
  905. "required": [
  906. "meta",
  907. "data"
  908. ],
  909. "properties": {
  910. "meta": {
  911. "$ref": "#/components/schemas/OCSMeta"
  912. },
  913. "data": {
  914. "$ref": "#/components/schemas/Private",
  915. "nullable": true
  916. }
  917. }
  918. }
  919. }
  920. }
  921. }
  922. }
  923. }
  924. }
  925. }
  926. },
  927. "/ocs/v2.php/apps/user_status/api/v1/predefined_statuses": {
  928. "get": {
  929. "operationId": "predefined_status-find-all",
  930. "summary": "Get all predefined messages",
  931. "tags": [
  932. "predefined_status"
  933. ],
  934. "security": [
  935. {
  936. "bearer_auth": []
  937. },
  938. {
  939. "basic_auth": []
  940. }
  941. ],
  942. "parameters": [
  943. {
  944. "name": "OCS-APIRequest",
  945. "in": "header",
  946. "required": true,
  947. "schema": {
  948. "type": "string",
  949. "default": "true"
  950. }
  951. }
  952. ],
  953. "responses": {
  954. "200": {
  955. "description": "",
  956. "content": {
  957. "application/json": {
  958. "schema": {
  959. "type": "object",
  960. "required": [
  961. "ocs"
  962. ],
  963. "properties": {
  964. "ocs": {
  965. "type": "object",
  966. "required": [
  967. "meta",
  968. "data"
  969. ],
  970. "properties": {
  971. "meta": {
  972. "$ref": "#/components/schemas/OCSMeta"
  973. },
  974. "data": {
  975. "type": "array",
  976. "items": {
  977. "$ref": "#/components/schemas/Predefined"
  978. }
  979. }
  980. }
  981. }
  982. }
  983. }
  984. }
  985. }
  986. }
  987. }
  988. }
  989. },
  990. "/ocs/v2.php/apps/user_status/api/v1/heartbeat": {
  991. "put": {
  992. "operationId": "heartbeat-heartbeat",
  993. "summary": "Keep the current status alive",
  994. "tags": [
  995. "heartbeat"
  996. ],
  997. "security": [
  998. {
  999. "bearer_auth": []
  1000. },
  1001. {
  1002. "basic_auth": []
  1003. }
  1004. ],
  1005. "parameters": [
  1006. {
  1007. "name": "status",
  1008. "in": "query",
  1009. "description": "Only online, away",
  1010. "required": true,
  1011. "schema": {
  1012. "type": "string"
  1013. }
  1014. },
  1015. {
  1016. "name": "OCS-APIRequest",
  1017. "in": "header",
  1018. "required": true,
  1019. "schema": {
  1020. "type": "string",
  1021. "default": "true"
  1022. }
  1023. }
  1024. ],
  1025. "responses": {
  1026. "200": {
  1027. "description": "Status successfully updated",
  1028. "content": {
  1029. "application/json": {
  1030. "schema": {
  1031. "type": "object",
  1032. "required": [
  1033. "ocs"
  1034. ],
  1035. "properties": {
  1036. "ocs": {
  1037. "type": "object",
  1038. "required": [
  1039. "meta",
  1040. "data"
  1041. ],
  1042. "properties": {
  1043. "meta": {
  1044. "$ref": "#/components/schemas/OCSMeta"
  1045. },
  1046. "data": {
  1047. "$ref": "#/components/schemas/Private"
  1048. }
  1049. }
  1050. }
  1051. }
  1052. }
  1053. }
  1054. }
  1055. },
  1056. "400": {
  1057. "description": "Invalid status to update",
  1058. "content": {
  1059. "application/json": {
  1060. "schema": {
  1061. "type": "object",
  1062. "required": [
  1063. "ocs"
  1064. ],
  1065. "properties": {
  1066. "ocs": {
  1067. "type": "object",
  1068. "required": [
  1069. "meta",
  1070. "data"
  1071. ],
  1072. "properties": {
  1073. "meta": {
  1074. "$ref": "#/components/schemas/OCSMeta"
  1075. },
  1076. "data": {
  1077. "type": "object",
  1078. "additionalProperties": true
  1079. }
  1080. }
  1081. }
  1082. }
  1083. }
  1084. }
  1085. }
  1086. },
  1087. "500": {
  1088. "description": "",
  1089. "content": {
  1090. "application/json": {
  1091. "schema": {
  1092. "type": "object",
  1093. "required": [
  1094. "ocs"
  1095. ],
  1096. "properties": {
  1097. "ocs": {
  1098. "type": "object",
  1099. "required": [
  1100. "meta",
  1101. "data"
  1102. ],
  1103. "properties": {
  1104. "meta": {
  1105. "$ref": "#/components/schemas/OCSMeta"
  1106. },
  1107. "data": {
  1108. "type": "object",
  1109. "additionalProperties": true
  1110. }
  1111. }
  1112. }
  1113. }
  1114. }
  1115. }
  1116. }
  1117. },
  1118. "204": {
  1119. "description": "User has no status to keep alive",
  1120. "content": {
  1121. "application/json": {
  1122. "schema": {
  1123. "type": "object",
  1124. "required": [
  1125. "ocs"
  1126. ],
  1127. "properties": {
  1128. "ocs": {
  1129. "type": "object",
  1130. "required": [
  1131. "meta",
  1132. "data"
  1133. ],
  1134. "properties": {
  1135. "meta": {
  1136. "$ref": "#/components/schemas/OCSMeta"
  1137. },
  1138. "data": {
  1139. "type": "object",
  1140. "additionalProperties": true
  1141. }
  1142. }
  1143. }
  1144. }
  1145. }
  1146. }
  1147. }
  1148. }
  1149. }
  1150. }
  1151. }
  1152. },
  1153. "tags": []
  1154. }