You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12234 lines
534 KiB

  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "core-full",
  5. "version": "0.0.1",
  6. "description": "Core functionality of Nextcloud",
  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. "AutocompleteResult": {
  24. "type": "object",
  25. "required": [
  26. "id",
  27. "label",
  28. "icon",
  29. "source",
  30. "status",
  31. "subline",
  32. "shareWithDisplayNameUnique"
  33. ],
  34. "properties": {
  35. "id": {
  36. "type": "string"
  37. },
  38. "label": {
  39. "type": "string"
  40. },
  41. "icon": {
  42. "type": "string"
  43. },
  44. "source": {
  45. "type": "string"
  46. },
  47. "status": {
  48. "oneOf": [
  49. {
  50. "type": "object",
  51. "required": [
  52. "status",
  53. "message",
  54. "icon",
  55. "clearAt"
  56. ],
  57. "properties": {
  58. "status": {
  59. "type": "string"
  60. },
  61. "message": {
  62. "type": "string",
  63. "nullable": true
  64. },
  65. "icon": {
  66. "type": "string",
  67. "nullable": true
  68. },
  69. "clearAt": {
  70. "type": "integer",
  71. "format": "int64",
  72. "nullable": true
  73. }
  74. }
  75. },
  76. {
  77. "type": "string"
  78. }
  79. ]
  80. },
  81. "subline": {
  82. "type": "string"
  83. },
  84. "shareWithDisplayNameUnique": {
  85. "type": "string"
  86. }
  87. }
  88. },
  89. "Capabilities": {
  90. "type": "object",
  91. "required": [
  92. "core"
  93. ],
  94. "properties": {
  95. "core": {
  96. "type": "object",
  97. "required": [
  98. "pollinterval",
  99. "webdav-root",
  100. "reference-api",
  101. "reference-regex",
  102. "mod-rewrite-working"
  103. ],
  104. "properties": {
  105. "pollinterval": {
  106. "type": "integer",
  107. "format": "int64"
  108. },
  109. "webdav-root": {
  110. "type": "string"
  111. },
  112. "reference-api": {
  113. "type": "boolean"
  114. },
  115. "reference-regex": {
  116. "type": "string"
  117. },
  118. "mod-rewrite-working": {
  119. "type": "boolean"
  120. },
  121. "user": {
  122. "type": "object",
  123. "required": [
  124. "language",
  125. "locale",
  126. "timezone"
  127. ],
  128. "properties": {
  129. "language": {
  130. "type": "string"
  131. },
  132. "locale": {
  133. "type": "string"
  134. },
  135. "timezone": {
  136. "type": "string"
  137. }
  138. }
  139. }
  140. }
  141. }
  142. }
  143. },
  144. "Collection": {
  145. "type": "object",
  146. "required": [
  147. "id",
  148. "name",
  149. "resources"
  150. ],
  151. "properties": {
  152. "id": {
  153. "type": "integer",
  154. "format": "int64"
  155. },
  156. "name": {
  157. "type": "string"
  158. },
  159. "resources": {
  160. "type": "array",
  161. "items": {
  162. "$ref": "#/components/schemas/Resource"
  163. }
  164. }
  165. }
  166. },
  167. "ContactsAction": {
  168. "type": "object",
  169. "required": [
  170. "title",
  171. "icon",
  172. "hyperlink",
  173. "appId"
  174. ],
  175. "properties": {
  176. "title": {
  177. "type": "string"
  178. },
  179. "icon": {
  180. "type": "string"
  181. },
  182. "hyperlink": {
  183. "type": "string"
  184. },
  185. "appId": {
  186. "type": "string"
  187. }
  188. }
  189. },
  190. "LoginFlowV2": {
  191. "type": "object",
  192. "required": [
  193. "poll",
  194. "login"
  195. ],
  196. "properties": {
  197. "poll": {
  198. "type": "object",
  199. "required": [
  200. "token",
  201. "endpoint"
  202. ],
  203. "properties": {
  204. "token": {
  205. "type": "string"
  206. },
  207. "endpoint": {
  208. "type": "string"
  209. }
  210. }
  211. },
  212. "login": {
  213. "type": "string"
  214. }
  215. }
  216. },
  217. "LoginFlowV2Credentials": {
  218. "type": "object",
  219. "required": [
  220. "server",
  221. "loginName",
  222. "appPassword"
  223. ],
  224. "properties": {
  225. "server": {
  226. "type": "string"
  227. },
  228. "loginName": {
  229. "type": "string"
  230. },
  231. "appPassword": {
  232. "type": "string"
  233. }
  234. }
  235. },
  236. "NavigationEntry": {
  237. "type": "object",
  238. "required": [
  239. "id",
  240. "href",
  241. "icon",
  242. "type",
  243. "name",
  244. "active",
  245. "classes",
  246. "unread"
  247. ],
  248. "properties": {
  249. "id": {
  250. "type": "string"
  251. },
  252. "order": {
  253. "type": "integer",
  254. "format": "int64"
  255. },
  256. "href": {
  257. "type": "string"
  258. },
  259. "icon": {
  260. "type": "string"
  261. },
  262. "type": {
  263. "type": "string"
  264. },
  265. "name": {
  266. "type": "string"
  267. },
  268. "app": {
  269. "type": "string"
  270. },
  271. "default": {
  272. "type": "boolean"
  273. },
  274. "active": {
  275. "type": "boolean"
  276. },
  277. "classes": {
  278. "type": "string"
  279. },
  280. "unread": {
  281. "type": "integer",
  282. "format": "int64"
  283. }
  284. }
  285. },
  286. "OCSMeta": {
  287. "type": "object",
  288. "required": [
  289. "status",
  290. "statuscode"
  291. ],
  292. "properties": {
  293. "status": {
  294. "type": "string"
  295. },
  296. "statuscode": {
  297. "type": "integer"
  298. },
  299. "message": {
  300. "type": "string"
  301. },
  302. "totalitems": {
  303. "type": "string"
  304. },
  305. "itemsperpage": {
  306. "type": "string"
  307. }
  308. }
  309. },
  310. "OpenGraphObject": {
  311. "type": "object",
  312. "required": [
  313. "id",
  314. "name",
  315. "description",
  316. "thumb",
  317. "link"
  318. ],
  319. "properties": {
  320. "id": {
  321. "type": "string"
  322. },
  323. "name": {
  324. "type": "string"
  325. },
  326. "description": {
  327. "type": "string",
  328. "nullable": true
  329. },
  330. "thumb": {
  331. "type": "string",
  332. "nullable": true
  333. },
  334. "link": {
  335. "type": "string"
  336. }
  337. }
  338. },
  339. "ProfileAction": {
  340. "type": "object",
  341. "required": [
  342. "id",
  343. "icon",
  344. "title",
  345. "target"
  346. ],
  347. "properties": {
  348. "id": {
  349. "type": "string"
  350. },
  351. "icon": {
  352. "type": "string"
  353. },
  354. "title": {
  355. "type": "string"
  356. },
  357. "target": {
  358. "type": "string",
  359. "nullable": true
  360. }
  361. }
  362. },
  363. "ProfileData": {
  364. "allOf": [
  365. {
  366. "$ref": "#/components/schemas/ProfileFields"
  367. },
  368. {
  369. "type": "object",
  370. "required": [
  371. "timezone",
  372. "timezoneOffset"
  373. ],
  374. "properties": {
  375. "timezone": {
  376. "type": "string",
  377. "description": "Timezone identifier like Europe/Berlin or America/North_Dakota/Beulah"
  378. },
  379. "timezoneOffset": {
  380. "type": "integer",
  381. "format": "int64",
  382. "description": "Offset in seconds, negative when behind UTC, positive otherwise"
  383. }
  384. }
  385. }
  386. ]
  387. },
  388. "ProfileFields": {
  389. "type": "object",
  390. "required": [
  391. "userId",
  392. "actions"
  393. ],
  394. "properties": {
  395. "userId": {
  396. "type": "string"
  397. },
  398. "address": {
  399. "type": "string",
  400. "nullable": true
  401. },
  402. "biography": {
  403. "type": "string",
  404. "nullable": true
  405. },
  406. "displayname": {
  407. "type": "string",
  408. "nullable": true
  409. },
  410. "headline": {
  411. "type": "string",
  412. "nullable": true
  413. },
  414. "isUserAvatarVisible": {
  415. "type": "boolean"
  416. },
  417. "organisation": {
  418. "type": "string",
  419. "nullable": true
  420. },
  421. "pronouns": {
  422. "type": "string",
  423. "nullable": true
  424. },
  425. "role": {
  426. "type": "string",
  427. "nullable": true
  428. },
  429. "actions": {
  430. "type": "array",
  431. "items": {
  432. "$ref": "#/components/schemas/ProfileAction"
  433. }
  434. }
  435. }
  436. },
  437. "PublicCapabilities": {
  438. "type": "object",
  439. "required": [
  440. "bruteforce"
  441. ],
  442. "properties": {
  443. "bruteforce": {
  444. "type": "object",
  445. "required": [
  446. "delay",
  447. "allow-listed"
  448. ],
  449. "properties": {
  450. "delay": {
  451. "type": "integer",
  452. "format": "int64"
  453. },
  454. "allow-listed": {
  455. "type": "boolean"
  456. }
  457. }
  458. }
  459. }
  460. },
  461. "Reference": {
  462. "type": "object",
  463. "required": [
  464. "richObjectType",
  465. "richObject",
  466. "openGraphObject",
  467. "accessible"
  468. ],
  469. "properties": {
  470. "richObjectType": {
  471. "type": "string"
  472. },
  473. "richObject": {
  474. "type": "object",
  475. "additionalProperties": {
  476. "type": "object",
  477. "nullable": true
  478. }
  479. },
  480. "openGraphObject": {
  481. "$ref": "#/components/schemas/OpenGraphObject"
  482. },
  483. "accessible": {
  484. "type": "boolean"
  485. }
  486. }
  487. },
  488. "ReferenceProvider": {
  489. "type": "object",
  490. "required": [
  491. "id",
  492. "title",
  493. "icon_url",
  494. "order",
  495. "search_providers_ids"
  496. ],
  497. "properties": {
  498. "id": {
  499. "type": "string"
  500. },
  501. "title": {
  502. "type": "string"
  503. },
  504. "icon_url": {
  505. "type": "string"
  506. },
  507. "order": {
  508. "type": "integer",
  509. "format": "int64"
  510. },
  511. "search_providers_ids": {
  512. "type": "array",
  513. "nullable": true,
  514. "items": {
  515. "type": "string"
  516. }
  517. }
  518. }
  519. },
  520. "Resource": {
  521. "type": "object",
  522. "required": [
  523. "richObjectType",
  524. "richObject",
  525. "openGraphObject",
  526. "accessible"
  527. ],
  528. "properties": {
  529. "richObjectType": {
  530. "type": "string"
  531. },
  532. "richObject": {
  533. "type": "object",
  534. "additionalProperties": {
  535. "type": "object",
  536. "nullable": true
  537. }
  538. },
  539. "openGraphObject": {
  540. "$ref": "#/components/schemas/OpenGraphObject"
  541. },
  542. "accessible": {
  543. "type": "boolean"
  544. }
  545. }
  546. },
  547. "Status": {
  548. "type": "object",
  549. "required": [
  550. "installed",
  551. "maintenance",
  552. "needsDbUpgrade",
  553. "version",
  554. "versionstring",
  555. "edition",
  556. "productname",
  557. "extendedSupport"
  558. ],
  559. "properties": {
  560. "installed": {
  561. "type": "boolean"
  562. },
  563. "maintenance": {
  564. "type": "boolean"
  565. },
  566. "needsDbUpgrade": {
  567. "type": "boolean"
  568. },
  569. "version": {
  570. "type": "string"
  571. },
  572. "versionstring": {
  573. "type": "string"
  574. },
  575. "edition": {
  576. "type": "string"
  577. },
  578. "productname": {
  579. "type": "string"
  580. },
  581. "extendedSupport": {
  582. "type": "boolean"
  583. }
  584. }
  585. },
  586. "TaskProcessingIO": {
  587. "type": "object",
  588. "additionalProperties": {
  589. "anyOf": [
  590. {
  591. "type": "number"
  592. },
  593. {
  594. "type": "array",
  595. "items": {
  596. "type": "number"
  597. }
  598. },
  599. {
  600. "type": "string"
  601. },
  602. {
  603. "type": "array",
  604. "items": {
  605. "type": "string"
  606. }
  607. }
  608. ]
  609. }
  610. },
  611. "TaskProcessingShape": {
  612. "type": "object",
  613. "required": [
  614. "name",
  615. "description",
  616. "type"
  617. ],
  618. "properties": {
  619. "name": {
  620. "type": "string"
  621. },
  622. "description": {
  623. "type": "string"
  624. },
  625. "type": {
  626. "type": "string",
  627. "enum": [
  628. "Number",
  629. "Text",
  630. "Audio",
  631. "Image",
  632. "Video",
  633. "File",
  634. "Enum",
  635. "ListOfNumbers",
  636. "ListOfTexts",
  637. "ListOfImages",
  638. "ListOfAudios",
  639. "ListOfVideos",
  640. "ListOfFiles"
  641. ]
  642. }
  643. }
  644. },
  645. "TaskProcessingTask": {
  646. "type": "object",
  647. "required": [
  648. "id",
  649. "lastUpdated",
  650. "type",
  651. "status",
  652. "userId",
  653. "appId",
  654. "input",
  655. "output",
  656. "customId",
  657. "completionExpectedAt",
  658. "progress",
  659. "scheduledAt",
  660. "startedAt",
  661. "endedAt",
  662. "allowCleanup"
  663. ],
  664. "properties": {
  665. "id": {
  666. "type": "integer",
  667. "format": "int64"
  668. },
  669. "lastUpdated": {
  670. "type": "integer",
  671. "format": "int64"
  672. },
  673. "type": {
  674. "type": "string"
  675. },
  676. "status": {
  677. "type": "string",
  678. "enum": [
  679. "STATUS_CANCELLED",
  680. "STATUS_FAILED",
  681. "STATUS_SUCCESSFUL",
  682. "STATUS_RUNNING",
  683. "STATUS_SCHEDULED",
  684. "STATUS_UNKNOWN"
  685. ]
  686. },
  687. "userId": {
  688. "type": "string",
  689. "nullable": true
  690. },
  691. "appId": {
  692. "type": "string"
  693. },
  694. "input": {
  695. "$ref": "#/components/schemas/TaskProcessingIO"
  696. },
  697. "output": {
  698. "nullable": true,
  699. "allOf": [
  700. {
  701. "$ref": "#/components/schemas/TaskProcessingIO"
  702. }
  703. ]
  704. },
  705. "customId": {
  706. "type": "string",
  707. "nullable": true
  708. },
  709. "completionExpectedAt": {
  710. "type": "integer",
  711. "format": "int64",
  712. "nullable": true
  713. },
  714. "progress": {
  715. "type": "number",
  716. "format": "double",
  717. "nullable": true
  718. },
  719. "scheduledAt": {
  720. "type": "integer",
  721. "format": "int64",
  722. "nullable": true
  723. },
  724. "startedAt": {
  725. "type": "integer",
  726. "format": "int64",
  727. "nullable": true
  728. },
  729. "endedAt": {
  730. "type": "integer",
  731. "format": "int64",
  732. "nullable": true
  733. },
  734. "allowCleanup": {
  735. "type": "boolean"
  736. }
  737. }
  738. },
  739. "TaskProcessingTaskType": {
  740. "type": "object",
  741. "required": [
  742. "name",
  743. "description",
  744. "inputShape",
  745. "inputShapeEnumValues",
  746. "inputShapeDefaults",
  747. "optionalInputShape",
  748. "optionalInputShapeEnumValues",
  749. "optionalInputShapeDefaults",
  750. "outputShape",
  751. "outputShapeEnumValues",
  752. "optionalOutputShape",
  753. "optionalOutputShapeEnumValues"
  754. ],
  755. "properties": {
  756. "name": {
  757. "type": "string"
  758. },
  759. "description": {
  760. "type": "string"
  761. },
  762. "inputShape": {
  763. "type": "object",
  764. "additionalProperties": {
  765. "$ref": "#/components/schemas/TaskProcessingShape"
  766. }
  767. },
  768. "inputShapeEnumValues": {
  769. "type": "object",
  770. "additionalProperties": {
  771. "type": "array",
  772. "items": {
  773. "type": "object",
  774. "required": [
  775. "name",
  776. "value"
  777. ],
  778. "properties": {
  779. "name": {
  780. "type": "string"
  781. },
  782. "value": {
  783. "type": "string"
  784. }
  785. }
  786. }
  787. }
  788. },
  789. "inputShapeDefaults": {
  790. "type": "object",
  791. "additionalProperties": {
  792. "oneOf": [
  793. {
  794. "type": "number"
  795. },
  796. {
  797. "type": "string"
  798. }
  799. ]
  800. }
  801. },
  802. "optionalInputShape": {
  803. "type": "object",
  804. "additionalProperties": {
  805. "$ref": "#/components/schemas/TaskProcessingShape"
  806. }
  807. },
  808. "optionalInputShapeEnumValues": {
  809. "type": "object",
  810. "additionalProperties": {
  811. "type": "array",
  812. "items": {
  813. "type": "object",
  814. "required": [
  815. "name",
  816. "value"
  817. ],
  818. "properties": {
  819. "name": {
  820. "type": "string"
  821. },
  822. "value": {
  823. "type": "string"
  824. }
  825. }
  826. }
  827. }
  828. },
  829. "optionalInputShapeDefaults": {
  830. "type": "object",
  831. "additionalProperties": {
  832. "oneOf": [
  833. {
  834. "type": "number"
  835. },
  836. {
  837. "type": "string"
  838. }
  839. ]
  840. }
  841. },
  842. "outputShape": {
  843. "type": "object",
  844. "additionalProperties": {
  845. "$ref": "#/components/schemas/TaskProcessingShape"
  846. }
  847. },
  848. "outputShapeEnumValues": {
  849. "type": "object",
  850. "additionalProperties": {
  851. "type": "array",
  852. "items": {
  853. "type": "object",
  854. "required": [
  855. "name",
  856. "value"
  857. ],
  858. "properties": {
  859. "name": {
  860. "type": "string"
  861. },
  862. "value": {
  863. "type": "string"
  864. }
  865. }
  866. }
  867. }
  868. },
  869. "optionalOutputShape": {
  870. "type": "object",
  871. "additionalProperties": {
  872. "$ref": "#/components/schemas/TaskProcessingShape"
  873. }
  874. },
  875. "optionalOutputShapeEnumValues": {
  876. "type": "object",
  877. "additionalProperties": {
  878. "type": "array",
  879. "items": {
  880. "type": "object",
  881. "required": [
  882. "name",
  883. "value"
  884. ],
  885. "properties": {
  886. "name": {
  887. "type": "string"
  888. },
  889. "value": {
  890. "type": "string"
  891. }
  892. }
  893. }
  894. }
  895. }
  896. }
  897. },
  898. "Team": {
  899. "type": "object",
  900. "required": [
  901. "teamId",
  902. "displayName",
  903. "link"
  904. ],
  905. "properties": {
  906. "teamId": {
  907. "type": "string"
  908. },
  909. "displayName": {
  910. "type": "string"
  911. },
  912. "link": {
  913. "type": "string",
  914. "nullable": true
  915. }
  916. }
  917. },
  918. "TeamResource": {
  919. "type": "object",
  920. "required": [
  921. "id",
  922. "label",
  923. "url",
  924. "iconSvg",
  925. "iconURL",
  926. "iconEmoji",
  927. "provider"
  928. ],
  929. "properties": {
  930. "id": {
  931. "type": "string"
  932. },
  933. "label": {
  934. "type": "string"
  935. },
  936. "url": {
  937. "type": "string"
  938. },
  939. "iconSvg": {
  940. "type": "string",
  941. "nullable": true
  942. },
  943. "iconURL": {
  944. "type": "string",
  945. "nullable": true
  946. },
  947. "iconEmoji": {
  948. "type": "string",
  949. "nullable": true
  950. },
  951. "provider": {
  952. "type": "object",
  953. "required": [
  954. "id",
  955. "name",
  956. "icon"
  957. ],
  958. "properties": {
  959. "id": {
  960. "type": "string"
  961. },
  962. "name": {
  963. "type": "string"
  964. },
  965. "icon": {
  966. "type": "string"
  967. }
  968. }
  969. }
  970. }
  971. },
  972. "TeamWithResources": {
  973. "allOf": [
  974. {
  975. "$ref": "#/components/schemas/Team"
  976. },
  977. {
  978. "type": "object",
  979. "required": [
  980. "resources"
  981. ],
  982. "properties": {
  983. "resources": {
  984. "type": "array",
  985. "items": {
  986. "$ref": "#/components/schemas/TeamResource"
  987. }
  988. }
  989. }
  990. }
  991. ]
  992. },
  993. "TextProcessingTask": {
  994. "type": "object",
  995. "required": [
  996. "id",
  997. "type",
  998. "status",
  999. "userId",
  1000. "appId",
  1001. "input",
  1002. "output",
  1003. "identifier",
  1004. "completionExpectedAt"
  1005. ],
  1006. "properties": {
  1007. "id": {
  1008. "type": "integer",
  1009. "format": "int64",
  1010. "nullable": true
  1011. },
  1012. "type": {
  1013. "type": "string"
  1014. },
  1015. "status": {
  1016. "type": "integer",
  1017. "format": "int64",
  1018. "enum": [
  1019. 0,
  1020. 1,
  1021. 2,
  1022. 3,
  1023. 4
  1024. ]
  1025. },
  1026. "userId": {
  1027. "type": "string",
  1028. "nullable": true
  1029. },
  1030. "appId": {
  1031. "type": "string"
  1032. },
  1033. "input": {
  1034. "type": "string"
  1035. },
  1036. "output": {
  1037. "type": "string",
  1038. "nullable": true
  1039. },
  1040. "identifier": {
  1041. "type": "string"
  1042. },
  1043. "completionExpectedAt": {
  1044. "type": "integer",
  1045. "format": "int64",
  1046. "nullable": true
  1047. }
  1048. }
  1049. },
  1050. "TextToImageTask": {
  1051. "type": "object",
  1052. "required": [
  1053. "id",
  1054. "status",
  1055. "userId",
  1056. "appId",
  1057. "input",
  1058. "identifier",
  1059. "numberOfImages",
  1060. "completionExpectedAt"
  1061. ],
  1062. "properties": {
  1063. "id": {
  1064. "type": "integer",
  1065. "format": "int64",
  1066. "nullable": true
  1067. },
  1068. "status": {
  1069. "type": "integer",
  1070. "format": "int64",
  1071. "enum": [
  1072. 0,
  1073. 1,
  1074. 2,
  1075. 3,
  1076. 4
  1077. ]
  1078. },
  1079. "userId": {
  1080. "type": "string",
  1081. "nullable": true
  1082. },
  1083. "appId": {
  1084. "type": "string"
  1085. },
  1086. "input": {
  1087. "type": "string"
  1088. },
  1089. "identifier": {
  1090. "type": "string",
  1091. "nullable": true
  1092. },
  1093. "numberOfImages": {
  1094. "type": "integer",
  1095. "format": "int64"
  1096. },
  1097. "completionExpectedAt": {
  1098. "type": "integer",
  1099. "format": "int64",
  1100. "nullable": true
  1101. }
  1102. }
  1103. },
  1104. "UnifiedSearchProvider": {
  1105. "type": "object",
  1106. "required": [
  1107. "id",
  1108. "appId",
  1109. "name",
  1110. "icon",
  1111. "order",
  1112. "isExternalProvider",
  1113. "triggers",
  1114. "filters",
  1115. "inAppSearch"
  1116. ],
  1117. "properties": {
  1118. "id": {
  1119. "type": "string"
  1120. },
  1121. "appId": {
  1122. "type": "string"
  1123. },
  1124. "name": {
  1125. "type": "string"
  1126. },
  1127. "icon": {
  1128. "type": "string"
  1129. },
  1130. "order": {
  1131. "type": "integer",
  1132. "format": "int64"
  1133. },
  1134. "isExternalProvider": {
  1135. "type": "boolean"
  1136. },
  1137. "triggers": {
  1138. "type": "array",
  1139. "items": {
  1140. "type": "string"
  1141. }
  1142. },
  1143. "filters": {
  1144. "type": "object",
  1145. "additionalProperties": {
  1146. "type": "string"
  1147. }
  1148. },
  1149. "inAppSearch": {
  1150. "type": "boolean"
  1151. }
  1152. }
  1153. },
  1154. "UnifiedSearchResult": {
  1155. "type": "object",
  1156. "required": [
  1157. "name",
  1158. "isPaginated",
  1159. "entries",
  1160. "cursor"
  1161. ],
  1162. "properties": {
  1163. "name": {
  1164. "type": "string"
  1165. },
  1166. "isPaginated": {
  1167. "type": "boolean"
  1168. },
  1169. "entries": {
  1170. "type": "array",
  1171. "items": {
  1172. "$ref": "#/components/schemas/UnifiedSearchResultEntry"
  1173. }
  1174. },
  1175. "cursor": {
  1176. "nullable": true,
  1177. "oneOf": [
  1178. {
  1179. "type": "integer",
  1180. "format": "int64"
  1181. },
  1182. {
  1183. "type": "string"
  1184. }
  1185. ]
  1186. }
  1187. }
  1188. },
  1189. "UnifiedSearchResultEntry": {
  1190. "type": "object",
  1191. "required": [
  1192. "thumbnailUrl",
  1193. "title",
  1194. "subline",
  1195. "resourceUrl",
  1196. "icon",
  1197. "rounded",
  1198. "attributes"
  1199. ],
  1200. "properties": {
  1201. "thumbnailUrl": {
  1202. "type": "string"
  1203. },
  1204. "title": {
  1205. "type": "string"
  1206. },
  1207. "subline": {
  1208. "type": "string"
  1209. },
  1210. "resourceUrl": {
  1211. "type": "string"
  1212. },
  1213. "icon": {
  1214. "type": "string"
  1215. },
  1216. "rounded": {
  1217. "type": "boolean"
  1218. },
  1219. "attributes": {
  1220. "type": "array",
  1221. "items": {
  1222. "type": "string"
  1223. }
  1224. }
  1225. }
  1226. }
  1227. }
  1228. },
  1229. "paths": {
  1230. "/ocs/v2.php/core/getapppassword": {
  1231. "get": {
  1232. "operationId": "app_password-get-app-password",
  1233. "summary": "Create app password",
  1234. "description": "This endpoint requires password confirmation",
  1235. "tags": [
  1236. "app_password"
  1237. ],
  1238. "security": [
  1239. {
  1240. "bearer_auth": []
  1241. },
  1242. {
  1243. "basic_auth": []
  1244. }
  1245. ],
  1246. "parameters": [
  1247. {
  1248. "name": "user-agent",
  1249. "in": "header",
  1250. "schema": {
  1251. "type": "string"
  1252. }
  1253. },
  1254. {
  1255. "name": "OCS-APIRequest",
  1256. "in": "header",
  1257. "description": "Required to be true for the API request to pass",
  1258. "required": true,
  1259. "schema": {
  1260. "type": "boolean",
  1261. "default": true
  1262. }
  1263. }
  1264. ],
  1265. "responses": {
  1266. "200": {
  1267. "description": "App password returned",
  1268. "content": {
  1269. "application/json": {
  1270. "schema": {
  1271. "type": "object",
  1272. "required": [
  1273. "ocs"
  1274. ],
  1275. "properties": {
  1276. "ocs": {
  1277. "type": "object",
  1278. "required": [
  1279. "meta",
  1280. "data"
  1281. ],
  1282. "properties": {
  1283. "meta": {
  1284. "$ref": "#/components/schemas/OCSMeta"
  1285. },
  1286. "data": {
  1287. "type": "object",
  1288. "required": [
  1289. "apppassword"
  1290. ],
  1291. "properties": {
  1292. "apppassword": {
  1293. "type": "string"
  1294. }
  1295. }
  1296. }
  1297. }
  1298. }
  1299. }
  1300. }
  1301. }
  1302. }
  1303. },
  1304. "403": {
  1305. "description": "Creating app password is not allowed",
  1306. "content": {
  1307. "application/json": {
  1308. "schema": {
  1309. "type": "object",
  1310. "required": [
  1311. "ocs"
  1312. ],
  1313. "properties": {
  1314. "ocs": {
  1315. "type": "object",
  1316. "required": [
  1317. "meta",
  1318. "data"
  1319. ],
  1320. "properties": {
  1321. "meta": {
  1322. "$ref": "#/components/schemas/OCSMeta"
  1323. },
  1324. "data": {}
  1325. }
  1326. }
  1327. }
  1328. }
  1329. }
  1330. }
  1331. },
  1332. "401": {
  1333. "description": "Current user is not logged in",
  1334. "content": {
  1335. "application/json": {
  1336. "schema": {
  1337. "type": "object",
  1338. "required": [
  1339. "ocs"
  1340. ],
  1341. "properties": {
  1342. "ocs": {
  1343. "type": "object",
  1344. "required": [
  1345. "meta",
  1346. "data"
  1347. ],
  1348. "properties": {
  1349. "meta": {
  1350. "$ref": "#/components/schemas/OCSMeta"
  1351. },
  1352. "data": {}
  1353. }
  1354. }
  1355. }
  1356. }
  1357. }
  1358. }
  1359. }
  1360. }
  1361. }
  1362. },
  1363. "/ocs/v2.php/core/apppassword": {
  1364. "delete": {
  1365. "operationId": "app_password-delete-app-password",
  1366. "summary": "Delete app password",
  1367. "tags": [
  1368. "app_password"
  1369. ],
  1370. "security": [
  1371. {
  1372. "bearer_auth": []
  1373. },
  1374. {
  1375. "basic_auth": []
  1376. }
  1377. ],
  1378. "parameters": [
  1379. {
  1380. "name": "OCS-APIRequest",
  1381. "in": "header",
  1382. "description": "Required to be true for the API request to pass",
  1383. "required": true,
  1384. "schema": {
  1385. "type": "boolean",
  1386. "default": true
  1387. }
  1388. }
  1389. ],
  1390. "responses": {
  1391. "200": {
  1392. "description": "App password deleted successfully",
  1393. "content": {
  1394. "application/json": {
  1395. "schema": {
  1396. "type": "object",
  1397. "required": [
  1398. "ocs"
  1399. ],
  1400. "properties": {
  1401. "ocs": {
  1402. "type": "object",
  1403. "required": [
  1404. "meta",
  1405. "data"
  1406. ],
  1407. "properties": {
  1408. "meta": {
  1409. "$ref": "#/components/schemas/OCSMeta"
  1410. },
  1411. "data": {}
  1412. }
  1413. }
  1414. }
  1415. }
  1416. }
  1417. }
  1418. },
  1419. "403": {
  1420. "description": "Deleting app password is not allowed",
  1421. "content": {
  1422. "application/json": {
  1423. "schema": {
  1424. "type": "object",
  1425. "required": [
  1426. "ocs"
  1427. ],
  1428. "properties": {
  1429. "ocs": {
  1430. "type": "object",
  1431. "required": [
  1432. "meta",
  1433. "data"
  1434. ],
  1435. "properties": {
  1436. "meta": {
  1437. "$ref": "#/components/schemas/OCSMeta"
  1438. },
  1439. "data": {}
  1440. }
  1441. }
  1442. }
  1443. }
  1444. }
  1445. }
  1446. },
  1447. "401": {
  1448. "description": "Current user is not logged in",
  1449. "content": {
  1450. "application/json": {
  1451. "schema": {
  1452. "type": "object",
  1453. "required": [
  1454. "ocs"
  1455. ],
  1456. "properties": {
  1457. "ocs": {
  1458. "type": "object",
  1459. "required": [
  1460. "meta",
  1461. "data"
  1462. ],
  1463. "properties": {
  1464. "meta": {
  1465. "$ref": "#/components/schemas/OCSMeta"
  1466. },
  1467. "data": {}
  1468. }
  1469. }
  1470. }
  1471. }
  1472. }
  1473. }
  1474. }
  1475. }
  1476. }
  1477. },
  1478. "/ocs/v2.php/core/apppassword/rotate": {
  1479. "post": {
  1480. "operationId": "app_password-rotate-app-password",
  1481. "summary": "Rotate app password",
  1482. "tags": [
  1483. "app_password"
  1484. ],
  1485. "security": [
  1486. {
  1487. "bearer_auth": []
  1488. },
  1489. {
  1490. "basic_auth": []
  1491. }
  1492. ],
  1493. "parameters": [
  1494. {
  1495. "name": "OCS-APIRequest",
  1496. "in": "header",
  1497. "description": "Required to be true for the API request to pass",
  1498. "required": true,
  1499. "schema": {
  1500. "type": "boolean",
  1501. "default": true
  1502. }
  1503. }
  1504. ],
  1505. "responses": {
  1506. "200": {
  1507. "description": "App password returned",
  1508. "content": {
  1509. "application/json": {
  1510. "schema": {
  1511. "type": "object",
  1512. "required": [
  1513. "ocs"
  1514. ],
  1515. "properties": {
  1516. "ocs": {
  1517. "type": "object",
  1518. "required": [
  1519. "meta",
  1520. "data"
  1521. ],
  1522. "properties": {
  1523. "meta": {
  1524. "$ref": "#/components/schemas/OCSMeta"
  1525. },
  1526. "data": {
  1527. "type": "object",
  1528. "required": [
  1529. "apppassword"
  1530. ],
  1531. "properties": {
  1532. "apppassword": {
  1533. "type": "string"
  1534. }
  1535. }
  1536. }
  1537. }
  1538. }
  1539. }
  1540. }
  1541. }
  1542. }
  1543. },
  1544. "403": {
  1545. "description": "Rotating app password is not allowed",
  1546. "content": {
  1547. "application/json": {
  1548. "schema": {
  1549. "type": "object",
  1550. "required": [
  1551. "ocs"
  1552. ],
  1553. "properties": {
  1554. "ocs": {
  1555. "type": "object",
  1556. "required": [
  1557. "meta",
  1558. "data"
  1559. ],
  1560. "properties": {
  1561. "meta": {
  1562. "$ref": "#/components/schemas/OCSMeta"
  1563. },
  1564. "data": {}
  1565. }
  1566. }
  1567. }
  1568. }
  1569. }
  1570. }
  1571. },
  1572. "401": {
  1573. "description": "Current user is not logged in",
  1574. "content": {
  1575. "application/json": {
  1576. "schema": {
  1577. "type": "object",
  1578. "required": [
  1579. "ocs"
  1580. ],
  1581. "properties": {
  1582. "ocs": {
  1583. "type": "object",
  1584. "required": [
  1585. "meta",
  1586. "data"
  1587. ],
  1588. "properties": {
  1589. "meta": {
  1590. "$ref": "#/components/schemas/OCSMeta"
  1591. },
  1592. "data": {}
  1593. }
  1594. }
  1595. }
  1596. }
  1597. }
  1598. }
  1599. }
  1600. }
  1601. }
  1602. },
  1603. "/ocs/v2.php/core/apppassword/confirm": {
  1604. "put": {
  1605. "operationId": "app_password-confirm-user-password",
  1606. "summary": "Confirm the user password",
  1607. "tags": [
  1608. "app_password"
  1609. ],
  1610. "security": [
  1611. {
  1612. "bearer_auth": []
  1613. },
  1614. {
  1615. "basic_auth": []
  1616. }
  1617. ],
  1618. "requestBody": {
  1619. "required": true,
  1620. "content": {
  1621. "application/json": {
  1622. "schema": {
  1623. "type": "object",
  1624. "required": [
  1625. "password"
  1626. ],
  1627. "properties": {
  1628. "password": {
  1629. "type": "string",
  1630. "description": "The password of the user"
  1631. }
  1632. }
  1633. }
  1634. }
  1635. }
  1636. },
  1637. "parameters": [
  1638. {
  1639. "name": "OCS-APIRequest",
  1640. "in": "header",
  1641. "description": "Required to be true for the API request to pass",
  1642. "required": true,
  1643. "schema": {
  1644. "type": "boolean",
  1645. "default": true
  1646. }
  1647. }
  1648. ],
  1649. "responses": {
  1650. "200": {
  1651. "description": "Password confirmation succeeded",
  1652. "content": {
  1653. "application/json": {
  1654. "schema": {
  1655. "type": "object",
  1656. "required": [
  1657. "ocs"
  1658. ],
  1659. "properties": {
  1660. "ocs": {
  1661. "type": "object",
  1662. "required": [
  1663. "meta",
  1664. "data"
  1665. ],
  1666. "properties": {
  1667. "meta": {
  1668. "$ref": "#/components/schemas/OCSMeta"
  1669. },
  1670. "data": {
  1671. "type": "object",
  1672. "required": [
  1673. "lastLogin"
  1674. ],
  1675. "properties": {
  1676. "lastLogin": {
  1677. "type": "integer",
  1678. "format": "int64"
  1679. }
  1680. }
  1681. }
  1682. }
  1683. }
  1684. }
  1685. }
  1686. }
  1687. }
  1688. },
  1689. "403": {
  1690. "description": "Password confirmation failed",
  1691. "content": {
  1692. "application/json": {
  1693. "schema": {
  1694. "type": "object",
  1695. "required": [
  1696. "ocs"
  1697. ],
  1698. "properties": {
  1699. "ocs": {
  1700. "type": "object",
  1701. "required": [
  1702. "meta",
  1703. "data"
  1704. ],
  1705. "properties": {
  1706. "meta": {
  1707. "$ref": "#/components/schemas/OCSMeta"
  1708. },
  1709. "data": {}
  1710. }
  1711. }
  1712. }
  1713. }
  1714. }
  1715. }
  1716. },
  1717. "401": {
  1718. "description": "Current user is not logged in",
  1719. "content": {
  1720. "application/json": {
  1721. "schema": {
  1722. "type": "object",
  1723. "required": [
  1724. "ocs"
  1725. ],
  1726. "properties": {
  1727. "ocs": {
  1728. "type": "object",
  1729. "required": [
  1730. "meta",
  1731. "data"
  1732. ],
  1733. "properties": {
  1734. "meta": {
  1735. "$ref": "#/components/schemas/OCSMeta"
  1736. },
  1737. "data": {}
  1738. }
  1739. }
  1740. }
  1741. }
  1742. }
  1743. }
  1744. }
  1745. }
  1746. }
  1747. },
  1748. "/ocs/v2.php/core/autocomplete/get": {
  1749. "get": {
  1750. "operationId": "auto_complete-get",
  1751. "summary": "Autocomplete a query",
  1752. "tags": [
  1753. "auto_complete"
  1754. ],
  1755. "security": [
  1756. {
  1757. "bearer_auth": []
  1758. },
  1759. {
  1760. "basic_auth": []
  1761. }
  1762. ],
  1763. "parameters": [
  1764. {
  1765. "name": "search",
  1766. "in": "query",
  1767. "description": "Text to search for",
  1768. "required": true,
  1769. "schema": {
  1770. "type": "string"
  1771. }
  1772. },
  1773. {
  1774. "name": "itemType",
  1775. "in": "query",
  1776. "description": "Type of the items to search for",
  1777. "schema": {
  1778. "type": "string",
  1779. "nullable": true
  1780. }
  1781. },
  1782. {
  1783. "name": "itemId",
  1784. "in": "query",
  1785. "description": "ID of the items to search for",
  1786. "schema": {
  1787. "type": "string",
  1788. "nullable": true
  1789. }
  1790. },
  1791. {
  1792. "name": "sorter",
  1793. "in": "query",
  1794. "description": "can be piped, top prio first, e.g.: \"commenters|share-recipients\"",
  1795. "schema": {
  1796. "type": "string",
  1797. "nullable": true,
  1798. "default": null
  1799. }
  1800. },
  1801. {
  1802. "name": "shareTypes[]",
  1803. "in": "query",
  1804. "description": "Types of shares to search for",
  1805. "schema": {
  1806. "type": "array",
  1807. "default": [],
  1808. "items": {
  1809. "type": "integer",
  1810. "format": "int64"
  1811. }
  1812. }
  1813. },
  1814. {
  1815. "name": "limit",
  1816. "in": "query",
  1817. "description": "Maximum number of results to return",
  1818. "schema": {
  1819. "type": "integer",
  1820. "format": "int64",
  1821. "default": 10
  1822. }
  1823. },
  1824. {
  1825. "name": "OCS-APIRequest",
  1826. "in": "header",
  1827. "description": "Required to be true for the API request to pass",
  1828. "required": true,
  1829. "schema": {
  1830. "type": "boolean",
  1831. "default": true
  1832. }
  1833. }
  1834. ],
  1835. "responses": {
  1836. "200": {
  1837. "description": "Autocomplete results returned",
  1838. "content": {
  1839. "application/json": {
  1840. "schema": {
  1841. "type": "object",
  1842. "required": [
  1843. "ocs"
  1844. ],
  1845. "properties": {
  1846. "ocs": {
  1847. "type": "object",
  1848. "required": [
  1849. "meta",
  1850. "data"
  1851. ],
  1852. "properties": {
  1853. "meta": {
  1854. "$ref": "#/components/schemas/OCSMeta"
  1855. },
  1856. "data": {
  1857. "type": "array",
  1858. "items": {
  1859. "$ref": "#/components/schemas/AutocompleteResult"
  1860. }
  1861. }
  1862. }
  1863. }
  1864. }
  1865. }
  1866. }
  1867. }
  1868. },
  1869. "401": {
  1870. "description": "Current user is not logged in",
  1871. "content": {
  1872. "application/json": {
  1873. "schema": {
  1874. "type": "object",
  1875. "required": [
  1876. "ocs"
  1877. ],
  1878. "properties": {
  1879. "ocs": {
  1880. "type": "object",
  1881. "required": [
  1882. "meta",
  1883. "data"
  1884. ],
  1885. "properties": {
  1886. "meta": {
  1887. "$ref": "#/components/schemas/OCSMeta"
  1888. },
  1889. "data": {}
  1890. }
  1891. }
  1892. }
  1893. }
  1894. }
  1895. }
  1896. }
  1897. }
  1898. }
  1899. },
  1900. "/ocs/v2.php/collaboration/resources/collections/{collectionId}": {
  1901. "get": {
  1902. "operationId": "collaboration_resources-list-collection",
  1903. "summary": "Get a collection",
  1904. "tags": [
  1905. "collaboration_resources"
  1906. ],
  1907. "security": [
  1908. {
  1909. "bearer_auth": []
  1910. },
  1911. {
  1912. "basic_auth": []
  1913. }
  1914. ],
  1915. "parameters": [
  1916. {
  1917. "name": "collectionId",
  1918. "in": "path",
  1919. "description": "ID of the collection",
  1920. "required": true,
  1921. "schema": {
  1922. "type": "integer",
  1923. "format": "int64"
  1924. }
  1925. },
  1926. {
  1927. "name": "OCS-APIRequest",
  1928. "in": "header",
  1929. "description": "Required to be true for the API request to pass",
  1930. "required": true,
  1931. "schema": {
  1932. "type": "boolean",
  1933. "default": true
  1934. }
  1935. }
  1936. ],
  1937. "responses": {
  1938. "200": {
  1939. "description": "Collection returned",
  1940. "content": {
  1941. "application/json": {
  1942. "schema": {
  1943. "type": "object",
  1944. "required": [
  1945. "ocs"
  1946. ],
  1947. "properties": {
  1948. "ocs": {
  1949. "type": "object",
  1950. "required": [
  1951. "meta",
  1952. "data"
  1953. ],
  1954. "properties": {
  1955. "meta": {
  1956. "$ref": "#/components/schemas/OCSMeta"
  1957. },
  1958. "data": {
  1959. "$ref": "#/components/schemas/Collection"
  1960. }
  1961. }
  1962. }
  1963. }
  1964. }
  1965. }
  1966. }
  1967. },
  1968. "404": {
  1969. "description": "Collection not found",
  1970. "content": {
  1971. "application/json": {
  1972. "schema": {
  1973. "type": "object",
  1974. "required": [
  1975. "ocs"
  1976. ],
  1977. "properties": {
  1978. "ocs": {
  1979. "type": "object",
  1980. "required": [
  1981. "meta",
  1982. "data"
  1983. ],
  1984. "properties": {
  1985. "meta": {
  1986. "$ref": "#/components/schemas/OCSMeta"
  1987. },
  1988. "data": {}
  1989. }
  1990. }
  1991. }
  1992. }
  1993. }
  1994. }
  1995. },
  1996. "500": {
  1997. "description": "",
  1998. "content": {
  1999. "application/json": {
  2000. "schema": {
  2001. "type": "object",
  2002. "required": [
  2003. "ocs"
  2004. ],
  2005. "properties": {
  2006. "ocs": {
  2007. "type": "object",
  2008. "required": [
  2009. "meta",
  2010. "data"
  2011. ],
  2012. "properties": {
  2013. "meta": {
  2014. "$ref": "#/components/schemas/OCSMeta"
  2015. },
  2016. "data": {}
  2017. }
  2018. }
  2019. }
  2020. }
  2021. }
  2022. }
  2023. },
  2024. "401": {
  2025. "description": "Current user is not logged in",
  2026. "content": {
  2027. "application/json": {
  2028. "schema": {
  2029. "type": "object",
  2030. "required": [
  2031. "ocs"
  2032. ],
  2033. "properties": {
  2034. "ocs": {
  2035. "type": "object",
  2036. "required": [
  2037. "meta",
  2038. "data"
  2039. ],
  2040. "properties": {
  2041. "meta": {
  2042. "$ref": "#/components/schemas/OCSMeta"
  2043. },
  2044. "data": {}
  2045. }
  2046. }
  2047. }
  2048. }
  2049. }
  2050. }
  2051. }
  2052. }
  2053. },
  2054. "post": {
  2055. "operationId": "collaboration_resources-add-resource",
  2056. "summary": "Add a resource to a collection",
  2057. "tags": [
  2058. "collaboration_resources"
  2059. ],
  2060. "security": [
  2061. {
  2062. "bearer_auth": []
  2063. },
  2064. {
  2065. "basic_auth": []
  2066. }
  2067. ],
  2068. "requestBody": {
  2069. "required": true,
  2070. "content": {
  2071. "application/json": {
  2072. "schema": {
  2073. "type": "object",
  2074. "required": [
  2075. "resourceType",
  2076. "resourceId"
  2077. ],
  2078. "properties": {
  2079. "resourceType": {
  2080. "type": "string",
  2081. "description": "Name of the resource"
  2082. },
  2083. "resourceId": {
  2084. "type": "string",
  2085. "description": "ID of the resource"
  2086. }
  2087. }
  2088. }
  2089. }
  2090. }
  2091. },
  2092. "parameters": [
  2093. {
  2094. "name": "collectionId",
  2095. "in": "path",
  2096. "description": "ID of the collection",
  2097. "required": true,
  2098. "schema": {
  2099. "type": "integer",
  2100. "format": "int64"
  2101. }
  2102. },
  2103. {
  2104. "name": "OCS-APIRequest",
  2105. "in": "header",
  2106. "description": "Required to be true for the API request to pass",
  2107. "required": true,
  2108. "schema": {
  2109. "type": "boolean",
  2110. "default": true
  2111. }
  2112. }
  2113. ],
  2114. "responses": {
  2115. "200": {
  2116. "description": "Collection returned",
  2117. "content": {
  2118. "application/json": {
  2119. "schema": {
  2120. "type": "object",
  2121. "required": [
  2122. "ocs"
  2123. ],
  2124. "properties": {
  2125. "ocs": {
  2126. "type": "object",
  2127. "required": [
  2128. "meta",
  2129. "data"
  2130. ],
  2131. "properties": {
  2132. "meta": {
  2133. "$ref": "#/components/schemas/OCSMeta"
  2134. },
  2135. "data": {
  2136. "$ref": "#/components/schemas/Collection"
  2137. }
  2138. }
  2139. }
  2140. }
  2141. }
  2142. }
  2143. }
  2144. },
  2145. "404": {
  2146. "description": "Collection not found or resource inaccessible",
  2147. "content": {
  2148. "application/json": {
  2149. "schema": {
  2150. "type": "object",
  2151. "required": [
  2152. "ocs"
  2153. ],
  2154. "properties": {
  2155. "ocs": {
  2156. "type": "object",
  2157. "required": [
  2158. "meta",
  2159. "data"
  2160. ],
  2161. "properties": {
  2162. "meta": {
  2163. "$ref": "#/components/schemas/OCSMeta"
  2164. },
  2165. "data": {}
  2166. }
  2167. }
  2168. }
  2169. }
  2170. }
  2171. }
  2172. },
  2173. "500": {
  2174. "description": "",
  2175. "content": {
  2176. "application/json": {
  2177. "schema": {
  2178. "type": "object",
  2179. "required": [
  2180. "ocs"
  2181. ],
  2182. "properties": {
  2183. "ocs": {
  2184. "type": "object",
  2185. "required": [
  2186. "meta",
  2187. "data"
  2188. ],
  2189. "properties": {
  2190. "meta": {
  2191. "$ref": "#/components/schemas/OCSMeta"
  2192. },
  2193. "data": {}
  2194. }
  2195. }
  2196. }
  2197. }
  2198. }
  2199. }
  2200. },
  2201. "401": {
  2202. "description": "Current user is not logged in",
  2203. "content": {
  2204. "application/json": {
  2205. "schema": {
  2206. "type": "object",
  2207. "required": [
  2208. "ocs"
  2209. ],
  2210. "properties": {
  2211. "ocs": {
  2212. "type": "object",
  2213. "required": [
  2214. "meta",
  2215. "data"
  2216. ],
  2217. "properties": {
  2218. "meta": {
  2219. "$ref": "#/components/schemas/OCSMeta"
  2220. },
  2221. "data": {}
  2222. }
  2223. }
  2224. }
  2225. }
  2226. }
  2227. }
  2228. }
  2229. }
  2230. },
  2231. "delete": {
  2232. "operationId": "collaboration_resources-remove-resource",
  2233. "summary": "Remove a resource from a collection",
  2234. "tags": [
  2235. "collaboration_resources"
  2236. ],
  2237. "security": [
  2238. {
  2239. "bearer_auth": []
  2240. },
  2241. {
  2242. "basic_auth": []
  2243. }
  2244. ],
  2245. "parameters": [
  2246. {
  2247. "name": "collectionId",
  2248. "in": "path",
  2249. "description": "ID of the collection",
  2250. "required": true,
  2251. "schema": {
  2252. "type": "integer",
  2253. "format": "int64"
  2254. }
  2255. },
  2256. {
  2257. "name": "resourceType",
  2258. "in": "query",
  2259. "description": "Name of the resource",
  2260. "required": true,
  2261. "schema": {
  2262. "type": "string"
  2263. }
  2264. },
  2265. {
  2266. "name": "resourceId",
  2267. "in": "query",
  2268. "description": "ID of the resource",
  2269. "required": true,
  2270. "schema": {
  2271. "type": "string"
  2272. }
  2273. },
  2274. {
  2275. "name": "OCS-APIRequest",
  2276. "in": "header",
  2277. "description": "Required to be true for the API request to pass",
  2278. "required": true,
  2279. "schema": {
  2280. "type": "boolean",
  2281. "default": true
  2282. }
  2283. }
  2284. ],
  2285. "responses": {
  2286. "200": {
  2287. "description": "Collection returned",
  2288. "content": {
  2289. "application/json": {
  2290. "schema": {
  2291. "type": "object",
  2292. "required": [
  2293. "ocs"
  2294. ],
  2295. "properties": {
  2296. "ocs": {
  2297. "type": "object",
  2298. "required": [
  2299. "meta",
  2300. "data"
  2301. ],
  2302. "properties": {
  2303. "meta": {
  2304. "$ref": "#/components/schemas/OCSMeta"
  2305. },
  2306. "data": {
  2307. "$ref": "#/components/schemas/Collection"
  2308. }
  2309. }
  2310. }
  2311. }
  2312. }
  2313. }
  2314. }
  2315. },
  2316. "404": {
  2317. "description": "Collection or resource not found",
  2318. "content": {
  2319. "application/json": {
  2320. "schema": {
  2321. "type": "object",
  2322. "required": [
  2323. "ocs"
  2324. ],
  2325. "properties": {
  2326. "ocs": {
  2327. "type": "object",
  2328. "required": [
  2329. "meta",
  2330. "data"
  2331. ],
  2332. "properties": {
  2333. "meta": {
  2334. "$ref": "#/components/schemas/OCSMeta"
  2335. },
  2336. "data": {}
  2337. }
  2338. }
  2339. }
  2340. }
  2341. }
  2342. }
  2343. },
  2344. "500": {
  2345. "description": "",
  2346. "content": {
  2347. "application/json": {
  2348. "schema": {
  2349. "type": "object",
  2350. "required": [
  2351. "ocs"
  2352. ],
  2353. "properties": {
  2354. "ocs": {
  2355. "type": "object",
  2356. "required": [
  2357. "meta",
  2358. "data"
  2359. ],
  2360. "properties": {
  2361. "meta": {
  2362. "$ref": "#/components/schemas/OCSMeta"
  2363. },
  2364. "data": {}
  2365. }
  2366. }
  2367. }
  2368. }
  2369. }
  2370. }
  2371. },
  2372. "401": {
  2373. "description": "Current user is not logged in",
  2374. "content": {
  2375. "application/json": {
  2376. "schema": {
  2377. "type": "object",
  2378. "required": [
  2379. "ocs"
  2380. ],
  2381. "properties": {
  2382. "ocs": {
  2383. "type": "object",
  2384. "required": [
  2385. "meta",
  2386. "data"
  2387. ],
  2388. "properties": {
  2389. "meta": {
  2390. "$ref": "#/components/schemas/OCSMeta"
  2391. },
  2392. "data": {}
  2393. }
  2394. }
  2395. }
  2396. }
  2397. }
  2398. }
  2399. }
  2400. }
  2401. },
  2402. "put": {
  2403. "operationId": "collaboration_resources-rename-collection",
  2404. "summary": "Rename a collection",
  2405. "tags": [
  2406. "collaboration_resources"
  2407. ],
  2408. "security": [
  2409. {
  2410. "bearer_auth": []
  2411. },
  2412. {
  2413. "basic_auth": []
  2414. }
  2415. ],
  2416. "requestBody": {
  2417. "required": true,
  2418. "content": {
  2419. "application/json": {
  2420. "schema": {
  2421. "type": "object",
  2422. "required": [
  2423. "collectionName"
  2424. ],
  2425. "properties": {
  2426. "collectionName": {
  2427. "type": "string",
  2428. "description": "New name"
  2429. }
  2430. }
  2431. }
  2432. }
  2433. }
  2434. },
  2435. "parameters": [
  2436. {
  2437. "name": "collectionId",
  2438. "in": "path",
  2439. "description": "ID of the collection",
  2440. "required": true,
  2441. "schema": {
  2442. "type": "integer",
  2443. "format": "int64"
  2444. }
  2445. },
  2446. {
  2447. "name": "OCS-APIRequest",
  2448. "in": "header",
  2449. "description": "Required to be true for the API request to pass",
  2450. "required": true,
  2451. "schema": {
  2452. "type": "boolean",
  2453. "default": true
  2454. }
  2455. }
  2456. ],
  2457. "responses": {
  2458. "200": {
  2459. "description": "Collection returned",
  2460. "content": {
  2461. "application/json": {
  2462. "schema": {
  2463. "type": "object",
  2464. "required": [
  2465. "ocs"
  2466. ],
  2467. "properties": {
  2468. "ocs": {
  2469. "type": "object",
  2470. "required": [
  2471. "meta",
  2472. "data"
  2473. ],
  2474. "properties": {
  2475. "meta": {
  2476. "$ref": "#/components/schemas/OCSMeta"
  2477. },
  2478. "data": {
  2479. "$ref": "#/components/schemas/Collection"
  2480. }
  2481. }
  2482. }
  2483. }
  2484. }
  2485. }
  2486. }
  2487. },
  2488. "404": {
  2489. "description": "Collection not found",
  2490. "content": {
  2491. "application/json": {
  2492. "schema": {
  2493. "type": "object",
  2494. "required": [
  2495. "ocs"
  2496. ],
  2497. "properties": {
  2498. "ocs": {
  2499. "type": "object",
  2500. "required": [
  2501. "meta",
  2502. "data"
  2503. ],
  2504. "properties": {
  2505. "meta": {
  2506. "$ref": "#/components/schemas/OCSMeta"
  2507. },
  2508. "data": {}
  2509. }
  2510. }
  2511. }
  2512. }
  2513. }
  2514. }
  2515. },
  2516. "500": {
  2517. "description": "",
  2518. "content": {
  2519. "application/json": {
  2520. "schema": {
  2521. "type": "object",
  2522. "required": [
  2523. "ocs"
  2524. ],
  2525. "properties": {
  2526. "ocs": {
  2527. "type": "object",
  2528. "required": [
  2529. "meta",
  2530. "data"
  2531. ],
  2532. "properties": {
  2533. "meta": {
  2534. "$ref": "#/components/schemas/OCSMeta"
  2535. },
  2536. "data": {}
  2537. }
  2538. }
  2539. }
  2540. }
  2541. }
  2542. }
  2543. },
  2544. "401": {
  2545. "description": "Current user is not logged in",
  2546. "content": {
  2547. "application/json": {
  2548. "schema": {
  2549. "type": "object",
  2550. "required": [
  2551. "ocs"
  2552. ],
  2553. "properties": {
  2554. "ocs": {
  2555. "type": "object",
  2556. "required": [
  2557. "meta",
  2558. "data"
  2559. ],
  2560. "properties": {
  2561. "meta": {
  2562. "$ref": "#/components/schemas/OCSMeta"
  2563. },
  2564. "data": {}
  2565. }
  2566. }
  2567. }
  2568. }
  2569. }
  2570. }
  2571. }
  2572. }
  2573. }
  2574. },
  2575. "/ocs/v2.php/collaboration/resources/collections/search/{filter}": {
  2576. "get": {
  2577. "operationId": "collaboration_resources-search-collections",
  2578. "summary": "Search for collections",
  2579. "tags": [
  2580. "collaboration_resources"
  2581. ],
  2582. "security": [
  2583. {
  2584. "bearer_auth": []
  2585. },
  2586. {
  2587. "basic_auth": []
  2588. }
  2589. ],
  2590. "parameters": [
  2591. {
  2592. "name": "filter",
  2593. "in": "path",
  2594. "description": "Filter collections",
  2595. "required": true,
  2596. "schema": {
  2597. "type": "string"
  2598. }
  2599. },
  2600. {
  2601. "name": "OCS-APIRequest",
  2602. "in": "header",
  2603. "description": "Required to be true for the API request to pass",
  2604. "required": true,
  2605. "schema": {
  2606. "type": "boolean",
  2607. "default": true
  2608. }
  2609. }
  2610. ],
  2611. "responses": {
  2612. "200": {
  2613. "description": "Collections returned",
  2614. "content": {
  2615. "application/json": {
  2616. "schema": {
  2617. "type": "object",
  2618. "required": [
  2619. "ocs"
  2620. ],
  2621. "properties": {
  2622. "ocs": {
  2623. "type": "object",
  2624. "required": [
  2625. "meta",
  2626. "data"
  2627. ],
  2628. "properties": {
  2629. "meta": {
  2630. "$ref": "#/components/schemas/OCSMeta"
  2631. },
  2632. "data": {
  2633. "type": "array",
  2634. "items": {
  2635. "$ref": "#/components/schemas/Collection"
  2636. }
  2637. }
  2638. }
  2639. }
  2640. }
  2641. }
  2642. }
  2643. }
  2644. },
  2645. "404": {
  2646. "description": "Collection not found",
  2647. "content": {
  2648. "application/json": {
  2649. "schema": {
  2650. "type": "object",
  2651. "required": [
  2652. "ocs"
  2653. ],
  2654. "properties": {
  2655. "ocs": {
  2656. "type": "object",
  2657. "required": [
  2658. "meta",
  2659. "data"
  2660. ],
  2661. "properties": {
  2662. "meta": {
  2663. "$ref": "#/components/schemas/OCSMeta"
  2664. },
  2665. "data": {}
  2666. }
  2667. }
  2668. }
  2669. }
  2670. }
  2671. }
  2672. },
  2673. "401": {
  2674. "description": "Current user is not logged in",
  2675. "content": {
  2676. "application/json": {
  2677. "schema": {
  2678. "type": "object",
  2679. "required": [
  2680. "ocs"
  2681. ],
  2682. "properties": {
  2683. "ocs": {
  2684. "type": "object",
  2685. "required": [
  2686. "meta",
  2687. "data"
  2688. ],
  2689. "properties": {
  2690. "meta": {
  2691. "$ref": "#/components/schemas/OCSMeta"
  2692. },
  2693. "data": {}
  2694. }
  2695. }
  2696. }
  2697. }
  2698. }
  2699. }
  2700. }
  2701. }
  2702. }
  2703. },
  2704. "/ocs/v2.php/collaboration/resources/{resourceType}/{resourceId}": {
  2705. "get": {
  2706. "operationId": "collaboration_resources-get-collections-by-resource",
  2707. "summary": "Get collections by resource",
  2708. "tags": [
  2709. "collaboration_resources"
  2710. ],
  2711. "security": [
  2712. {
  2713. "bearer_auth": []
  2714. },
  2715. {
  2716. "basic_auth": []
  2717. }
  2718. ],
  2719. "parameters": [
  2720. {
  2721. "name": "resourceType",
  2722. "in": "path",
  2723. "description": "Type of the resource",
  2724. "required": true,
  2725. "schema": {
  2726. "type": "string"
  2727. }
  2728. },
  2729. {
  2730. "name": "resourceId",
  2731. "in": "path",
  2732. "description": "ID of the resource",
  2733. "required": true,
  2734. "schema": {
  2735. "type": "string"
  2736. }
  2737. },
  2738. {
  2739. "name": "OCS-APIRequest",
  2740. "in": "header",
  2741. "description": "Required to be true for the API request to pass",
  2742. "required": true,
  2743. "schema": {
  2744. "type": "boolean",
  2745. "default": true
  2746. }
  2747. }
  2748. ],
  2749. "responses": {
  2750. "200": {
  2751. "description": "Collections returned",
  2752. "content": {
  2753. "application/json": {
  2754. "schema": {
  2755. "type": "object",
  2756. "required": [
  2757. "ocs"
  2758. ],
  2759. "properties": {
  2760. "ocs": {
  2761. "type": "object",
  2762. "required": [
  2763. "meta",
  2764. "data"
  2765. ],
  2766. "properties": {
  2767. "meta": {
  2768. "$ref": "#/components/schemas/OCSMeta"
  2769. },
  2770. "data": {
  2771. "type": "array",
  2772. "items": {
  2773. "$ref": "#/components/schemas/Collection"
  2774. }
  2775. }
  2776. }
  2777. }
  2778. }
  2779. }
  2780. }
  2781. }
  2782. },
  2783. "404": {
  2784. "description": "Resource not accessible",
  2785. "content": {
  2786. "application/json": {
  2787. "schema": {
  2788. "type": "object",
  2789. "required": [
  2790. "ocs"
  2791. ],
  2792. "properties": {
  2793. "ocs": {
  2794. "type": "object",
  2795. "required": [
  2796. "meta",
  2797. "data"
  2798. ],
  2799. "properties": {
  2800. "meta": {
  2801. "$ref": "#/components/schemas/OCSMeta"
  2802. },
  2803. "data": {}
  2804. }
  2805. }
  2806. }
  2807. }
  2808. }
  2809. }
  2810. },
  2811. "401": {
  2812. "description": "Current user is not logged in",
  2813. "content": {
  2814. "application/json": {
  2815. "schema": {
  2816. "type": "object",
  2817. "required": [
  2818. "ocs"
  2819. ],
  2820. "properties": {
  2821. "ocs": {
  2822. "type": "object",
  2823. "required": [
  2824. "meta",
  2825. "data"
  2826. ],
  2827. "properties": {
  2828. "meta": {
  2829. "$ref": "#/components/schemas/OCSMeta"
  2830. },
  2831. "data": {}
  2832. }
  2833. }
  2834. }
  2835. }
  2836. }
  2837. }
  2838. }
  2839. }
  2840. }
  2841. },
  2842. "/ocs/v2.php/collaboration/resources/{baseResourceType}/{baseResourceId}": {
  2843. "post": {
  2844. "operationId": "collaboration_resources-create-collection-on-resource",
  2845. "summary": "Create a collection for a resource",
  2846. "tags": [
  2847. "collaboration_resources"
  2848. ],
  2849. "security": [
  2850. {
  2851. "bearer_auth": []
  2852. },
  2853. {
  2854. "basic_auth": []
  2855. }
  2856. ],
  2857. "requestBody": {
  2858. "required": true,
  2859. "content": {
  2860. "application/json": {
  2861. "schema": {
  2862. "type": "object",
  2863. "required": [
  2864. "name"
  2865. ],
  2866. "properties": {
  2867. "name": {
  2868. "type": "string",
  2869. "description": "Name of the collection"
  2870. }
  2871. }
  2872. }
  2873. }
  2874. }
  2875. },
  2876. "parameters": [
  2877. {
  2878. "name": "baseResourceType",
  2879. "in": "path",
  2880. "description": "Type of the base resource",
  2881. "required": true,
  2882. "schema": {
  2883. "type": "string"
  2884. }
  2885. },
  2886. {
  2887. "name": "baseResourceId",
  2888. "in": "path",
  2889. "description": "ID of the base resource",
  2890. "required": true,
  2891. "schema": {
  2892. "type": "string"
  2893. }
  2894. },
  2895. {
  2896. "name": "OCS-APIRequest",
  2897. "in": "header",
  2898. "description": "Required to be true for the API request to pass",
  2899. "required": true,
  2900. "schema": {
  2901. "type": "boolean",
  2902. "default": true
  2903. }
  2904. }
  2905. ],
  2906. "responses": {
  2907. "200": {
  2908. "description": "Collection returned",
  2909. "content": {
  2910. "application/json": {
  2911. "schema": {
  2912. "type": "object",
  2913. "required": [
  2914. "ocs"
  2915. ],
  2916. "properties": {
  2917. "ocs": {
  2918. "type": "object",
  2919. "required": [
  2920. "meta",
  2921. "data"
  2922. ],
  2923. "properties": {
  2924. "meta": {
  2925. "$ref": "#/components/schemas/OCSMeta"
  2926. },
  2927. "data": {
  2928. "$ref": "#/components/schemas/Collection"
  2929. }
  2930. }
  2931. }
  2932. }
  2933. }
  2934. }
  2935. }
  2936. },
  2937. "400": {
  2938. "description": "Creating collection is not possible",
  2939. "content": {
  2940. "application/json": {
  2941. "schema": {
  2942. "type": "object",
  2943. "required": [
  2944. "ocs"
  2945. ],
  2946. "properties": {
  2947. "ocs": {
  2948. "type": "object",
  2949. "required": [
  2950. "meta",
  2951. "data"
  2952. ],
  2953. "properties": {
  2954. "meta": {
  2955. "$ref": "#/components/schemas/OCSMeta"
  2956. },
  2957. "data": {}
  2958. }
  2959. }
  2960. }
  2961. }
  2962. }
  2963. }
  2964. },
  2965. "404": {
  2966. "description": "Resource inaccessible",
  2967. "content": {
  2968. "application/json": {
  2969. "schema": {
  2970. "type": "object",
  2971. "required": [
  2972. "ocs"
  2973. ],
  2974. "properties": {
  2975. "ocs": {
  2976. "type": "object",
  2977. "required": [
  2978. "meta",
  2979. "data"
  2980. ],
  2981. "properties": {
  2982. "meta": {
  2983. "$ref": "#/components/schemas/OCSMeta"
  2984. },
  2985. "data": {}
  2986. }
  2987. }
  2988. }
  2989. }
  2990. }
  2991. }
  2992. },
  2993. "500": {
  2994. "description": "",
  2995. "content": {
  2996. "application/json": {
  2997. "schema": {
  2998. "type": "object",
  2999. "required": [
  3000. "ocs"
  3001. ],
  3002. "properties": {
  3003. "ocs": {
  3004. "type": "object",
  3005. "required": [
  3006. "meta",
  3007. "data"
  3008. ],
  3009. "properties": {
  3010. "meta": {
  3011. "$ref": "#/components/schemas/OCSMeta"
  3012. },
  3013. "data": {}
  3014. }
  3015. }
  3016. }
  3017. }
  3018. }
  3019. }
  3020. },
  3021. "401": {
  3022. "description": "Current user is not logged in",
  3023. "content": {
  3024. "application/json": {
  3025. "schema": {
  3026. "type": "object",
  3027. "required": [
  3028. "ocs"
  3029. ],
  3030. "properties": {
  3031. "ocs": {
  3032. "type": "object",
  3033. "required": [
  3034. "meta",
  3035. "data"
  3036. ],
  3037. "properties": {
  3038. "meta": {
  3039. "$ref": "#/components/schemas/OCSMeta"
  3040. },
  3041. "data": {}
  3042. }
  3043. }
  3044. }
  3045. }
  3046. }
  3047. }
  3048. }
  3049. }
  3050. }
  3051. },
  3052. "/ocs/v2.php/hovercard/v1/{userId}": {
  3053. "get": {
  3054. "operationId": "hover_card-get-user",
  3055. "summary": "Get the account details for a hovercard",
  3056. "tags": [
  3057. "hover_card"
  3058. ],
  3059. "security": [
  3060. {
  3061. "bearer_auth": []
  3062. },
  3063. {
  3064. "basic_auth": []
  3065. }
  3066. ],
  3067. "parameters": [
  3068. {
  3069. "name": "userId",
  3070. "in": "path",
  3071. "description": "ID of the user",
  3072. "required": true,
  3073. "schema": {
  3074. "type": "string"
  3075. }
  3076. },
  3077. {
  3078. "name": "OCS-APIRequest",
  3079. "in": "header",
  3080. "description": "Required to be true for the API request to pass",
  3081. "required": true,
  3082. "schema": {
  3083. "type": "boolean",
  3084. "default": true
  3085. }
  3086. }
  3087. ],
  3088. "responses": {
  3089. "200": {
  3090. "description": "Account details returned",
  3091. "content": {
  3092. "application/json": {
  3093. "schema": {
  3094. "type": "object",
  3095. "required": [
  3096. "ocs"
  3097. ],
  3098. "properties": {
  3099. "ocs": {
  3100. "type": "object",
  3101. "required": [
  3102. "meta",
  3103. "data"
  3104. ],
  3105. "properties": {
  3106. "meta": {
  3107. "$ref": "#/components/schemas/OCSMeta"
  3108. },
  3109. "data": {
  3110. "type": "object",
  3111. "required": [
  3112. "userId",
  3113. "displayName",
  3114. "actions"
  3115. ],
  3116. "properties": {
  3117. "userId": {
  3118. "type": "string"
  3119. },
  3120. "displayName": {
  3121. "type": "string"
  3122. },
  3123. "actions": {
  3124. "type": "array",
  3125. "items": {
  3126. "$ref": "#/components/schemas/ContactsAction"
  3127. }
  3128. }
  3129. }
  3130. }
  3131. }
  3132. }
  3133. }
  3134. }
  3135. }
  3136. }
  3137. },
  3138. "404": {
  3139. "description": "Account not found",
  3140. "content": {
  3141. "application/json": {
  3142. "schema": {
  3143. "type": "object",
  3144. "required": [
  3145. "ocs"
  3146. ],
  3147. "properties": {
  3148. "ocs": {
  3149. "type": "object",
  3150. "required": [
  3151. "meta",
  3152. "data"
  3153. ],
  3154. "properties": {
  3155. "meta": {
  3156. "$ref": "#/components/schemas/OCSMeta"
  3157. },
  3158. "data": {}
  3159. }
  3160. }
  3161. }
  3162. }
  3163. }
  3164. }
  3165. },
  3166. "401": {
  3167. "description": "Current user is not logged in",
  3168. "content": {
  3169. "application/json": {
  3170. "schema": {
  3171. "type": "object",
  3172. "required": [
  3173. "ocs"
  3174. ],
  3175. "properties": {
  3176. "ocs": {
  3177. "type": "object",
  3178. "required": [
  3179. "meta",
  3180. "data"
  3181. ],
  3182. "properties": {
  3183. "meta": {
  3184. "$ref": "#/components/schemas/OCSMeta"
  3185. },
  3186. "data": {}
  3187. }
  3188. }
  3189. }
  3190. }
  3191. }
  3192. }
  3193. }
  3194. }
  3195. }
  3196. },
  3197. "/ocs/v2.php/core/navigation/apps": {
  3198. "get": {
  3199. "operationId": "navigation-get-apps-navigation",
  3200. "summary": "Get the apps navigation",
  3201. "tags": [
  3202. "navigation"
  3203. ],
  3204. "security": [
  3205. {
  3206. "bearer_auth": []
  3207. },
  3208. {
  3209. "basic_auth": []
  3210. }
  3211. ],
  3212. "parameters": [
  3213. {
  3214. "name": "absolute",
  3215. "in": "query",
  3216. "description": "Rewrite URLs to absolute ones",
  3217. "schema": {
  3218. "type": "boolean",
  3219. "default": false
  3220. }
  3221. },
  3222. {
  3223. "name": "OCS-APIRequest",
  3224. "in": "header",
  3225. "description": "Required to be true for the API request to pass",
  3226. "required": true,
  3227. "schema": {
  3228. "type": "boolean",
  3229. "default": true
  3230. }
  3231. }
  3232. ],
  3233. "responses": {
  3234. "200": {
  3235. "description": "Apps navigation returned",
  3236. "content": {
  3237. "application/json": {
  3238. "schema": {
  3239. "type": "object",
  3240. "required": [
  3241. "ocs"
  3242. ],
  3243. "properties": {
  3244. "ocs": {
  3245. "type": "object",
  3246. "required": [
  3247. "meta",
  3248. "data"
  3249. ],
  3250. "properties": {
  3251. "meta": {
  3252. "$ref": "#/components/schemas/OCSMeta"
  3253. },
  3254. "data": {
  3255. "type": "array",
  3256. "items": {
  3257. "$ref": "#/components/schemas/NavigationEntry"
  3258. }
  3259. }
  3260. }
  3261. }
  3262. }
  3263. }
  3264. }
  3265. }
  3266. },
  3267. "304": {
  3268. "description": "No apps navigation changed"
  3269. },
  3270. "401": {
  3271. "description": "Current user is not logged in",
  3272. "content": {
  3273. "application/json": {
  3274. "schema": {
  3275. "type": "object",
  3276. "required": [
  3277. "ocs"
  3278. ],
  3279. "properties": {
  3280. "ocs": {
  3281. "type": "object",
  3282. "required": [
  3283. "meta",
  3284. "data"
  3285. ],
  3286. "properties": {
  3287. "meta": {
  3288. "$ref": "#/components/schemas/OCSMeta"
  3289. },
  3290. "data": {}
  3291. }
  3292. }
  3293. }
  3294. }
  3295. }
  3296. }
  3297. }
  3298. }
  3299. }
  3300. },
  3301. "/ocs/v2.php/core/navigation/settings": {
  3302. "get": {
  3303. "operationId": "navigation-get-settings-navigation",
  3304. "summary": "Get the settings navigation",
  3305. "tags": [
  3306. "navigation"
  3307. ],
  3308. "security": [
  3309. {
  3310. "bearer_auth": []
  3311. },
  3312. {
  3313. "basic_auth": []
  3314. }
  3315. ],
  3316. "parameters": [
  3317. {
  3318. "name": "absolute",
  3319. "in": "query",
  3320. "description": "Rewrite URLs to absolute ones",
  3321. "schema": {
  3322. "type": "boolean",
  3323. "default": false
  3324. }
  3325. },
  3326. {
  3327. "name": "OCS-APIRequest",
  3328. "in": "header",
  3329. "description": "Required to be true for the API request to pass",
  3330. "required": true,
  3331. "schema": {
  3332. "type": "boolean",
  3333. "default": true
  3334. }
  3335. }
  3336. ],
  3337. "responses": {
  3338. "200": {
  3339. "description": "Apps navigation returned",
  3340. "content": {
  3341. "application/json": {
  3342. "schema": {
  3343. "type": "object",
  3344. "required": [
  3345. "ocs"
  3346. ],
  3347. "properties": {
  3348. "ocs": {
  3349. "type": "object",
  3350. "required": [
  3351. "meta",
  3352. "data"
  3353. ],
  3354. "properties": {
  3355. "meta": {
  3356. "$ref": "#/components/schemas/OCSMeta"
  3357. },
  3358. "data": {
  3359. "type": "array",
  3360. "items": {
  3361. "$ref": "#/components/schemas/NavigationEntry"
  3362. }
  3363. }
  3364. }
  3365. }
  3366. }
  3367. }
  3368. }
  3369. }
  3370. },
  3371. "304": {
  3372. "description": "No apps navigation changed"
  3373. },
  3374. "401": {
  3375. "description": "Current user is not logged in",
  3376. "content": {
  3377. "application/json": {
  3378. "schema": {
  3379. "type": "object",
  3380. "required": [
  3381. "ocs"
  3382. ],
  3383. "properties": {
  3384. "ocs": {
  3385. "type": "object",
  3386. "required": [
  3387. "meta",
  3388. "data"
  3389. ],
  3390. "properties": {
  3391. "meta": {
  3392. "$ref": "#/components/schemas/OCSMeta"
  3393. },
  3394. "data": {}
  3395. }
  3396. }
  3397. }
  3398. }
  3399. }
  3400. }
  3401. }
  3402. }
  3403. }
  3404. },
  3405. "/ocs/v2.php/cloud/capabilities": {
  3406. "get": {
  3407. "operationId": "ocs-get-capabilities",
  3408. "summary": "Get the capabilities",
  3409. "tags": [
  3410. "ocs"
  3411. ],
  3412. "security": [
  3413. {},
  3414. {
  3415. "bearer_auth": []
  3416. },
  3417. {
  3418. "basic_auth": []
  3419. }
  3420. ],
  3421. "parameters": [
  3422. {
  3423. "name": "OCS-APIRequest",
  3424. "in": "header",
  3425. "description": "Required to be true for the API request to pass",
  3426. "required": true,
  3427. "schema": {
  3428. "type": "boolean",
  3429. "default": true
  3430. }
  3431. }
  3432. ],
  3433. "responses": {
  3434. "200": {
  3435. "description": "Capabilities returned",
  3436. "content": {
  3437. "application/json": {
  3438. "schema": {
  3439. "type": "object",
  3440. "required": [
  3441. "ocs"
  3442. ],
  3443. "properties": {
  3444. "ocs": {
  3445. "type": "object",
  3446. "required": [
  3447. "meta",
  3448. "data"
  3449. ],
  3450. "properties": {
  3451. "meta": {
  3452. "$ref": "#/components/schemas/OCSMeta"
  3453. },
  3454. "data": {
  3455. "type": "object",
  3456. "required": [
  3457. "version",
  3458. "capabilities"
  3459. ],
  3460. "properties": {
  3461. "version": {
  3462. "type": "object",
  3463. "required": [
  3464. "major",
  3465. "minor",
  3466. "micro",
  3467. "string",
  3468. "edition",
  3469. "extendedSupport"
  3470. ],
  3471. "properties": {
  3472. "major": {
  3473. "type": "integer",
  3474. "format": "int64"
  3475. },
  3476. "minor": {
  3477. "type": "integer",
  3478. "format": "int64"
  3479. },
  3480. "micro": {
  3481. "type": "integer",
  3482. "format": "int64"
  3483. },
  3484. "string": {
  3485. "type": "string"
  3486. },
  3487. "edition": {
  3488. "type": "string"
  3489. },
  3490. "extendedSupport": {
  3491. "type": "boolean"
  3492. }
  3493. }
  3494. },
  3495. "capabilities": {
  3496. "type": "object",
  3497. "additionalProperties": {
  3498. "type": "object"
  3499. }
  3500. }
  3501. }
  3502. }
  3503. }
  3504. }
  3505. }
  3506. }
  3507. }
  3508. }
  3509. }
  3510. }
  3511. }
  3512. },
  3513. "/ocs/v2.php/profile/{targetUserId}": {
  3514. "put": {
  3515. "operationId": "profile_api-set-visibility",
  3516. "summary": "Update the visibility of a parameter",
  3517. "description": "This endpoint requires password confirmation",
  3518. "tags": [
  3519. "profile_api"
  3520. ],
  3521. "security": [
  3522. {
  3523. "bearer_auth": []
  3524. },
  3525. {
  3526. "basic_auth": []
  3527. }
  3528. ],
  3529. "requestBody": {
  3530. "required": true,
  3531. "content": {
  3532. "application/json": {
  3533. "schema": {
  3534. "type": "object",
  3535. "required": [
  3536. "paramId",
  3537. "visibility"
  3538. ],
  3539. "properties": {
  3540. "paramId": {
  3541. "type": "string",
  3542. "description": "ID of the parameter"
  3543. },
  3544. "visibility": {
  3545. "type": "string",
  3546. "description": "New visibility"
  3547. }
  3548. }
  3549. }
  3550. }
  3551. }
  3552. },
  3553. "parameters": [
  3554. {
  3555. "name": "targetUserId",
  3556. "in": "path",
  3557. "description": "ID of the user",
  3558. "required": true,
  3559. "schema": {
  3560. "type": "string"
  3561. }
  3562. },
  3563. {
  3564. "name": "OCS-APIRequest",
  3565. "in": "header",
  3566. "description": "Required to be true for the API request to pass",
  3567. "required": true,
  3568. "schema": {
  3569. "type": "boolean",
  3570. "default": true
  3571. }
  3572. }
  3573. ],
  3574. "responses": {
  3575. "200": {
  3576. "description": "Visibility updated successfully",
  3577. "content": {
  3578. "application/json": {
  3579. "schema": {
  3580. "type": "object",
  3581. "required": [
  3582. "ocs"
  3583. ],
  3584. "properties": {
  3585. "ocs": {
  3586. "type": "object",
  3587. "required": [
  3588. "meta",
  3589. "data"
  3590. ],
  3591. "properties": {
  3592. "meta": {
  3593. "$ref": "#/components/schemas/OCSMeta"
  3594. },
  3595. "data": {}
  3596. }
  3597. }
  3598. }
  3599. }
  3600. }
  3601. }
  3602. },
  3603. "400": {
  3604. "description": "Updating visibility is not possible",
  3605. "content": {
  3606. "application/json": {
  3607. "schema": {
  3608. "type": "object",
  3609. "required": [
  3610. "ocs"
  3611. ],
  3612. "properties": {
  3613. "ocs": {
  3614. "type": "object",
  3615. "required": [
  3616. "meta",
  3617. "data"
  3618. ],
  3619. "properties": {
  3620. "meta": {
  3621. "$ref": "#/components/schemas/OCSMeta"
  3622. },
  3623. "data": {}
  3624. }
  3625. }
  3626. }
  3627. }
  3628. }
  3629. }
  3630. },
  3631. "403": {
  3632. "description": "Not allowed to edit other users visibility",
  3633. "content": {
  3634. "application/json": {
  3635. "schema": {
  3636. "type": "object",
  3637. "required": [
  3638. "ocs"
  3639. ],
  3640. "properties": {
  3641. "ocs": {
  3642. "type": "object",
  3643. "required": [
  3644. "meta",
  3645. "data"
  3646. ],
  3647. "properties": {
  3648. "meta": {
  3649. "$ref": "#/components/schemas/OCSMeta"
  3650. },
  3651. "data": {}
  3652. }
  3653. }
  3654. }
  3655. }
  3656. }
  3657. }
  3658. },
  3659. "404": {
  3660. "description": "Account not found",
  3661. "content": {
  3662. "application/json": {
  3663. "schema": {
  3664. "type": "object",
  3665. "required": [
  3666. "ocs"
  3667. ],
  3668. "properties": {
  3669. "ocs": {
  3670. "type": "object",
  3671. "required": [
  3672. "meta",
  3673. "data"
  3674. ],
  3675. "properties": {
  3676. "meta": {
  3677. "$ref": "#/components/schemas/OCSMeta"
  3678. },
  3679. "data": {}
  3680. }
  3681. }
  3682. }
  3683. }
  3684. }
  3685. }
  3686. },
  3687. "401": {
  3688. "description": "Current user is not logged in",
  3689. "content": {
  3690. "application/json": {
  3691. "schema": {
  3692. "type": "object",
  3693. "required": [
  3694. "ocs"
  3695. ],
  3696. "properties": {
  3697. "ocs": {
  3698. "type": "object",
  3699. "required": [
  3700. "meta",
  3701. "data"
  3702. ],
  3703. "properties": {
  3704. "meta": {
  3705. "$ref": "#/components/schemas/OCSMeta"
  3706. },
  3707. "data": {}
  3708. }
  3709. }
  3710. }
  3711. }
  3712. }
  3713. }
  3714. }
  3715. }
  3716. },
  3717. "get": {
  3718. "operationId": "profile_api-get-profile-fields",
  3719. "summary": "Get profile fields for another user",
  3720. "tags": [
  3721. "profile_api"
  3722. ],
  3723. "security": [
  3724. {
  3725. "bearer_auth": []
  3726. },
  3727. {
  3728. "basic_auth": []
  3729. }
  3730. ],
  3731. "parameters": [
  3732. {
  3733. "name": "targetUserId",
  3734. "in": "path",
  3735. "description": "ID of the user",
  3736. "required": true,
  3737. "schema": {
  3738. "type": "string"
  3739. }
  3740. },
  3741. {
  3742. "name": "OCS-APIRequest",
  3743. "in": "header",
  3744. "description": "Required to be true for the API request to pass",
  3745. "required": true,
  3746. "schema": {
  3747. "type": "boolean",
  3748. "default": true
  3749. }
  3750. }
  3751. ],
  3752. "responses": {
  3753. "200": {
  3754. "description": "Profile data returned successfully",
  3755. "content": {
  3756. "application/json": {
  3757. "schema": {
  3758. "type": "object",
  3759. "required": [
  3760. "ocs"
  3761. ],
  3762. "properties": {
  3763. "ocs": {
  3764. "type": "object",
  3765. "required": [
  3766. "meta",
  3767. "data"
  3768. ],
  3769. "properties": {
  3770. "meta": {
  3771. "$ref": "#/components/schemas/OCSMeta"
  3772. },
  3773. "data": {
  3774. "$ref": "#/components/schemas/ProfileData"
  3775. }
  3776. }
  3777. }
  3778. }
  3779. }
  3780. }
  3781. }
  3782. },
  3783. "400": {
  3784. "description": "Profile is disabled",
  3785. "content": {
  3786. "application/json": {
  3787. "schema": {
  3788. "type": "object",
  3789. "required": [
  3790. "ocs"
  3791. ],
  3792. "properties": {
  3793. "ocs": {
  3794. "type": "object",
  3795. "required": [
  3796. "meta",
  3797. "data"
  3798. ],
  3799. "properties": {
  3800. "meta": {
  3801. "$ref": "#/components/schemas/OCSMeta"
  3802. },
  3803. "data": {
  3804. "nullable": true
  3805. }
  3806. }
  3807. }
  3808. }
  3809. }
  3810. }
  3811. }
  3812. },
  3813. "404": {
  3814. "description": "Account not found or disabled",
  3815. "content": {
  3816. "application/json": {
  3817. "schema": {
  3818. "type": "object",
  3819. "required": [
  3820. "ocs"
  3821. ],
  3822. "properties": {
  3823. "ocs": {
  3824. "type": "object",
  3825. "required": [
  3826. "meta",
  3827. "data"
  3828. ],
  3829. "properties": {
  3830. "meta": {
  3831. "$ref": "#/components/schemas/OCSMeta"
  3832. },
  3833. "data": {
  3834. "nullable": true
  3835. }
  3836. }
  3837. }
  3838. }
  3839. }
  3840. }
  3841. }
  3842. },
  3843. "401": {
  3844. "description": "Current user is not logged in",
  3845. "content": {
  3846. "application/json": {
  3847. "schema": {
  3848. "type": "object",
  3849. "required": [
  3850. "ocs"
  3851. ],
  3852. "properties": {
  3853. "ocs": {
  3854. "type": "object",
  3855. "required": [
  3856. "meta",
  3857. "data"
  3858. ],
  3859. "properties": {
  3860. "meta": {
  3861. "$ref": "#/components/schemas/OCSMeta"
  3862. },
  3863. "data": {}
  3864. }
  3865. }
  3866. }
  3867. }
  3868. }
  3869. }
  3870. }
  3871. }
  3872. }
  3873. },
  3874. "/ocs/v2.php/references/extract": {
  3875. "post": {
  3876. "operationId": "reference_api-extract",
  3877. "summary": "Extract references from a text",
  3878. "tags": [
  3879. "reference_api"
  3880. ],
  3881. "security": [
  3882. {
  3883. "bearer_auth": []
  3884. },
  3885. {
  3886. "basic_auth": []
  3887. }
  3888. ],
  3889. "requestBody": {
  3890. "required": true,
  3891. "content": {
  3892. "application/json": {
  3893. "schema": {
  3894. "type": "object",
  3895. "required": [
  3896. "text"
  3897. ],
  3898. "properties": {
  3899. "text": {
  3900. "type": "string",
  3901. "description": "Text to extract from"
  3902. },
  3903. "resolve": {
  3904. "type": "boolean",
  3905. "default": false,
  3906. "description": "Resolve the references"
  3907. },
  3908. "limit": {
  3909. "type": "integer",
  3910. "format": "int64",
  3911. "default": 1,
  3912. "description": "Maximum amount of references to extract"
  3913. }
  3914. }
  3915. }
  3916. }
  3917. }
  3918. },
  3919. "parameters": [
  3920. {
  3921. "name": "OCS-APIRequest",
  3922. "in": "header",
  3923. "description": "Required to be true for the API request to pass",
  3924. "required": true,
  3925. "schema": {
  3926. "type": "boolean",
  3927. "default": true
  3928. }
  3929. }
  3930. ],
  3931. "responses": {
  3932. "200": {
  3933. "description": "References returned",
  3934. "content": {
  3935. "application/json": {
  3936. "schema": {
  3937. "type": "object",
  3938. "required": [
  3939. "ocs"
  3940. ],
  3941. "properties": {
  3942. "ocs": {
  3943. "type": "object",
  3944. "required": [
  3945. "meta",
  3946. "data"
  3947. ],
  3948. "properties": {
  3949. "meta": {
  3950. "$ref": "#/components/schemas/OCSMeta"
  3951. },
  3952. "data": {
  3953. "type": "object",
  3954. "required": [
  3955. "references"
  3956. ],
  3957. "properties": {
  3958. "references": {
  3959. "type": "object",
  3960. "additionalProperties": {
  3961. "nullable": true,
  3962. "allOf": [
  3963. {
  3964. "$ref": "#/components/schemas/Reference"
  3965. }
  3966. ]
  3967. }
  3968. }
  3969. }
  3970. }
  3971. }
  3972. }
  3973. }
  3974. }
  3975. }
  3976. }
  3977. },
  3978. "401": {
  3979. "description": "Current user is not logged in",
  3980. "content": {
  3981. "application/json": {
  3982. "schema": {
  3983. "type": "object",
  3984. "required": [
  3985. "ocs"
  3986. ],
  3987. "properties": {
  3988. "ocs": {
  3989. "type": "object",
  3990. "required": [
  3991. "meta",
  3992. "data"
  3993. ],
  3994. "properties": {
  3995. "meta": {
  3996. "$ref": "#/components/schemas/OCSMeta"
  3997. },
  3998. "data": {}
  3999. }
  4000. }
  4001. }
  4002. }
  4003. }
  4004. }
  4005. }
  4006. }
  4007. }
  4008. },
  4009. "/ocs/v2.php/references/extractPublic": {
  4010. "post": {
  4011. "operationId": "reference_api-extract-public",
  4012. "summary": "Extract references from a text",
  4013. "tags": [
  4014. "reference_api"
  4015. ],
  4016. "security": [
  4017. {},
  4018. {
  4019. "bearer_auth": []
  4020. },
  4021. {
  4022. "basic_auth": []
  4023. }
  4024. ],
  4025. "requestBody": {
  4026. "required": true,
  4027. "content": {
  4028. "application/json": {
  4029. "schema": {
  4030. "type": "object",
  4031. "required": [
  4032. "text",
  4033. "sharingToken"
  4034. ],
  4035. "properties": {
  4036. "text": {
  4037. "type": "string",
  4038. "description": "Text to extract from"
  4039. },
  4040. "sharingToken": {
  4041. "type": "string",
  4042. "description": "Token of the public share"
  4043. },
  4044. "resolve": {
  4045. "type": "boolean",
  4046. "default": false,
  4047. "description": "Resolve the references"
  4048. },
  4049. "limit": {
  4050. "type": "integer",
  4051. "format": "int64",
  4052. "default": 1,
  4053. "description": "Maximum amount of references to extract, limited to 15"
  4054. }
  4055. }
  4056. }
  4057. }
  4058. }
  4059. },
  4060. "parameters": [
  4061. {
  4062. "name": "OCS-APIRequest",
  4063. "in": "header",
  4064. "description": "Required to be true for the API request to pass",
  4065. "required": true,
  4066. "schema": {
  4067. "type": "boolean",
  4068. "default": true
  4069. }
  4070. }
  4071. ],
  4072. "responses": {
  4073. "200": {
  4074. "description": "References returned",
  4075. "content": {
  4076. "application/json": {
  4077. "schema": {
  4078. "type": "object",
  4079. "required": [
  4080. "ocs"
  4081. ],
  4082. "properties": {
  4083. "ocs": {
  4084. "type": "object",
  4085. "required": [
  4086. "meta",
  4087. "data"
  4088. ],
  4089. "properties": {
  4090. "meta": {
  4091. "$ref": "#/components/schemas/OCSMeta"
  4092. },
  4093. "data": {
  4094. "type": "object",
  4095. "required": [
  4096. "references"
  4097. ],
  4098. "properties": {
  4099. "references": {
  4100. "type": "object",
  4101. "additionalProperties": {
  4102. "nullable": true,
  4103. "allOf": [
  4104. {
  4105. "$ref": "#/components/schemas/Reference"
  4106. }
  4107. ]
  4108. }
  4109. }
  4110. }
  4111. }
  4112. }
  4113. }
  4114. }
  4115. }
  4116. }
  4117. }
  4118. }
  4119. }
  4120. }
  4121. },
  4122. "/ocs/v2.php/references/resolve": {
  4123. "get": {
  4124. "operationId": "reference_api-resolve-one",
  4125. "summary": "Resolve a reference",
  4126. "tags": [
  4127. "reference_api"
  4128. ],
  4129. "security": [
  4130. {
  4131. "bearer_auth": []
  4132. },
  4133. {
  4134. "basic_auth": []
  4135. }
  4136. ],
  4137. "parameters": [
  4138. {
  4139. "name": "reference",
  4140. "in": "query",
  4141. "description": "Reference to resolve",
  4142. "required": true,
  4143. "schema": {
  4144. "type": "string"
  4145. }
  4146. },
  4147. {
  4148. "name": "OCS-APIRequest",
  4149. "in": "header",
  4150. "description": "Required to be true for the API request to pass",
  4151. "required": true,
  4152. "schema": {
  4153. "type": "boolean",
  4154. "default": true
  4155. }
  4156. }
  4157. ],
  4158. "responses": {
  4159. "200": {
  4160. "description": "Reference returned",
  4161. "content": {
  4162. "application/json": {
  4163. "schema": {
  4164. "type": "object",
  4165. "required": [
  4166. "ocs"
  4167. ],
  4168. "properties": {
  4169. "ocs": {
  4170. "type": "object",
  4171. "required": [
  4172. "meta",
  4173. "data"
  4174. ],
  4175. "properties": {
  4176. "meta": {
  4177. "$ref": "#/components/schemas/OCSMeta"
  4178. },
  4179. "data": {
  4180. "type": "object",
  4181. "required": [
  4182. "references"
  4183. ],
  4184. "properties": {
  4185. "references": {
  4186. "type": "object",
  4187. "additionalProperties": {
  4188. "nullable": true,
  4189. "allOf": [
  4190. {
  4191. "$ref": "#/components/schemas/Reference"
  4192. }
  4193. ]
  4194. }
  4195. }
  4196. }
  4197. }
  4198. }
  4199. }
  4200. }
  4201. }
  4202. }
  4203. }
  4204. },
  4205. "401": {
  4206. "description": "Current user is not logged in",
  4207. "content": {
  4208. "application/json": {
  4209. "schema": {
  4210. "type": "object",
  4211. "required": [
  4212. "ocs"
  4213. ],
  4214. "properties": {
  4215. "ocs": {
  4216. "type": "object",
  4217. "required": [
  4218. "meta",
  4219. "data"
  4220. ],
  4221. "properties": {
  4222. "meta": {
  4223. "$ref": "#/components/schemas/OCSMeta"
  4224. },
  4225. "data": {}
  4226. }
  4227. }
  4228. }
  4229. }
  4230. }
  4231. }
  4232. }
  4233. }
  4234. },
  4235. "post": {
  4236. "operationId": "reference_api-resolve",
  4237. "summary": "Resolve multiple references",
  4238. "tags": [
  4239. "reference_api"
  4240. ],
  4241. "security": [
  4242. {
  4243. "bearer_auth": []
  4244. },
  4245. {
  4246. "basic_auth": []
  4247. }
  4248. ],
  4249. "requestBody": {
  4250. "required": true,
  4251. "content": {
  4252. "application/json": {
  4253. "schema": {
  4254. "type": "object",
  4255. "required": [
  4256. "references"
  4257. ],
  4258. "properties": {
  4259. "references": {
  4260. "type": "array",
  4261. "description": "References to resolve",
  4262. "items": {
  4263. "type": "string"
  4264. }
  4265. },
  4266. "limit": {
  4267. "type": "integer",
  4268. "format": "int64",
  4269. "default": 1,
  4270. "description": "Maximum amount of references to resolve"
  4271. }
  4272. }
  4273. }
  4274. }
  4275. }
  4276. },
  4277. "parameters": [
  4278. {
  4279. "name": "OCS-APIRequest",
  4280. "in": "header",
  4281. "description": "Required to be true for the API request to pass",
  4282. "required": true,
  4283. "schema": {
  4284. "type": "boolean",
  4285. "default": true
  4286. }
  4287. }
  4288. ],
  4289. "responses": {
  4290. "200": {
  4291. "description": "References returned",
  4292. "content": {
  4293. "application/json": {
  4294. "schema": {
  4295. "type": "object",
  4296. "required": [
  4297. "ocs"
  4298. ],
  4299. "properties": {
  4300. "ocs": {
  4301. "type": "object",
  4302. "required": [
  4303. "meta",
  4304. "data"
  4305. ],
  4306. "properties": {
  4307. "meta": {
  4308. "$ref": "#/components/schemas/OCSMeta"
  4309. },
  4310. "data": {
  4311. "type": "object",
  4312. "required": [
  4313. "references"
  4314. ],
  4315. "properties": {
  4316. "references": {
  4317. "type": "object",
  4318. "additionalProperties": {
  4319. "nullable": true,
  4320. "allOf": [
  4321. {
  4322. "$ref": "#/components/schemas/Reference"
  4323. }
  4324. ]
  4325. }
  4326. }
  4327. }
  4328. }
  4329. }
  4330. }
  4331. }
  4332. }
  4333. }
  4334. }
  4335. },
  4336. "401": {
  4337. "description": "Current user is not logged in",
  4338. "content": {
  4339. "application/json": {
  4340. "schema": {
  4341. "type": "object",
  4342. "required": [
  4343. "ocs"
  4344. ],
  4345. "properties": {
  4346. "ocs": {
  4347. "type": "object",
  4348. "required": [
  4349. "meta",
  4350. "data"
  4351. ],
  4352. "properties": {
  4353. "meta": {
  4354. "$ref": "#/components/schemas/OCSMeta"
  4355. },
  4356. "data": {}
  4357. }
  4358. }
  4359. }
  4360. }
  4361. }
  4362. }
  4363. }
  4364. }
  4365. }
  4366. },
  4367. "/ocs/v2.php/references/resolvePublic": {
  4368. "get": {
  4369. "operationId": "reference_api-resolve-one-public",
  4370. "summary": "Resolve from a public page",
  4371. "tags": [
  4372. "reference_api"
  4373. ],
  4374. "security": [
  4375. {},
  4376. {
  4377. "bearer_auth": []
  4378. },
  4379. {
  4380. "basic_auth": []
  4381. }
  4382. ],
  4383. "parameters": [
  4384. {
  4385. "name": "reference",
  4386. "in": "query",
  4387. "description": "Reference to resolve",
  4388. "required": true,
  4389. "schema": {
  4390. "type": "string"
  4391. }
  4392. },
  4393. {
  4394. "name": "sharingToken",
  4395. "in": "query",
  4396. "description": "Token of the public share",
  4397. "required": true,
  4398. "schema": {
  4399. "type": "string"
  4400. }
  4401. },
  4402. {
  4403. "name": "OCS-APIRequest",
  4404. "in": "header",
  4405. "description": "Required to be true for the API request to pass",
  4406. "required": true,
  4407. "schema": {
  4408. "type": "boolean",
  4409. "default": true
  4410. }
  4411. }
  4412. ],
  4413. "responses": {
  4414. "200": {
  4415. "description": "Reference returned",
  4416. "content": {
  4417. "application/json": {
  4418. "schema": {
  4419. "type": "object",
  4420. "required": [
  4421. "ocs"
  4422. ],
  4423. "properties": {
  4424. "ocs": {
  4425. "type": "object",
  4426. "required": [
  4427. "meta",
  4428. "data"
  4429. ],
  4430. "properties": {
  4431. "meta": {
  4432. "$ref": "#/components/schemas/OCSMeta"
  4433. },
  4434. "data": {
  4435. "type": "object",
  4436. "required": [
  4437. "references"
  4438. ],
  4439. "properties": {
  4440. "references": {
  4441. "type": "object",
  4442. "additionalProperties": {
  4443. "nullable": true,
  4444. "allOf": [
  4445. {
  4446. "$ref": "#/components/schemas/Reference"
  4447. }
  4448. ]
  4449. }
  4450. }
  4451. }
  4452. }
  4453. }
  4454. }
  4455. }
  4456. }
  4457. }
  4458. }
  4459. }
  4460. }
  4461. },
  4462. "post": {
  4463. "operationId": "reference_api-resolve-public",
  4464. "summary": "Resolve multiple references from a public page",
  4465. "tags": [
  4466. "reference_api"
  4467. ],
  4468. "security": [
  4469. {},
  4470. {
  4471. "bearer_auth": []
  4472. },
  4473. {
  4474. "basic_auth": []
  4475. }
  4476. ],
  4477. "requestBody": {
  4478. "required": true,
  4479. "content": {
  4480. "application/json": {
  4481. "schema": {
  4482. "type": "object",
  4483. "required": [
  4484. "references",
  4485. "sharingToken"
  4486. ],
  4487. "properties": {
  4488. "references": {
  4489. "type": "array",
  4490. "description": "References to resolve",
  4491. "items": {
  4492. "type": "string"
  4493. }
  4494. },
  4495. "sharingToken": {
  4496. "type": "string",
  4497. "description": "Token of the public share"
  4498. },
  4499. "limit": {
  4500. "type": "integer",
  4501. "format": "int64",
  4502. "default": 1,
  4503. "description": "Maximum amount of references to resolve, limited to 15"
  4504. }
  4505. }
  4506. }
  4507. }
  4508. }
  4509. },
  4510. "parameters": [
  4511. {
  4512. "name": "OCS-APIRequest",
  4513. "in": "header",
  4514. "description": "Required to be true for the API request to pass",
  4515. "required": true,
  4516. "schema": {
  4517. "type": "boolean",
  4518. "default": true
  4519. }
  4520. }
  4521. ],
  4522. "responses": {
  4523. "200": {
  4524. "description": "References returned",
  4525. "content": {
  4526. "application/json": {
  4527. "schema": {
  4528. "type": "object",
  4529. "required": [
  4530. "ocs"
  4531. ],
  4532. "properties": {
  4533. "ocs": {
  4534. "type": "object",
  4535. "required": [
  4536. "meta",
  4537. "data"
  4538. ],
  4539. "properties": {
  4540. "meta": {
  4541. "$ref": "#/components/schemas/OCSMeta"
  4542. },
  4543. "data": {
  4544. "type": "object",
  4545. "required": [
  4546. "references"
  4547. ],
  4548. "properties": {
  4549. "references": {
  4550. "type": "object",
  4551. "additionalProperties": {
  4552. "nullable": true,
  4553. "allOf": [
  4554. {
  4555. "$ref": "#/components/schemas/Reference"
  4556. }
  4557. ]
  4558. }
  4559. }
  4560. }
  4561. }
  4562. }
  4563. }
  4564. }
  4565. }
  4566. }
  4567. }
  4568. }
  4569. }
  4570. }
  4571. },
  4572. "/ocs/v2.php/references/providers": {
  4573. "get": {
  4574. "operationId": "reference_api-get-providers-info",
  4575. "summary": "Get the providers",
  4576. "tags": [
  4577. "reference_api"
  4578. ],
  4579. "security": [
  4580. {
  4581. "bearer_auth": []
  4582. },
  4583. {
  4584. "basic_auth": []
  4585. }
  4586. ],
  4587. "parameters": [
  4588. {
  4589. "name": "OCS-APIRequest",
  4590. "in": "header",
  4591. "description": "Required to be true for the API request to pass",
  4592. "required": true,
  4593. "schema": {
  4594. "type": "boolean",
  4595. "default": true
  4596. }
  4597. }
  4598. ],
  4599. "responses": {
  4600. "200": {
  4601. "description": "Providers returned",
  4602. "content": {
  4603. "application/json": {
  4604. "schema": {
  4605. "type": "object",
  4606. "required": [
  4607. "ocs"
  4608. ],
  4609. "properties": {
  4610. "ocs": {
  4611. "type": "object",
  4612. "required": [
  4613. "meta",
  4614. "data"
  4615. ],
  4616. "properties": {
  4617. "meta": {
  4618. "$ref": "#/components/schemas/OCSMeta"
  4619. },
  4620. "data": {
  4621. "type": "array",
  4622. "items": {
  4623. "$ref": "#/components/schemas/ReferenceProvider"
  4624. }
  4625. }
  4626. }
  4627. }
  4628. }
  4629. }
  4630. }
  4631. }
  4632. },
  4633. "401": {
  4634. "description": "Current user is not logged in",
  4635. "content": {
  4636. "application/json": {
  4637. "schema": {
  4638. "type": "object",
  4639. "required": [
  4640. "ocs"
  4641. ],
  4642. "properties": {
  4643. "ocs": {
  4644. "type": "object",
  4645. "required": [
  4646. "meta",
  4647. "data"
  4648. ],
  4649. "properties": {
  4650. "meta": {
  4651. "$ref": "#/components/schemas/OCSMeta"
  4652. },
  4653. "data": {}
  4654. }
  4655. }
  4656. }
  4657. }
  4658. }
  4659. }
  4660. }
  4661. }
  4662. }
  4663. },
  4664. "/ocs/v2.php/references/provider/{providerId}": {
  4665. "put": {
  4666. "operationId": "reference_api-touch-provider",
  4667. "summary": "Touch a provider",
  4668. "tags": [
  4669. "reference_api"
  4670. ],
  4671. "security": [
  4672. {
  4673. "bearer_auth": []
  4674. },
  4675. {
  4676. "basic_auth": []
  4677. }
  4678. ],
  4679. "requestBody": {
  4680. "required": false,
  4681. "content": {
  4682. "application/json": {
  4683. "schema": {
  4684. "type": "object",
  4685. "properties": {
  4686. "timestamp": {
  4687. "type": "integer",
  4688. "format": "int64",
  4689. "nullable": true,
  4690. "default": null,
  4691. "description": "Timestamp of the last usage"
  4692. }
  4693. }
  4694. }
  4695. }
  4696. }
  4697. },
  4698. "parameters": [
  4699. {
  4700. "name": "providerId",
  4701. "in": "path",
  4702. "description": "ID of the provider",
  4703. "required": true,
  4704. "schema": {
  4705. "type": "string"
  4706. }
  4707. },
  4708. {
  4709. "name": "OCS-APIRequest",
  4710. "in": "header",
  4711. "description": "Required to be true for the API request to pass",
  4712. "required": true,
  4713. "schema": {
  4714. "type": "boolean",
  4715. "default": true
  4716. }
  4717. }
  4718. ],
  4719. "responses": {
  4720. "200": {
  4721. "description": "Provider touched",
  4722. "content": {
  4723. "application/json": {
  4724. "schema": {
  4725. "type": "object",
  4726. "required": [
  4727. "ocs"
  4728. ],
  4729. "properties": {
  4730. "ocs": {
  4731. "type": "object",
  4732. "required": [
  4733. "meta",
  4734. "data"
  4735. ],
  4736. "properties": {
  4737. "meta": {
  4738. "$ref": "#/components/schemas/OCSMeta"
  4739. },
  4740. "data": {
  4741. "type": "object",
  4742. "required": [
  4743. "success"
  4744. ],
  4745. "properties": {
  4746. "success": {
  4747. "type": "boolean"
  4748. }
  4749. }
  4750. }
  4751. }
  4752. }
  4753. }
  4754. }
  4755. }
  4756. }
  4757. },
  4758. "401": {
  4759. "description": "Current user is not logged in",
  4760. "content": {
  4761. "application/json": {
  4762. "schema": {
  4763. "type": "object",
  4764. "required": [
  4765. "ocs"
  4766. ],
  4767. "properties": {
  4768. "ocs": {
  4769. "type": "object",
  4770. "required": [
  4771. "meta",
  4772. "data"
  4773. ],
  4774. "properties": {
  4775. "meta": {
  4776. "$ref": "#/components/schemas/OCSMeta"
  4777. },
  4778. "data": {}
  4779. }
  4780. }
  4781. }
  4782. }
  4783. }
  4784. }
  4785. }
  4786. }
  4787. }
  4788. },
  4789. "/ocs/v2.php/taskprocessing/tasktypes": {
  4790. "get": {
  4791. "operationId": "task_processing_api-task-types",
  4792. "summary": "Returns all available TaskProcessing task types",
  4793. "tags": [
  4794. "task_processing_api"
  4795. ],
  4796. "security": [
  4797. {
  4798. "bearer_auth": []
  4799. },
  4800. {
  4801. "basic_auth": []
  4802. }
  4803. ],
  4804. "parameters": [
  4805. {
  4806. "name": "OCS-APIRequest",
  4807. "in": "header",
  4808. "description": "Required to be true for the API request to pass",
  4809. "required": true,
  4810. "schema": {
  4811. "type": "boolean",
  4812. "default": true
  4813. }
  4814. }
  4815. ],
  4816. "responses": {
  4817. "200": {
  4818. "description": "Task types returned",
  4819. "content": {
  4820. "application/json": {
  4821. "schema": {
  4822. "type": "object",
  4823. "required": [
  4824. "ocs"
  4825. ],
  4826. "properties": {
  4827. "ocs": {
  4828. "type": "object",
  4829. "required": [
  4830. "meta",
  4831. "data"
  4832. ],
  4833. "properties": {
  4834. "meta": {
  4835. "$ref": "#/components/schemas/OCSMeta"
  4836. },
  4837. "data": {
  4838. "type": "object",
  4839. "required": [
  4840. "types"
  4841. ],
  4842. "properties": {
  4843. "types": {
  4844. "type": "object",
  4845. "additionalProperties": {
  4846. "$ref": "#/components/schemas/TaskProcessingTaskType"
  4847. }
  4848. }
  4849. }
  4850. }
  4851. }
  4852. }
  4853. }
  4854. }
  4855. }
  4856. }
  4857. },
  4858. "401": {
  4859. "description": "Current user is not logged in",
  4860. "content": {
  4861. "application/json": {
  4862. "schema": {
  4863. "type": "object",
  4864. "required": [
  4865. "ocs"
  4866. ],
  4867. "properties": {
  4868. "ocs": {
  4869. "type": "object",
  4870. "required": [
  4871. "meta",
  4872. "data"
  4873. ],
  4874. "properties": {
  4875. "meta": {
  4876. "$ref": "#/components/schemas/OCSMeta"
  4877. },
  4878. "data": {}
  4879. }
  4880. }
  4881. }
  4882. }
  4883. }
  4884. }
  4885. }
  4886. }
  4887. }
  4888. },
  4889. "/ocs/v2.php/taskprocessing/schedule": {
  4890. "post": {
  4891. "operationId": "task_processing_api-schedule",
  4892. "summary": "Schedules a task",
  4893. "tags": [
  4894. "task_processing_api"
  4895. ],
  4896. "security": [
  4897. {
  4898. "bearer_auth": []
  4899. },
  4900. {
  4901. "basic_auth": []
  4902. }
  4903. ],
  4904. "requestBody": {
  4905. "required": true,
  4906. "content": {
  4907. "application/json": {
  4908. "schema": {
  4909. "type": "object",
  4910. "required": [
  4911. "input",
  4912. "type",
  4913. "appId"
  4914. ],
  4915. "properties": {
  4916. "input": {
  4917. "type": "object",
  4918. "description": "Task's input parameters",
  4919. "additionalProperties": {
  4920. "type": "object"
  4921. }
  4922. },
  4923. "type": {
  4924. "type": "string",
  4925. "description": "Type of the task"
  4926. },
  4927. "appId": {
  4928. "type": "string",
  4929. "description": "ID of the app that will execute the task"
  4930. },
  4931. "customId": {
  4932. "type": "string",
  4933. "default": "",
  4934. "description": "An arbitrary identifier for the task"
  4935. },
  4936. "webhookUri": {
  4937. "type": "string",
  4938. "nullable": true,
  4939. "default": null,
  4940. "description": "URI to be requested when the task finishes"
  4941. },
  4942. "webhookMethod": {
  4943. "type": "string",
  4944. "nullable": true,
  4945. "default": null,
  4946. "description": "Method used for the webhook request (HTTP:GET, HTTP:POST, HTTP:PUT, HTTP:DELETE or AppAPI:APP_ID:GET, AppAPI:APP_ID:POST...)"
  4947. }
  4948. }
  4949. }
  4950. }
  4951. }
  4952. },
  4953. "parameters": [
  4954. {
  4955. "name": "OCS-APIRequest",
  4956. "in": "header",
  4957. "description": "Required to be true for the API request to pass",
  4958. "required": true,
  4959. "schema": {
  4960. "type": "boolean",
  4961. "default": true
  4962. }
  4963. }
  4964. ],
  4965. "responses": {
  4966. "200": {
  4967. "description": "Task scheduled successfully",
  4968. "content": {
  4969. "application/json": {
  4970. "schema": {
  4971. "type": "object",
  4972. "required": [
  4973. "ocs"
  4974. ],
  4975. "properties": {
  4976. "ocs": {
  4977. "type": "object",
  4978. "required": [
  4979. "meta",
  4980. "data"
  4981. ],
  4982. "properties": {
  4983. "meta": {
  4984. "$ref": "#/components/schemas/OCSMeta"
  4985. },
  4986. "data": {
  4987. "type": "object",
  4988. "required": [
  4989. "task"
  4990. ],
  4991. "properties": {
  4992. "task": {
  4993. "$ref": "#/components/schemas/TaskProcessingTask"
  4994. }
  4995. }
  4996. }
  4997. }
  4998. }
  4999. }
  5000. }
  5001. }
  5002. }
  5003. },
  5004. "500": {
  5005. "description": "",
  5006. "content": {
  5007. "application/json": {
  5008. "schema": {
  5009. "type": "object",
  5010. "required": [
  5011. "ocs"
  5012. ],
  5013. "properties": {
  5014. "ocs": {
  5015. "type": "object",
  5016. "required": [
  5017. "meta",
  5018. "data"
  5019. ],
  5020. "properties": {
  5021. "meta": {
  5022. "$ref": "#/components/schemas/OCSMeta"
  5023. },
  5024. "data": {
  5025. "type": "object",
  5026. "required": [
  5027. "message"
  5028. ],
  5029. "properties": {
  5030. "message": {
  5031. "type": "string"
  5032. }
  5033. }
  5034. }
  5035. }
  5036. }
  5037. }
  5038. }
  5039. }
  5040. }
  5041. },
  5042. "400": {
  5043. "description": "Scheduling task is not possible",
  5044. "content": {
  5045. "application/json": {
  5046. "schema": {
  5047. "type": "object",
  5048. "required": [
  5049. "ocs"
  5050. ],
  5051. "properties": {
  5052. "ocs": {
  5053. "type": "object",
  5054. "required": [
  5055. "meta",
  5056. "data"
  5057. ],
  5058. "properties": {
  5059. "meta": {
  5060. "$ref": "#/components/schemas/OCSMeta"
  5061. },
  5062. "data": {
  5063. "type": "object",
  5064. "required": [
  5065. "message"
  5066. ],
  5067. "properties": {
  5068. "message": {
  5069. "type": "string"
  5070. }
  5071. }
  5072. }
  5073. }
  5074. }
  5075. }
  5076. }
  5077. }
  5078. }
  5079. },
  5080. "412": {
  5081. "description": "Scheduling task is not possible",
  5082. "content": {
  5083. "application/json": {
  5084. "schema": {
  5085. "type": "object",
  5086. "required": [
  5087. "ocs"
  5088. ],
  5089. "properties": {
  5090. "ocs": {
  5091. "type": "object",
  5092. "required": [
  5093. "meta",
  5094. "data"
  5095. ],
  5096. "properties": {
  5097. "meta": {
  5098. "$ref": "#/components/schemas/OCSMeta"
  5099. },
  5100. "data": {
  5101. "type": "object",
  5102. "required": [
  5103. "message"
  5104. ],
  5105. "properties": {
  5106. "message": {
  5107. "type": "string"
  5108. }
  5109. }
  5110. }
  5111. }
  5112. }
  5113. }
  5114. }
  5115. }
  5116. }
  5117. },
  5118. "401": {
  5119. "description": "Cannot schedule task because it references files in its input that the user doesn't have access to",
  5120. "content": {
  5121. "application/json": {
  5122. "schema": {
  5123. "anyOf": [
  5124. {
  5125. "type": "object",
  5126. "required": [
  5127. "ocs"
  5128. ],
  5129. "properties": {
  5130. "ocs": {
  5131. "type": "object",
  5132. "required": [
  5133. "meta",
  5134. "data"
  5135. ],
  5136. "properties": {
  5137. "meta": {
  5138. "$ref": "#/components/schemas/OCSMeta"
  5139. },
  5140. "data": {
  5141. "type": "object",
  5142. "required": [
  5143. "message"
  5144. ],
  5145. "properties": {
  5146. "message": {
  5147. "type": "string"
  5148. }
  5149. }
  5150. }
  5151. }
  5152. }
  5153. }
  5154. },
  5155. {
  5156. "type": "object",
  5157. "required": [
  5158. "ocs"
  5159. ],
  5160. "properties": {
  5161. "ocs": {
  5162. "type": "object",
  5163. "required": [
  5164. "meta",
  5165. "data"
  5166. ],
  5167. "properties": {
  5168. "meta": {
  5169. "$ref": "#/components/schemas/OCSMeta"
  5170. },
  5171. "data": {}
  5172. }
  5173. }
  5174. }
  5175. }
  5176. ]
  5177. }
  5178. }
  5179. }
  5180. }
  5181. }
  5182. }
  5183. },
  5184. "/ocs/v2.php/taskprocessing/task/{id}": {
  5185. "get": {
  5186. "operationId": "task_processing_api-get-task",
  5187. "summary": "Gets a task including status and result",
  5188. "description": "Tasks are removed 1 week after receiving their last update",
  5189. "tags": [
  5190. "task_processing_api"
  5191. ],
  5192. "security": [
  5193. {
  5194. "bearer_auth": []
  5195. },
  5196. {
  5197. "basic_auth": []
  5198. }
  5199. ],
  5200. "parameters": [
  5201. {
  5202. "name": "id",
  5203. "in": "path",
  5204. "description": "The id of the task",
  5205. "required": true,
  5206. "schema": {
  5207. "type": "integer",
  5208. "format": "int64"
  5209. }
  5210. },
  5211. {
  5212. "name": "OCS-APIRequest",
  5213. "in": "header",
  5214. "description": "Required to be true for the API request to pass",
  5215. "required": true,
  5216. "schema": {
  5217. "type": "boolean",
  5218. "default": true
  5219. }
  5220. }
  5221. ],
  5222. "responses": {
  5223. "200": {
  5224. "description": "Task returned",
  5225. "content": {
  5226. "application/json": {
  5227. "schema": {
  5228. "type": "object",
  5229. "required": [
  5230. "ocs"
  5231. ],
  5232. "properties": {
  5233. "ocs": {
  5234. "type": "object",
  5235. "required": [
  5236. "meta",
  5237. "data"
  5238. ],
  5239. "properties": {
  5240. "meta": {
  5241. "$ref": "#/components/schemas/OCSMeta"
  5242. },
  5243. "data": {
  5244. "type": "object",
  5245. "required": [
  5246. "task"
  5247. ],
  5248. "properties": {
  5249. "task": {
  5250. "$ref": "#/components/schemas/TaskProcessingTask"
  5251. }
  5252. }
  5253. }
  5254. }
  5255. }
  5256. }
  5257. }
  5258. }
  5259. }
  5260. },
  5261. "404": {
  5262. "description": "Task not found",
  5263. "content": {
  5264. "application/json": {
  5265. "schema": {
  5266. "type": "object",
  5267. "required": [
  5268. "ocs"
  5269. ],
  5270. "properties": {
  5271. "ocs": {
  5272. "type": "object",
  5273. "required": [
  5274. "meta",
  5275. "data"
  5276. ],
  5277. "properties": {
  5278. "meta": {
  5279. "$ref": "#/components/schemas/OCSMeta"
  5280. },
  5281. "data": {
  5282. "type": "object",
  5283. "required": [
  5284. "message"
  5285. ],
  5286. "properties": {
  5287. "message": {
  5288. "type": "string"
  5289. }
  5290. }
  5291. }
  5292. }
  5293. }
  5294. }
  5295. }
  5296. }
  5297. }
  5298. },
  5299. "500": {
  5300. "description": "",
  5301. "content": {
  5302. "application/json": {
  5303. "schema": {
  5304. "type": "object",
  5305. "required": [
  5306. "ocs"
  5307. ],
  5308. "properties": {
  5309. "ocs": {
  5310. "type": "object",
  5311. "required": [
  5312. "meta",
  5313. "data"
  5314. ],
  5315. "properties": {
  5316. "meta": {
  5317. "$ref": "#/components/schemas/OCSMeta"
  5318. },
  5319. "data": {
  5320. "type": "object",
  5321. "required": [
  5322. "message"
  5323. ],
  5324. "properties": {
  5325. "message": {
  5326. "type": "string"
  5327. }
  5328. }
  5329. }
  5330. }
  5331. }
  5332. }
  5333. }
  5334. }
  5335. }
  5336. },
  5337. "401": {
  5338. "description": "Current user is not logged in",
  5339. "content": {
  5340. "application/json": {
  5341. "schema": {
  5342. "type": "object",
  5343. "required": [
  5344. "ocs"
  5345. ],
  5346. "properties": {
  5347. "ocs": {
  5348. "type": "object",
  5349. "required": [
  5350. "meta",
  5351. "data"
  5352. ],
  5353. "properties": {
  5354. "meta": {
  5355. "$ref": "#/components/schemas/OCSMeta"
  5356. },
  5357. "data": {}
  5358. }
  5359. }
  5360. }
  5361. }
  5362. }
  5363. }
  5364. }
  5365. }
  5366. },
  5367. "delete": {
  5368. "operationId": "task_processing_api-delete-task",
  5369. "summary": "Deletes a task",
  5370. "tags": [
  5371. "task_processing_api"
  5372. ],
  5373. "security": [
  5374. {
  5375. "bearer_auth": []
  5376. },
  5377. {
  5378. "basic_auth": []
  5379. }
  5380. ],
  5381. "parameters": [
  5382. {
  5383. "name": "id",
  5384. "in": "path",
  5385. "description": "The id of the task",
  5386. "required": true,
  5387. "schema": {
  5388. "type": "integer",
  5389. "format": "int64"
  5390. }
  5391. },
  5392. {
  5393. "name": "OCS-APIRequest",
  5394. "in": "header",
  5395. "description": "Required to be true for the API request to pass",
  5396. "required": true,
  5397. "schema": {
  5398. "type": "boolean",
  5399. "default": true
  5400. }
  5401. }
  5402. ],
  5403. "responses": {
  5404. "200": {
  5405. "description": "Task deleted",
  5406. "content": {
  5407. "application/json": {
  5408. "schema": {
  5409. "type": "object",
  5410. "required": [
  5411. "ocs"
  5412. ],
  5413. "properties": {
  5414. "ocs": {
  5415. "type": "object",
  5416. "required": [
  5417. "meta",
  5418. "data"
  5419. ],
  5420. "properties": {
  5421. "meta": {
  5422. "$ref": "#/components/schemas/OCSMeta"
  5423. },
  5424. "data": {
  5425. "nullable": true
  5426. }
  5427. }
  5428. }
  5429. }
  5430. }
  5431. }
  5432. }
  5433. },
  5434. "500": {
  5435. "description": "",
  5436. "content": {
  5437. "application/json": {
  5438. "schema": {
  5439. "type": "object",
  5440. "required": [
  5441. "ocs"
  5442. ],
  5443. "properties": {
  5444. "ocs": {
  5445. "type": "object",
  5446. "required": [
  5447. "meta",
  5448. "data"
  5449. ],
  5450. "properties": {
  5451. "meta": {
  5452. "$ref": "#/components/schemas/OCSMeta"
  5453. },
  5454. "data": {
  5455. "type": "object",
  5456. "required": [
  5457. "message"
  5458. ],
  5459. "properties": {
  5460. "message": {
  5461. "type": "string"
  5462. }
  5463. }
  5464. }
  5465. }
  5466. }
  5467. }
  5468. }
  5469. }
  5470. }
  5471. },
  5472. "401": {
  5473. "description": "Current user is not logged in",
  5474. "content": {
  5475. "application/json": {
  5476. "schema": {
  5477. "type": "object",
  5478. "required": [
  5479. "ocs"
  5480. ],
  5481. "properties": {
  5482. "ocs": {
  5483. "type": "object",
  5484. "required": [
  5485. "meta",
  5486. "data"
  5487. ],
  5488. "properties": {
  5489. "meta": {
  5490. "$ref": "#/components/schemas/OCSMeta"
  5491. },
  5492. "data": {}
  5493. }
  5494. }
  5495. }
  5496. }
  5497. }
  5498. }
  5499. }
  5500. }
  5501. }
  5502. },
  5503. "/ocs/v2.php/taskprocessing/tasks/app/{appId}": {
  5504. "get": {
  5505. "operationId": "task_processing_api-list-tasks-by-app",
  5506. "summary": "Returns tasks for the current user filtered by the appId and optional customId",
  5507. "tags": [
  5508. "task_processing_api"
  5509. ],
  5510. "security": [
  5511. {
  5512. "bearer_auth": []
  5513. },
  5514. {
  5515. "basic_auth": []
  5516. }
  5517. ],
  5518. "parameters": [
  5519. {
  5520. "name": "appId",
  5521. "in": "path",
  5522. "description": "ID of the app",
  5523. "required": true,
  5524. "schema": {
  5525. "type": "string"
  5526. }
  5527. },
  5528. {
  5529. "name": "customId",
  5530. "in": "query",
  5531. "description": "An arbitrary identifier for the task",
  5532. "schema": {
  5533. "type": "string",
  5534. "nullable": true,
  5535. "default": null
  5536. }
  5537. },
  5538. {
  5539. "name": "OCS-APIRequest",
  5540. "in": "header",
  5541. "description": "Required to be true for the API request to pass",
  5542. "required": true,
  5543. "schema": {
  5544. "type": "boolean",
  5545. "default": true
  5546. }
  5547. }
  5548. ],
  5549. "responses": {
  5550. "200": {
  5551. "description": "Tasks returned",
  5552. "content": {
  5553. "application/json": {
  5554. "schema": {
  5555. "type": "object",
  5556. "required": [
  5557. "ocs"
  5558. ],
  5559. "properties": {
  5560. "ocs": {
  5561. "type": "object",
  5562. "required": [
  5563. "meta",
  5564. "data"
  5565. ],
  5566. "properties": {
  5567. "meta": {
  5568. "$ref": "#/components/schemas/OCSMeta"
  5569. },
  5570. "data": {
  5571. "type": "object",
  5572. "required": [
  5573. "tasks"
  5574. ],
  5575. "properties": {
  5576. "tasks": {
  5577. "type": "array",
  5578. "items": {
  5579. "$ref": "#/components/schemas/TaskProcessingTask"
  5580. }
  5581. }
  5582. }
  5583. }
  5584. }
  5585. }
  5586. }
  5587. }
  5588. }
  5589. }
  5590. },
  5591. "500": {
  5592. "description": "",
  5593. "content": {
  5594. "application/json": {
  5595. "schema": {
  5596. "type": "object",
  5597. "required": [
  5598. "ocs"
  5599. ],
  5600. "properties": {
  5601. "ocs": {
  5602. "type": "object",
  5603. "required": [
  5604. "meta",
  5605. "data"
  5606. ],
  5607. "properties": {
  5608. "meta": {
  5609. "$ref": "#/components/schemas/OCSMeta"
  5610. },
  5611. "data": {
  5612. "type": "object",
  5613. "required": [
  5614. "message"
  5615. ],
  5616. "properties": {
  5617. "message": {
  5618. "type": "string"
  5619. }
  5620. }
  5621. }
  5622. }
  5623. }
  5624. }
  5625. }
  5626. }
  5627. }
  5628. },
  5629. "401": {
  5630. "description": "Current user is not logged in",
  5631. "content": {
  5632. "application/json": {
  5633. "schema": {
  5634. "type": "object",
  5635. "required": [
  5636. "ocs"
  5637. ],
  5638. "properties": {
  5639. "ocs": {
  5640. "type": "object",
  5641. "required": [
  5642. "meta",
  5643. "data"
  5644. ],
  5645. "properties": {
  5646. "meta": {
  5647. "$ref": "#/components/schemas/OCSMeta"
  5648. },
  5649. "data": {}
  5650. }
  5651. }
  5652. }
  5653. }
  5654. }
  5655. }
  5656. }
  5657. }
  5658. }
  5659. },
  5660. "/ocs/v2.php/taskprocessing/tasks": {
  5661. "get": {
  5662. "operationId": "task_processing_api-list-tasks",
  5663. "summary": "Returns tasks for the current user filtered by the optional taskType and optional customId",
  5664. "tags": [
  5665. "task_processing_api"
  5666. ],
  5667. "security": [
  5668. {
  5669. "bearer_auth": []
  5670. },
  5671. {
  5672. "basic_auth": []
  5673. }
  5674. ],
  5675. "parameters": [
  5676. {
  5677. "name": "taskType",
  5678. "in": "query",
  5679. "description": "The task type to filter by",
  5680. "schema": {
  5681. "type": "string",
  5682. "nullable": true
  5683. }
  5684. },
  5685. {
  5686. "name": "customId",
  5687. "in": "query",
  5688. "description": "An arbitrary identifier for the task",
  5689. "schema": {
  5690. "type": "string",
  5691. "nullable": true,
  5692. "default": null
  5693. }
  5694. },
  5695. {
  5696. "name": "OCS-APIRequest",
  5697. "in": "header",
  5698. "description": "Required to be true for the API request to pass",
  5699. "required": true,
  5700. "schema": {
  5701. "type": "boolean",
  5702. "default": true
  5703. }
  5704. }
  5705. ],
  5706. "responses": {
  5707. "200": {
  5708. "description": "Tasks returned",
  5709. "content": {
  5710. "application/json": {
  5711. "schema": {
  5712. "type": "object",
  5713. "required": [
  5714. "ocs"
  5715. ],
  5716. "properties": {
  5717. "ocs": {
  5718. "type": "object",
  5719. "required": [
  5720. "meta",
  5721. "data"
  5722. ],
  5723. "properties": {
  5724. "meta": {
  5725. "$ref": "#/components/schemas/OCSMeta"
  5726. },
  5727. "data": {
  5728. "type": "object",
  5729. "required": [
  5730. "tasks"
  5731. ],
  5732. "properties": {
  5733. "tasks": {
  5734. "type": "array",
  5735. "items": {
  5736. "$ref": "#/components/schemas/TaskProcessingTask"
  5737. }
  5738. }
  5739. }
  5740. }
  5741. }
  5742. }
  5743. }
  5744. }
  5745. }
  5746. }
  5747. },
  5748. "500": {
  5749. "description": "",
  5750. "content": {
  5751. "application/json": {
  5752. "schema": {
  5753. "type": "object",
  5754. "required": [
  5755. "ocs"
  5756. ],
  5757. "properties": {
  5758. "ocs": {
  5759. "type": "object",
  5760. "required": [
  5761. "meta",
  5762. "data"
  5763. ],
  5764. "properties": {
  5765. "meta": {
  5766. "$ref": "#/components/schemas/OCSMeta"
  5767. },
  5768. "data": {
  5769. "type": "object",
  5770. "required": [
  5771. "message"
  5772. ],
  5773. "properties": {
  5774. "message": {
  5775. "type": "string"
  5776. }
  5777. }
  5778. }
  5779. }
  5780. }
  5781. }
  5782. }
  5783. }
  5784. }
  5785. },
  5786. "401": {
  5787. "description": "Current user is not logged in",
  5788. "content": {
  5789. "application/json": {
  5790. "schema": {
  5791. "type": "object",
  5792. "required": [
  5793. "ocs"
  5794. ],
  5795. "properties": {
  5796. "ocs": {
  5797. "type": "object",
  5798. "required": [
  5799. "meta",
  5800. "data"
  5801. ],
  5802. "properties": {
  5803. "meta": {
  5804. "$ref": "#/components/schemas/OCSMeta"
  5805. },
  5806. "data": {}
  5807. }
  5808. }
  5809. }
  5810. }
  5811. }
  5812. }
  5813. }
  5814. }
  5815. }
  5816. },
  5817. "/ocs/v2.php/taskprocessing/tasks/{taskId}/file/{fileId}": {
  5818. "get": {
  5819. "operationId": "task_processing_api-get-file-contents",
  5820. "summary": "Returns the contents of a file referenced in a task",
  5821. "tags": [
  5822. "task_processing_api"
  5823. ],
  5824. "security": [
  5825. {
  5826. "bearer_auth": []
  5827. },
  5828. {
  5829. "basic_auth": []
  5830. }
  5831. ],
  5832. "parameters": [
  5833. {
  5834. "name": "taskId",
  5835. "in": "path",
  5836. "description": "The id of the task",
  5837. "required": true,
  5838. "schema": {
  5839. "type": "integer",
  5840. "format": "int64"
  5841. }
  5842. },
  5843. {
  5844. "name": "fileId",
  5845. "in": "path",
  5846. "description": "The file id of the file to retrieve",
  5847. "required": true,
  5848. "schema": {
  5849. "type": "integer",
  5850. "format": "int64"
  5851. }
  5852. },
  5853. {
  5854. "name": "OCS-APIRequest",
  5855. "in": "header",
  5856. "description": "Required to be true for the API request to pass",
  5857. "required": true,
  5858. "schema": {
  5859. "type": "boolean",
  5860. "default": true
  5861. }
  5862. }
  5863. ],
  5864. "responses": {
  5865. "200": {
  5866. "description": "File content returned",
  5867. "content": {
  5868. "*/*": {
  5869. "schema": {
  5870. "type": "string",
  5871. "format": "binary"
  5872. }
  5873. }
  5874. }
  5875. },
  5876. "500": {
  5877. "description": "",
  5878. "content": {
  5879. "application/json": {
  5880. "schema": {
  5881. "type": "object",
  5882. "required": [
  5883. "ocs"
  5884. ],
  5885. "properties": {
  5886. "ocs": {
  5887. "type": "object",
  5888. "required": [
  5889. "meta",
  5890. "data"
  5891. ],
  5892. "properties": {
  5893. "meta": {
  5894. "$ref": "#/components/schemas/OCSMeta"
  5895. },
  5896. "data": {
  5897. "type": "object",
  5898. "required": [
  5899. "message"
  5900. ],
  5901. "properties": {
  5902. "message": {
  5903. "type": "string"
  5904. }
  5905. }
  5906. }
  5907. }
  5908. }
  5909. }
  5910. }
  5911. }
  5912. }
  5913. },
  5914. "404": {
  5915. "description": "Task or file not found",
  5916. "content": {
  5917. "application/json": {
  5918. "schema": {
  5919. "type": "object",
  5920. "required": [
  5921. "ocs"
  5922. ],
  5923. "properties": {
  5924. "ocs": {
  5925. "type": "object",
  5926. "required": [
  5927. "meta",
  5928. "data"
  5929. ],
  5930. "properties": {
  5931. "meta": {
  5932. "$ref": "#/components/schemas/OCSMeta"
  5933. },
  5934. "data": {
  5935. "type": "object",
  5936. "required": [
  5937. "message"
  5938. ],
  5939. "properties": {
  5940. "message": {
  5941. "type": "string"
  5942. }
  5943. }
  5944. }
  5945. }
  5946. }
  5947. }
  5948. }
  5949. }
  5950. }
  5951. },
  5952. "401": {
  5953. "description": "Current user is not logged in",
  5954. "content": {
  5955. "application/json": {
  5956. "schema": {
  5957. "type": "object",
  5958. "required": [
  5959. "ocs"
  5960. ],
  5961. "properties": {
  5962. "ocs": {
  5963. "type": "object",
  5964. "required": [
  5965. "meta",
  5966. "data"
  5967. ],
  5968. "properties": {
  5969. "meta": {
  5970. "$ref": "#/components/schemas/OCSMeta"
  5971. },
  5972. "data": {}
  5973. }
  5974. }
  5975. }
  5976. }
  5977. }
  5978. }
  5979. }
  5980. }
  5981. }
  5982. },
  5983. "/ocs/v2.php/taskprocessing/tasks/{taskId}/cancel": {
  5984. "post": {
  5985. "operationId": "task_processing_api-cancel-task",
  5986. "summary": "Cancels a task",
  5987. "tags": [
  5988. "task_processing_api"
  5989. ],
  5990. "security": [
  5991. {
  5992. "bearer_auth": []
  5993. },
  5994. {
  5995. "basic_auth": []
  5996. }
  5997. ],
  5998. "parameters": [
  5999. {
  6000. "name": "taskId",
  6001. "in": "path",
  6002. "description": "The id of the task",
  6003. "required": true,
  6004. "schema": {
  6005. "type": "integer",
  6006. "format": "int64"
  6007. }
  6008. },
  6009. {
  6010. "name": "OCS-APIRequest",
  6011. "in": "header",
  6012. "description": "Required to be true for the API request to pass",
  6013. "required": true,
  6014. "schema": {
  6015. "type": "boolean",
  6016. "default": true
  6017. }
  6018. }
  6019. ],
  6020. "responses": {
  6021. "200": {
  6022. "description": "Task canceled successfully",
  6023. "content": {
  6024. "application/json": {
  6025. "schema": {
  6026. "type": "object",
  6027. "required": [
  6028. "ocs"
  6029. ],
  6030. "properties": {
  6031. "ocs": {
  6032. "type": "object",
  6033. "required": [
  6034. "meta",
  6035. "data"
  6036. ],
  6037. "properties": {
  6038. "meta": {
  6039. "$ref": "#/components/schemas/OCSMeta"
  6040. },
  6041. "data": {
  6042. "type": "object",
  6043. "required": [
  6044. "task"
  6045. ],
  6046. "properties": {
  6047. "task": {
  6048. "$ref": "#/components/schemas/TaskProcessingTask"
  6049. }
  6050. }
  6051. }
  6052. }
  6053. }
  6054. }
  6055. }
  6056. }
  6057. }
  6058. },
  6059. "500": {
  6060. "description": "",
  6061. "content": {
  6062. "application/json": {
  6063. "schema": {
  6064. "type": "object",
  6065. "required": [
  6066. "ocs"
  6067. ],
  6068. "properties": {
  6069. "ocs": {
  6070. "type": "object",
  6071. "required": [
  6072. "meta",
  6073. "data"
  6074. ],
  6075. "properties": {
  6076. "meta": {
  6077. "$ref": "#/components/schemas/OCSMeta"
  6078. },
  6079. "data": {
  6080. "type": "object",
  6081. "required": [
  6082. "message"
  6083. ],
  6084. "properties": {
  6085. "message": {
  6086. "type": "string"
  6087. }
  6088. }
  6089. }
  6090. }
  6091. }
  6092. }
  6093. }
  6094. }
  6095. }
  6096. },
  6097. "404": {
  6098. "description": "Task not found",
  6099. "content": {
  6100. "application/json": {
  6101. "schema": {
  6102. "type": "object",
  6103. "required": [
  6104. "ocs"
  6105. ],
  6106. "properties": {
  6107. "ocs": {
  6108. "type": "object",
  6109. "required": [
  6110. "meta",
  6111. "data"
  6112. ],
  6113. "properties": {
  6114. "meta": {
  6115. "$ref": "#/components/schemas/OCSMeta"
  6116. },
  6117. "data": {
  6118. "type": "object",
  6119. "required": [
  6120. "message"
  6121. ],
  6122. "properties": {
  6123. "message": {
  6124. "type": "string"
  6125. }
  6126. }
  6127. }
  6128. }
  6129. }
  6130. }
  6131. }
  6132. }
  6133. }
  6134. },
  6135. "401": {
  6136. "description": "Current user is not logged in",
  6137. "content": {
  6138. "application/json": {
  6139. "schema": {
  6140. "type": "object",
  6141. "required": [
  6142. "ocs"
  6143. ],
  6144. "properties": {
  6145. "ocs": {
  6146. "type": "object",
  6147. "required": [
  6148. "meta",
  6149. "data"
  6150. ],
  6151. "properties": {
  6152. "meta": {
  6153. "$ref": "#/components/schemas/OCSMeta"
  6154. },
  6155. "data": {}
  6156. }
  6157. }
  6158. }
  6159. }
  6160. }
  6161. }
  6162. }
  6163. }
  6164. }
  6165. },
  6166. "/ocs/v2.php/teams/{teamId}/resources": {
  6167. "get": {
  6168. "operationId": "teams_api-resolve-one",
  6169. "summary": "Get all resources of a team",
  6170. "tags": [
  6171. "teams_api"
  6172. ],
  6173. "security": [
  6174. {
  6175. "bearer_auth": []
  6176. },
  6177. {
  6178. "basic_auth": []
  6179. }
  6180. ],
  6181. "parameters": [
  6182. {
  6183. "name": "teamId",
  6184. "in": "path",
  6185. "description": "Unique id of the team",
  6186. "required": true,
  6187. "schema": {
  6188. "type": "string"
  6189. }
  6190. },
  6191. {
  6192. "name": "OCS-APIRequest",
  6193. "in": "header",
  6194. "description": "Required to be true for the API request to pass",
  6195. "required": true,
  6196. "schema": {
  6197. "type": "boolean",
  6198. "default": true
  6199. }
  6200. }
  6201. ],
  6202. "responses": {
  6203. "200": {
  6204. "description": "Resources returned",
  6205. "content": {
  6206. "application/json": {
  6207. "schema": {
  6208. "type": "object",
  6209. "required": [
  6210. "ocs"
  6211. ],
  6212. "properties": {
  6213. "ocs": {
  6214. "type": "object",
  6215. "required": [
  6216. "meta",
  6217. "data"
  6218. ],
  6219. "properties": {
  6220. "meta": {
  6221. "$ref": "#/components/schemas/OCSMeta"
  6222. },
  6223. "data": {
  6224. "type": "object",
  6225. "required": [
  6226. "resources"
  6227. ],
  6228. "properties": {
  6229. "resources": {
  6230. "type": "array",
  6231. "items": {
  6232. "$ref": "#/components/schemas/TeamResource"
  6233. }
  6234. }
  6235. }
  6236. }
  6237. }
  6238. }
  6239. }
  6240. }
  6241. }
  6242. }
  6243. },
  6244. "401": {
  6245. "description": "Current user is not logged in",
  6246. "content": {
  6247. "application/json": {
  6248. "schema": {
  6249. "type": "object",
  6250. "required": [
  6251. "ocs"
  6252. ],
  6253. "properties": {
  6254. "ocs": {
  6255. "type": "object",
  6256. "required": [
  6257. "meta",
  6258. "data"
  6259. ],
  6260. "properties": {
  6261. "meta": {
  6262. "$ref": "#/components/schemas/OCSMeta"
  6263. },
  6264. "data": {}
  6265. }
  6266. }
  6267. }
  6268. }
  6269. }
  6270. }
  6271. }
  6272. }
  6273. }
  6274. },
  6275. "/ocs/v2.php/teams/resources/{providerId}/{resourceId}": {
  6276. "get": {
  6277. "operationId": "teams_api-list-teams",
  6278. "summary": "Get all teams of a resource",
  6279. "tags": [
  6280. "teams_api"
  6281. ],
  6282. "security": [
  6283. {
  6284. "bearer_auth": []
  6285. },
  6286. {
  6287. "basic_auth": []
  6288. }
  6289. ],
  6290. "parameters": [
  6291. {
  6292. "name": "providerId",
  6293. "in": "path",
  6294. "description": "Identifier of the provider (e.g. deck, talk, collectives)",
  6295. "required": true,
  6296. "schema": {
  6297. "type": "string"
  6298. }
  6299. },
  6300. {
  6301. "name": "resourceId",
  6302. "in": "path",
  6303. "description": "Unique id of the resource to list teams for (e.g. deck board id)",
  6304. "required": true,
  6305. "schema": {
  6306. "type": "string"
  6307. }
  6308. },
  6309. {
  6310. "name": "OCS-APIRequest",
  6311. "in": "header",
  6312. "description": "Required to be true for the API request to pass",
  6313. "required": true,
  6314. "schema": {
  6315. "type": "boolean",
  6316. "default": true
  6317. }
  6318. }
  6319. ],
  6320. "responses": {
  6321. "200": {
  6322. "description": "Teams returned",
  6323. "content": {
  6324. "application/json": {
  6325. "schema": {
  6326. "type": "object",
  6327. "required": [
  6328. "ocs"
  6329. ],
  6330. "properties": {
  6331. "ocs": {
  6332. "type": "object",
  6333. "required": [
  6334. "meta",
  6335. "data"
  6336. ],
  6337. "properties": {
  6338. "meta": {
  6339. "$ref": "#/components/schemas/OCSMeta"
  6340. },
  6341. "data": {
  6342. "type": "object",
  6343. "required": [
  6344. "teams"
  6345. ],
  6346. "properties": {
  6347. "teams": {
  6348. "type": "array",
  6349. "items": {
  6350. "$ref": "#/components/schemas/TeamWithResources"
  6351. }
  6352. }
  6353. }
  6354. }
  6355. }
  6356. }
  6357. }
  6358. }
  6359. }
  6360. }
  6361. },
  6362. "401": {
  6363. "description": "Current user is not logged in",
  6364. "content": {
  6365. "application/json": {
  6366. "schema": {
  6367. "type": "object",
  6368. "required": [
  6369. "ocs"
  6370. ],
  6371. "properties": {
  6372. "ocs": {
  6373. "type": "object",
  6374. "required": [
  6375. "meta",
  6376. "data"
  6377. ],
  6378. "properties": {
  6379. "meta": {
  6380. "$ref": "#/components/schemas/OCSMeta"
  6381. },
  6382. "data": {}
  6383. }
  6384. }
  6385. }
  6386. }
  6387. }
  6388. }
  6389. }
  6390. }
  6391. }
  6392. },
  6393. "/ocs/v2.php/textprocessing/tasktypes": {
  6394. "get": {
  6395. "operationId": "text_processing_api-task-types",
  6396. "summary": "This endpoint returns all available LanguageModel task types",
  6397. "tags": [
  6398. "text_processing_api"
  6399. ],
  6400. "security": [
  6401. {},
  6402. {
  6403. "bearer_auth": []
  6404. },
  6405. {
  6406. "basic_auth": []
  6407. }
  6408. ],
  6409. "parameters": [
  6410. {
  6411. "name": "OCS-APIRequest",
  6412. "in": "header",
  6413. "description": "Required to be true for the API request to pass",
  6414. "required": true,
  6415. "schema": {
  6416. "type": "boolean",
  6417. "default": true
  6418. }
  6419. }
  6420. ],
  6421. "responses": {
  6422. "200": {
  6423. "description": "Task types returned",
  6424. "content": {
  6425. "application/json": {
  6426. "schema": {
  6427. "type": "object",
  6428. "required": [
  6429. "ocs"
  6430. ],
  6431. "properties": {
  6432. "ocs": {
  6433. "type": "object",
  6434. "required": [
  6435. "meta",
  6436. "data"
  6437. ],
  6438. "properties": {
  6439. "meta": {
  6440. "$ref": "#/components/schemas/OCSMeta"
  6441. },
  6442. "data": {
  6443. "type": "object",
  6444. "required": [
  6445. "types"
  6446. ],
  6447. "properties": {
  6448. "types": {
  6449. "type": "array",
  6450. "items": {
  6451. "type": "object",
  6452. "required": [
  6453. "id",
  6454. "name",
  6455. "description"
  6456. ],
  6457. "properties": {
  6458. "id": {
  6459. "type": "string"
  6460. },
  6461. "name": {
  6462. "type": "string"
  6463. },
  6464. "description": {
  6465. "type": "string"
  6466. }
  6467. }
  6468. }
  6469. }
  6470. }
  6471. }
  6472. }
  6473. }
  6474. }
  6475. }
  6476. }
  6477. }
  6478. }
  6479. }
  6480. }
  6481. },
  6482. "/ocs/v2.php/textprocessing/schedule": {
  6483. "post": {
  6484. "operationId": "text_processing_api-schedule",
  6485. "summary": "This endpoint allows scheduling a language model task",
  6486. "tags": [
  6487. "text_processing_api"
  6488. ],
  6489. "security": [
  6490. {
  6491. "bearer_auth": []
  6492. },
  6493. {
  6494. "basic_auth": []
  6495. }
  6496. ],
  6497. "requestBody": {
  6498. "required": true,
  6499. "content": {
  6500. "application/json": {
  6501. "schema": {
  6502. "type": "object",
  6503. "required": [
  6504. "input",
  6505. "type",
  6506. "appId"
  6507. ],
  6508. "properties": {
  6509. "input": {
  6510. "type": "string",
  6511. "description": "Input text"
  6512. },
  6513. "type": {
  6514. "type": "string",
  6515. "description": "Type of the task"
  6516. },
  6517. "appId": {
  6518. "type": "string",
  6519. "description": "ID of the app that will execute the task"
  6520. },
  6521. "identifier": {
  6522. "type": "string",
  6523. "default": "",
  6524. "description": "An arbitrary identifier for the task"
  6525. }
  6526. }
  6527. }
  6528. }
  6529. }
  6530. },
  6531. "parameters": [
  6532. {
  6533. "name": "OCS-APIRequest",
  6534. "in": "header",
  6535. "description": "Required to be true for the API request to pass",
  6536. "required": true,
  6537. "schema": {
  6538. "type": "boolean",
  6539. "default": true
  6540. }
  6541. }
  6542. ],
  6543. "responses": {
  6544. "200": {
  6545. "description": "Task scheduled successfully",
  6546. "content": {
  6547. "application/json": {
  6548. "schema": {
  6549. "type": "object",
  6550. "required": [
  6551. "ocs"
  6552. ],
  6553. "properties": {
  6554. "ocs": {
  6555. "type": "object",
  6556. "required": [
  6557. "meta",
  6558. "data"
  6559. ],
  6560. "properties": {
  6561. "meta": {
  6562. "$ref": "#/components/schemas/OCSMeta"
  6563. },
  6564. "data": {
  6565. "type": "object",
  6566. "required": [
  6567. "task"
  6568. ],
  6569. "properties": {
  6570. "task": {
  6571. "$ref": "#/components/schemas/TextProcessingTask"
  6572. }
  6573. }
  6574. }
  6575. }
  6576. }
  6577. }
  6578. }
  6579. }
  6580. }
  6581. },
  6582. "500": {
  6583. "description": "",
  6584. "content": {
  6585. "application/json": {
  6586. "schema": {
  6587. "type": "object",
  6588. "required": [
  6589. "ocs"
  6590. ],
  6591. "properties": {
  6592. "ocs": {
  6593. "type": "object",
  6594. "required": [
  6595. "meta",
  6596. "data"
  6597. ],
  6598. "properties": {
  6599. "meta": {
  6600. "$ref": "#/components/schemas/OCSMeta"
  6601. },
  6602. "data": {
  6603. "type": "object",
  6604. "required": [
  6605. "message"
  6606. ],
  6607. "properties": {
  6608. "message": {
  6609. "type": "string"
  6610. }
  6611. }
  6612. }
  6613. }
  6614. }
  6615. }
  6616. }
  6617. }
  6618. }
  6619. },
  6620. "400": {
  6621. "description": "Scheduling task is not possible",
  6622. "content": {
  6623. "application/json": {
  6624. "schema": {
  6625. "type": "object",
  6626. "required": [
  6627. "ocs"
  6628. ],
  6629. "properties": {
  6630. "ocs": {
  6631. "type": "object",
  6632. "required": [
  6633. "meta",
  6634. "data"
  6635. ],
  6636. "properties": {
  6637. "meta": {
  6638. "$ref": "#/components/schemas/OCSMeta"
  6639. },
  6640. "data": {
  6641. "type": "object",
  6642. "required": [
  6643. "message"
  6644. ],
  6645. "properties": {
  6646. "message": {
  6647. "type": "string"
  6648. }
  6649. }
  6650. }
  6651. }
  6652. }
  6653. }
  6654. }
  6655. }
  6656. }
  6657. },
  6658. "412": {
  6659. "description": "Scheduling task is not possible",
  6660. "content": {
  6661. "application/json": {
  6662. "schema": {
  6663. "type": "object",
  6664. "required": [
  6665. "ocs"
  6666. ],
  6667. "properties": {
  6668. "ocs": {
  6669. "type": "object",
  6670. "required": [
  6671. "meta",
  6672. "data"
  6673. ],
  6674. "properties": {
  6675. "meta": {
  6676. "$ref": "#/components/schemas/OCSMeta"
  6677. },
  6678. "data": {
  6679. "type": "object",
  6680. "required": [
  6681. "message"
  6682. ],
  6683. "properties": {
  6684. "message": {
  6685. "type": "string"
  6686. }
  6687. }
  6688. }
  6689. }
  6690. }
  6691. }
  6692. }
  6693. }
  6694. }
  6695. },
  6696. "401": {
  6697. "description": "Current user is not logged in",
  6698. "content": {
  6699. "application/json": {
  6700. "schema": {
  6701. "type": "object",
  6702. "required": [
  6703. "ocs"
  6704. ],
  6705. "properties": {
  6706. "ocs": {
  6707. "type": "object",
  6708. "required": [
  6709. "meta",
  6710. "data"
  6711. ],
  6712. "properties": {
  6713. "meta": {
  6714. "$ref": "#/components/schemas/OCSMeta"
  6715. },
  6716. "data": {}
  6717. }
  6718. }
  6719. }
  6720. }
  6721. }
  6722. }
  6723. }
  6724. }
  6725. }
  6726. },
  6727. "/ocs/v2.php/textprocessing/task/{id}": {
  6728. "get": {
  6729. "operationId": "text_processing_api-get-task",
  6730. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  6731. "tags": [
  6732. "text_processing_api"
  6733. ],
  6734. "security": [
  6735. {
  6736. "bearer_auth": []
  6737. },
  6738. {
  6739. "basic_auth": []
  6740. }
  6741. ],
  6742. "parameters": [
  6743. {
  6744. "name": "id",
  6745. "in": "path",
  6746. "description": "The id of the task",
  6747. "required": true,
  6748. "schema": {
  6749. "type": "integer",
  6750. "format": "int64"
  6751. }
  6752. },
  6753. {
  6754. "name": "OCS-APIRequest",
  6755. "in": "header",
  6756. "description": "Required to be true for the API request to pass",
  6757. "required": true,
  6758. "schema": {
  6759. "type": "boolean",
  6760. "default": true
  6761. }
  6762. }
  6763. ],
  6764. "responses": {
  6765. "200": {
  6766. "description": "Task returned",
  6767. "content": {
  6768. "application/json": {
  6769. "schema": {
  6770. "type": "object",
  6771. "required": [
  6772. "ocs"
  6773. ],
  6774. "properties": {
  6775. "ocs": {
  6776. "type": "object",
  6777. "required": [
  6778. "meta",
  6779. "data"
  6780. ],
  6781. "properties": {
  6782. "meta": {
  6783. "$ref": "#/components/schemas/OCSMeta"
  6784. },
  6785. "data": {
  6786. "type": "object",
  6787. "required": [
  6788. "task"
  6789. ],
  6790. "properties": {
  6791. "task": {
  6792. "$ref": "#/components/schemas/TextProcessingTask"
  6793. }
  6794. }
  6795. }
  6796. }
  6797. }
  6798. }
  6799. }
  6800. }
  6801. }
  6802. },
  6803. "404": {
  6804. "description": "Task not found",
  6805. "content": {
  6806. "application/json": {
  6807. "schema": {
  6808. "type": "object",
  6809. "required": [
  6810. "ocs"
  6811. ],
  6812. "properties": {
  6813. "ocs": {
  6814. "type": "object",
  6815. "required": [
  6816. "meta",
  6817. "data"
  6818. ],
  6819. "properties": {
  6820. "meta": {
  6821. "$ref": "#/components/schemas/OCSMeta"
  6822. },
  6823. "data": {
  6824. "type": "object",
  6825. "required": [
  6826. "message"
  6827. ],
  6828. "properties": {
  6829. "message": {
  6830. "type": "string"
  6831. }
  6832. }
  6833. }
  6834. }
  6835. }
  6836. }
  6837. }
  6838. }
  6839. }
  6840. },
  6841. "500": {
  6842. "description": "",
  6843. "content": {
  6844. "application/json": {
  6845. "schema": {
  6846. "type": "object",
  6847. "required": [
  6848. "ocs"
  6849. ],
  6850. "properties": {
  6851. "ocs": {
  6852. "type": "object",
  6853. "required": [
  6854. "meta",
  6855. "data"
  6856. ],
  6857. "properties": {
  6858. "meta": {
  6859. "$ref": "#/components/schemas/OCSMeta"
  6860. },
  6861. "data": {
  6862. "type": "object",
  6863. "required": [
  6864. "message"
  6865. ],
  6866. "properties": {
  6867. "message": {
  6868. "type": "string"
  6869. }
  6870. }
  6871. }
  6872. }
  6873. }
  6874. }
  6875. }
  6876. }
  6877. }
  6878. },
  6879. "401": {
  6880. "description": "Current user is not logged in",
  6881. "content": {
  6882. "application/json": {
  6883. "schema": {
  6884. "type": "object",
  6885. "required": [
  6886. "ocs"
  6887. ],
  6888. "properties": {
  6889. "ocs": {
  6890. "type": "object",
  6891. "required": [
  6892. "meta",
  6893. "data"
  6894. ],
  6895. "properties": {
  6896. "meta": {
  6897. "$ref": "#/components/schemas/OCSMeta"
  6898. },
  6899. "data": {}
  6900. }
  6901. }
  6902. }
  6903. }
  6904. }
  6905. }
  6906. }
  6907. }
  6908. },
  6909. "delete": {
  6910. "operationId": "text_processing_api-delete-task",
  6911. "summary": "This endpoint allows to delete a scheduled task for a user",
  6912. "tags": [
  6913. "text_processing_api"
  6914. ],
  6915. "security": [
  6916. {
  6917. "bearer_auth": []
  6918. },
  6919. {
  6920. "basic_auth": []
  6921. }
  6922. ],
  6923. "parameters": [
  6924. {
  6925. "name": "id",
  6926. "in": "path",
  6927. "description": "The id of the task",
  6928. "required": true,
  6929. "schema": {
  6930. "type": "integer",
  6931. "format": "int64"
  6932. }
  6933. },
  6934. {
  6935. "name": "OCS-APIRequest",
  6936. "in": "header",
  6937. "description": "Required to be true for the API request to pass",
  6938. "required": true,
  6939. "schema": {
  6940. "type": "boolean",
  6941. "default": true
  6942. }
  6943. }
  6944. ],
  6945. "responses": {
  6946. "200": {
  6947. "description": "Task returned",
  6948. "content": {
  6949. "application/json": {
  6950. "schema": {
  6951. "type": "object",
  6952. "required": [
  6953. "ocs"
  6954. ],
  6955. "properties": {
  6956. "ocs": {
  6957. "type": "object",
  6958. "required": [
  6959. "meta",
  6960. "data"
  6961. ],
  6962. "properties": {
  6963. "meta": {
  6964. "$ref": "#/components/schemas/OCSMeta"
  6965. },
  6966. "data": {
  6967. "type": "object",
  6968. "required": [
  6969. "task"
  6970. ],
  6971. "properties": {
  6972. "task": {
  6973. "$ref": "#/components/schemas/TextProcessingTask"
  6974. }
  6975. }
  6976. }
  6977. }
  6978. }
  6979. }
  6980. }
  6981. }
  6982. }
  6983. },
  6984. "404": {
  6985. "description": "Task not found",
  6986. "content": {
  6987. "application/json": {
  6988. "schema": {
  6989. "type": "object",
  6990. "required": [
  6991. "ocs"
  6992. ],
  6993. "properties": {
  6994. "ocs": {
  6995. "type": "object",
  6996. "required": [
  6997. "meta",
  6998. "data"
  6999. ],
  7000. "properties": {
  7001. "meta": {
  7002. "$ref": "#/components/schemas/OCSMeta"
  7003. },
  7004. "data": {
  7005. "type": "object",
  7006. "required": [
  7007. "message"
  7008. ],
  7009. "properties": {
  7010. "message": {
  7011. "type": "string"
  7012. }
  7013. }
  7014. }
  7015. }
  7016. }
  7017. }
  7018. }
  7019. }
  7020. }
  7021. },
  7022. "500": {
  7023. "description": "",
  7024. "content": {
  7025. "application/json": {
  7026. "schema": {
  7027. "type": "object",
  7028. "required": [
  7029. "ocs"
  7030. ],
  7031. "properties": {
  7032. "ocs": {
  7033. "type": "object",
  7034. "required": [
  7035. "meta",
  7036. "data"
  7037. ],
  7038. "properties": {
  7039. "meta": {
  7040. "$ref": "#/components/schemas/OCSMeta"
  7041. },
  7042. "data": {
  7043. "type": "object",
  7044. "required": [
  7045. "message"
  7046. ],
  7047. "properties": {
  7048. "message": {
  7049. "type": "string"
  7050. }
  7051. }
  7052. }
  7053. }
  7054. }
  7055. }
  7056. }
  7057. }
  7058. }
  7059. },
  7060. "401": {
  7061. "description": "Current user is not logged in",
  7062. "content": {
  7063. "application/json": {
  7064. "schema": {
  7065. "type": "object",
  7066. "required": [
  7067. "ocs"
  7068. ],
  7069. "properties": {
  7070. "ocs": {
  7071. "type": "object",
  7072. "required": [
  7073. "meta",
  7074. "data"
  7075. ],
  7076. "properties": {
  7077. "meta": {
  7078. "$ref": "#/components/schemas/OCSMeta"
  7079. },
  7080. "data": {}
  7081. }
  7082. }
  7083. }
  7084. }
  7085. }
  7086. }
  7087. }
  7088. }
  7089. }
  7090. },
  7091. "/ocs/v2.php/textprocessing/tasks/app/{appId}": {
  7092. "get": {
  7093. "operationId": "text_processing_api-list-tasks-by-app",
  7094. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  7095. "tags": [
  7096. "text_processing_api"
  7097. ],
  7098. "security": [
  7099. {
  7100. "bearer_auth": []
  7101. },
  7102. {
  7103. "basic_auth": []
  7104. }
  7105. ],
  7106. "parameters": [
  7107. {
  7108. "name": "appId",
  7109. "in": "path",
  7110. "description": "ID of the app",
  7111. "required": true,
  7112. "schema": {
  7113. "type": "string"
  7114. }
  7115. },
  7116. {
  7117. "name": "identifier",
  7118. "in": "query",
  7119. "description": "An arbitrary identifier for the task",
  7120. "schema": {
  7121. "type": "string",
  7122. "nullable": true,
  7123. "default": null
  7124. }
  7125. },
  7126. {
  7127. "name": "OCS-APIRequest",
  7128. "in": "header",
  7129. "description": "Required to be true for the API request to pass",
  7130. "required": true,
  7131. "schema": {
  7132. "type": "boolean",
  7133. "default": true
  7134. }
  7135. }
  7136. ],
  7137. "responses": {
  7138. "200": {
  7139. "description": "Task list returned",
  7140. "content": {
  7141. "application/json": {
  7142. "schema": {
  7143. "type": "object",
  7144. "required": [
  7145. "ocs"
  7146. ],
  7147. "properties": {
  7148. "ocs": {
  7149. "type": "object",
  7150. "required": [
  7151. "meta",
  7152. "data"
  7153. ],
  7154. "properties": {
  7155. "meta": {
  7156. "$ref": "#/components/schemas/OCSMeta"
  7157. },
  7158. "data": {
  7159. "type": "object",
  7160. "required": [
  7161. "tasks"
  7162. ],
  7163. "properties": {
  7164. "tasks": {
  7165. "type": "array",
  7166. "items": {
  7167. "$ref": "#/components/schemas/TextProcessingTask"
  7168. }
  7169. }
  7170. }
  7171. }
  7172. }
  7173. }
  7174. }
  7175. }
  7176. }
  7177. }
  7178. },
  7179. "500": {
  7180. "description": "",
  7181. "content": {
  7182. "application/json": {
  7183. "schema": {
  7184. "type": "object",
  7185. "required": [
  7186. "ocs"
  7187. ],
  7188. "properties": {
  7189. "ocs": {
  7190. "type": "object",
  7191. "required": [
  7192. "meta",
  7193. "data"
  7194. ],
  7195. "properties": {
  7196. "meta": {
  7197. "$ref": "#/components/schemas/OCSMeta"
  7198. },
  7199. "data": {
  7200. "type": "object",
  7201. "required": [
  7202. "message"
  7203. ],
  7204. "properties": {
  7205. "message": {
  7206. "type": "string"
  7207. }
  7208. }
  7209. }
  7210. }
  7211. }
  7212. }
  7213. }
  7214. }
  7215. }
  7216. },
  7217. "401": {
  7218. "description": "Current user is not logged in",
  7219. "content": {
  7220. "application/json": {
  7221. "schema": {
  7222. "type": "object",
  7223. "required": [
  7224. "ocs"
  7225. ],
  7226. "properties": {
  7227. "ocs": {
  7228. "type": "object",
  7229. "required": [
  7230. "meta",
  7231. "data"
  7232. ],
  7233. "properties": {
  7234. "meta": {
  7235. "$ref": "#/components/schemas/OCSMeta"
  7236. },
  7237. "data": {}
  7238. }
  7239. }
  7240. }
  7241. }
  7242. }
  7243. }
  7244. }
  7245. }
  7246. }
  7247. },
  7248. "/ocs/v2.php/text2image/is_available": {
  7249. "get": {
  7250. "operationId": "text_to_image_api-is-available",
  7251. "summary": "Check whether this feature is available",
  7252. "tags": [
  7253. "text_to_image_api"
  7254. ],
  7255. "security": [
  7256. {
  7257. "bearer_auth": []
  7258. },
  7259. {
  7260. "basic_auth": []
  7261. }
  7262. ],
  7263. "parameters": [
  7264. {
  7265. "name": "OCS-APIRequest",
  7266. "in": "header",
  7267. "description": "Required to be true for the API request to pass",
  7268. "required": true,
  7269. "schema": {
  7270. "type": "boolean",
  7271. "default": true
  7272. }
  7273. }
  7274. ],
  7275. "responses": {
  7276. "200": {
  7277. "description": "Returns availability status",
  7278. "content": {
  7279. "application/json": {
  7280. "schema": {
  7281. "type": "object",
  7282. "required": [
  7283. "ocs"
  7284. ],
  7285. "properties": {
  7286. "ocs": {
  7287. "type": "object",
  7288. "required": [
  7289. "meta",
  7290. "data"
  7291. ],
  7292. "properties": {
  7293. "meta": {
  7294. "$ref": "#/components/schemas/OCSMeta"
  7295. },
  7296. "data": {
  7297. "type": "object",
  7298. "required": [
  7299. "isAvailable"
  7300. ],
  7301. "properties": {
  7302. "isAvailable": {
  7303. "type": "boolean"
  7304. }
  7305. }
  7306. }
  7307. }
  7308. }
  7309. }
  7310. }
  7311. }
  7312. }
  7313. },
  7314. "401": {
  7315. "description": "Current user is not logged in",
  7316. "content": {
  7317. "application/json": {
  7318. "schema": {
  7319. "type": "object",
  7320. "required": [
  7321. "ocs"
  7322. ],
  7323. "properties": {
  7324. "ocs": {
  7325. "type": "object",
  7326. "required": [
  7327. "meta",
  7328. "data"
  7329. ],
  7330. "properties": {
  7331. "meta": {
  7332. "$ref": "#/components/schemas/OCSMeta"
  7333. },
  7334. "data": {}
  7335. }
  7336. }
  7337. }
  7338. }
  7339. }
  7340. }
  7341. }
  7342. }
  7343. }
  7344. },
  7345. "/ocs/v2.php/text2image/schedule": {
  7346. "post": {
  7347. "operationId": "text_to_image_api-schedule",
  7348. "summary": "This endpoint allows scheduling a text to image task",
  7349. "tags": [
  7350. "text_to_image_api"
  7351. ],
  7352. "security": [
  7353. {
  7354. "bearer_auth": []
  7355. },
  7356. {
  7357. "basic_auth": []
  7358. }
  7359. ],
  7360. "requestBody": {
  7361. "required": true,
  7362. "content": {
  7363. "application/json": {
  7364. "schema": {
  7365. "type": "object",
  7366. "required": [
  7367. "input",
  7368. "appId"
  7369. ],
  7370. "properties": {
  7371. "input": {
  7372. "type": "string",
  7373. "description": "Input text"
  7374. },
  7375. "appId": {
  7376. "type": "string",
  7377. "description": "ID of the app that will execute the task"
  7378. },
  7379. "identifier": {
  7380. "type": "string",
  7381. "default": "",
  7382. "description": "An arbitrary identifier for the task"
  7383. },
  7384. "numberOfImages": {
  7385. "type": "integer",
  7386. "format": "int64",
  7387. "default": 8,
  7388. "description": "The number of images to generate"
  7389. }
  7390. }
  7391. }
  7392. }
  7393. }
  7394. },
  7395. "parameters": [
  7396. {
  7397. "name": "OCS-APIRequest",
  7398. "in": "header",
  7399. "description": "Required to be true for the API request to pass",
  7400. "required": true,
  7401. "schema": {
  7402. "type": "boolean",
  7403. "default": true
  7404. }
  7405. }
  7406. ],
  7407. "responses": {
  7408. "200": {
  7409. "description": "Task scheduled successfully",
  7410. "content": {
  7411. "application/json": {
  7412. "schema": {
  7413. "type": "object",
  7414. "required": [
  7415. "ocs"
  7416. ],
  7417. "properties": {
  7418. "ocs": {
  7419. "type": "object",
  7420. "required": [
  7421. "meta",
  7422. "data"
  7423. ],
  7424. "properties": {
  7425. "meta": {
  7426. "$ref": "#/components/schemas/OCSMeta"
  7427. },
  7428. "data": {
  7429. "type": "object",
  7430. "required": [
  7431. "task"
  7432. ],
  7433. "properties": {
  7434. "task": {
  7435. "$ref": "#/components/schemas/TextToImageTask"
  7436. }
  7437. }
  7438. }
  7439. }
  7440. }
  7441. }
  7442. }
  7443. }
  7444. }
  7445. },
  7446. "412": {
  7447. "description": "Scheduling task is not possible",
  7448. "content": {
  7449. "application/json": {
  7450. "schema": {
  7451. "type": "object",
  7452. "required": [
  7453. "ocs"
  7454. ],
  7455. "properties": {
  7456. "ocs": {
  7457. "type": "object",
  7458. "required": [
  7459. "meta",
  7460. "data"
  7461. ],
  7462. "properties": {
  7463. "meta": {
  7464. "$ref": "#/components/schemas/OCSMeta"
  7465. },
  7466. "data": {
  7467. "type": "object",
  7468. "required": [
  7469. "message"
  7470. ],
  7471. "properties": {
  7472. "message": {
  7473. "type": "string"
  7474. }
  7475. }
  7476. }
  7477. }
  7478. }
  7479. }
  7480. }
  7481. }
  7482. }
  7483. },
  7484. "500": {
  7485. "description": "",
  7486. "content": {
  7487. "application/json": {
  7488. "schema": {
  7489. "type": "object",
  7490. "required": [
  7491. "ocs"
  7492. ],
  7493. "properties": {
  7494. "ocs": {
  7495. "type": "object",
  7496. "required": [
  7497. "meta",
  7498. "data"
  7499. ],
  7500. "properties": {
  7501. "meta": {
  7502. "$ref": "#/components/schemas/OCSMeta"
  7503. },
  7504. "data": {
  7505. "type": "object",
  7506. "required": [
  7507. "message"
  7508. ],
  7509. "properties": {
  7510. "message": {
  7511. "type": "string"
  7512. }
  7513. }
  7514. }
  7515. }
  7516. }
  7517. }
  7518. }
  7519. }
  7520. }
  7521. },
  7522. "401": {
  7523. "description": "Current user is not logged in",
  7524. "content": {
  7525. "application/json": {
  7526. "schema": {
  7527. "type": "object",
  7528. "required": [
  7529. "ocs"
  7530. ],
  7531. "properties": {
  7532. "ocs": {
  7533. "type": "object",
  7534. "required": [
  7535. "meta",
  7536. "data"
  7537. ],
  7538. "properties": {
  7539. "meta": {
  7540. "$ref": "#/components/schemas/OCSMeta"
  7541. },
  7542. "data": {}
  7543. }
  7544. }
  7545. }
  7546. }
  7547. }
  7548. }
  7549. }
  7550. }
  7551. }
  7552. },
  7553. "/ocs/v2.php/text2image/task/{id}": {
  7554. "get": {
  7555. "operationId": "text_to_image_api-get-task",
  7556. "summary": "This endpoint allows checking the status and results of a task. Tasks are removed 1 week after receiving their last update.",
  7557. "tags": [
  7558. "text_to_image_api"
  7559. ],
  7560. "security": [
  7561. {
  7562. "bearer_auth": []
  7563. },
  7564. {
  7565. "basic_auth": []
  7566. }
  7567. ],
  7568. "parameters": [
  7569. {
  7570. "name": "id",
  7571. "in": "path",
  7572. "description": "The id of the task",
  7573. "required": true,
  7574. "schema": {
  7575. "type": "integer",
  7576. "format": "int64"
  7577. }
  7578. },
  7579. {
  7580. "name": "OCS-APIRequest",
  7581. "in": "header",
  7582. "description": "Required to be true for the API request to pass",
  7583. "required": true,
  7584. "schema": {
  7585. "type": "boolean",
  7586. "default": true
  7587. }
  7588. }
  7589. ],
  7590. "responses": {
  7591. "200": {
  7592. "description": "Task returned",
  7593. "content": {
  7594. "application/json": {
  7595. "schema": {
  7596. "type": "object",
  7597. "required": [
  7598. "ocs"
  7599. ],
  7600. "properties": {
  7601. "ocs": {
  7602. "type": "object",
  7603. "required": [
  7604. "meta",
  7605. "data"
  7606. ],
  7607. "properties": {
  7608. "meta": {
  7609. "$ref": "#/components/schemas/OCSMeta"
  7610. },
  7611. "data": {
  7612. "type": "object",
  7613. "required": [
  7614. "task"
  7615. ],
  7616. "properties": {
  7617. "task": {
  7618. "$ref": "#/components/schemas/TextToImageTask"
  7619. }
  7620. }
  7621. }
  7622. }
  7623. }
  7624. }
  7625. }
  7626. }
  7627. }
  7628. },
  7629. "404": {
  7630. "description": "Task not found",
  7631. "content": {
  7632. "application/json": {
  7633. "schema": {
  7634. "type": "object",
  7635. "required": [
  7636. "ocs"
  7637. ],
  7638. "properties": {
  7639. "ocs": {
  7640. "type": "object",
  7641. "required": [
  7642. "meta",
  7643. "data"
  7644. ],
  7645. "properties": {
  7646. "meta": {
  7647. "$ref": "#/components/schemas/OCSMeta"
  7648. },
  7649. "data": {
  7650. "type": "object",
  7651. "required": [
  7652. "message"
  7653. ],
  7654. "properties": {
  7655. "message": {
  7656. "type": "string"
  7657. }
  7658. }
  7659. }
  7660. }
  7661. }
  7662. }
  7663. }
  7664. }
  7665. }
  7666. },
  7667. "500": {
  7668. "description": "",
  7669. "content": {
  7670. "application/json": {
  7671. "schema": {
  7672. "type": "object",
  7673. "required": [
  7674. "ocs"
  7675. ],
  7676. "properties": {
  7677. "ocs": {
  7678. "type": "object",
  7679. "required": [
  7680. "meta",
  7681. "data"
  7682. ],
  7683. "properties": {
  7684. "meta": {
  7685. "$ref": "#/components/schemas/OCSMeta"
  7686. },
  7687. "data": {
  7688. "type": "object",
  7689. "required": [
  7690. "message"
  7691. ],
  7692. "properties": {
  7693. "message": {
  7694. "type": "string"
  7695. }
  7696. }
  7697. }
  7698. }
  7699. }
  7700. }
  7701. }
  7702. }
  7703. }
  7704. },
  7705. "401": {
  7706. "description": "Current user is not logged in",
  7707. "content": {
  7708. "application/json": {
  7709. "schema": {
  7710. "type": "object",
  7711. "required": [
  7712. "ocs"
  7713. ],
  7714. "properties": {
  7715. "ocs": {
  7716. "type": "object",
  7717. "required": [
  7718. "meta",
  7719. "data"
  7720. ],
  7721. "properties": {
  7722. "meta": {
  7723. "$ref": "#/components/schemas/OCSMeta"
  7724. },
  7725. "data": {}
  7726. }
  7727. }
  7728. }
  7729. }
  7730. }
  7731. }
  7732. }
  7733. }
  7734. },
  7735. "delete": {
  7736. "operationId": "text_to_image_api-delete-task",
  7737. "summary": "This endpoint allows to delete a scheduled task for a user",
  7738. "tags": [
  7739. "text_to_image_api"
  7740. ],
  7741. "security": [
  7742. {
  7743. "bearer_auth": []
  7744. },
  7745. {
  7746. "basic_auth": []
  7747. }
  7748. ],
  7749. "parameters": [
  7750. {
  7751. "name": "id",
  7752. "in": "path",
  7753. "description": "The id of the task",
  7754. "required": true,
  7755. "schema": {
  7756. "type": "integer",
  7757. "format": "int64"
  7758. }
  7759. },
  7760. {
  7761. "name": "OCS-APIRequest",
  7762. "in": "header",
  7763. "description": "Required to be true for the API request to pass",
  7764. "required": true,
  7765. "schema": {
  7766. "type": "boolean",
  7767. "default": true
  7768. }
  7769. }
  7770. ],
  7771. "responses": {
  7772. "200": {
  7773. "description": "Task returned",
  7774. "content": {
  7775. "application/json": {
  7776. "schema": {
  7777. "type": "object",
  7778. "required": [
  7779. "ocs"
  7780. ],
  7781. "properties": {
  7782. "ocs": {
  7783. "type": "object",
  7784. "required": [
  7785. "meta",
  7786. "data"
  7787. ],
  7788. "properties": {
  7789. "meta": {
  7790. "$ref": "#/components/schemas/OCSMeta"
  7791. },
  7792. "data": {
  7793. "type": "object",
  7794. "required": [
  7795. "task"
  7796. ],
  7797. "properties": {
  7798. "task": {
  7799. "$ref": "#/components/schemas/TextToImageTask"
  7800. }
  7801. }
  7802. }
  7803. }
  7804. }
  7805. }
  7806. }
  7807. }
  7808. }
  7809. },
  7810. "404": {
  7811. "description": "Task not found",
  7812. "content": {
  7813. "application/json": {
  7814. "schema": {
  7815. "type": "object",
  7816. "required": [
  7817. "ocs"
  7818. ],
  7819. "properties": {
  7820. "ocs": {
  7821. "type": "object",
  7822. "required": [
  7823. "meta",
  7824. "data"
  7825. ],
  7826. "properties": {
  7827. "meta": {
  7828. "$ref": "#/components/schemas/OCSMeta"
  7829. },
  7830. "data": {
  7831. "type": "object",
  7832. "required": [
  7833. "message"
  7834. ],
  7835. "properties": {
  7836. "message": {
  7837. "type": "string"
  7838. }
  7839. }
  7840. }
  7841. }
  7842. }
  7843. }
  7844. }
  7845. }
  7846. }
  7847. },
  7848. "500": {
  7849. "description": "",
  7850. "content": {
  7851. "application/json": {
  7852. "schema": {
  7853. "type": "object",
  7854. "required": [
  7855. "ocs"
  7856. ],
  7857. "properties": {
  7858. "ocs": {
  7859. "type": "object",
  7860. "required": [
  7861. "meta",
  7862. "data"
  7863. ],
  7864. "properties": {
  7865. "meta": {
  7866. "$ref": "#/components/schemas/OCSMeta"
  7867. },
  7868. "data": {
  7869. "type": "object",
  7870. "required": [
  7871. "message"
  7872. ],
  7873. "properties": {
  7874. "message": {
  7875. "type": "string"
  7876. }
  7877. }
  7878. }
  7879. }
  7880. }
  7881. }
  7882. }
  7883. }
  7884. }
  7885. },
  7886. "401": {
  7887. "description": "Current user is not logged in",
  7888. "content": {
  7889. "application/json": {
  7890. "schema": {
  7891. "type": "object",
  7892. "required": [
  7893. "ocs"
  7894. ],
  7895. "properties": {
  7896. "ocs": {
  7897. "type": "object",
  7898. "required": [
  7899. "meta",
  7900. "data"
  7901. ],
  7902. "properties": {
  7903. "meta": {
  7904. "$ref": "#/components/schemas/OCSMeta"
  7905. },
  7906. "data": {}
  7907. }
  7908. }
  7909. }
  7910. }
  7911. }
  7912. }
  7913. }
  7914. }
  7915. }
  7916. },
  7917. "/ocs/v2.php/text2image/task/{id}/image/{index}": {
  7918. "get": {
  7919. "operationId": "text_to_image_api-get-image",
  7920. "summary": "This endpoint allows downloading the resulting image of a task",
  7921. "tags": [
  7922. "text_to_image_api"
  7923. ],
  7924. "security": [
  7925. {
  7926. "bearer_auth": []
  7927. },
  7928. {
  7929. "basic_auth": []
  7930. }
  7931. ],
  7932. "parameters": [
  7933. {
  7934. "name": "id",
  7935. "in": "path",
  7936. "description": "The id of the task",
  7937. "required": true,
  7938. "schema": {
  7939. "type": "integer",
  7940. "format": "int64"
  7941. }
  7942. },
  7943. {
  7944. "name": "index",
  7945. "in": "path",
  7946. "description": "The index of the image to retrieve",
  7947. "required": true,
  7948. "schema": {
  7949. "type": "integer",
  7950. "format": "int64"
  7951. }
  7952. },
  7953. {
  7954. "name": "OCS-APIRequest",
  7955. "in": "header",
  7956. "description": "Required to be true for the API request to pass",
  7957. "required": true,
  7958. "schema": {
  7959. "type": "boolean",
  7960. "default": true
  7961. }
  7962. }
  7963. ],
  7964. "responses": {
  7965. "200": {
  7966. "description": "Image returned",
  7967. "content": {
  7968. "*/*": {
  7969. "schema": {
  7970. "type": "string",
  7971. "format": "binary"
  7972. }
  7973. }
  7974. }
  7975. },
  7976. "404": {
  7977. "description": "Task or image not found",
  7978. "content": {
  7979. "application/json": {
  7980. "schema": {
  7981. "type": "object",
  7982. "required": [
  7983. "ocs"
  7984. ],
  7985. "properties": {
  7986. "ocs": {
  7987. "type": "object",
  7988. "required": [
  7989. "meta",
  7990. "data"
  7991. ],
  7992. "properties": {
  7993. "meta": {
  7994. "$ref": "#/components/schemas/OCSMeta"
  7995. },
  7996. "data": {
  7997. "type": "object",
  7998. "required": [
  7999. "message"
  8000. ],
  8001. "properties": {
  8002. "message": {
  8003. "type": "string"
  8004. }
  8005. }
  8006. }
  8007. }
  8008. }
  8009. }
  8010. }
  8011. }
  8012. }
  8013. },
  8014. "500": {
  8015. "description": "",
  8016. "content": {
  8017. "application/json": {
  8018. "schema": {
  8019. "type": "object",
  8020. "required": [
  8021. "ocs"
  8022. ],
  8023. "properties": {
  8024. "ocs": {
  8025. "type": "object",
  8026. "required": [
  8027. "meta",
  8028. "data"
  8029. ],
  8030. "properties": {
  8031. "meta": {
  8032. "$ref": "#/components/schemas/OCSMeta"
  8033. },
  8034. "data": {
  8035. "type": "object",
  8036. "required": [
  8037. "message"
  8038. ],
  8039. "properties": {
  8040. "message": {
  8041. "type": "string"
  8042. }
  8043. }
  8044. }
  8045. }
  8046. }
  8047. }
  8048. }
  8049. }
  8050. }
  8051. },
  8052. "401": {
  8053. "description": "Current user is not logged in",
  8054. "content": {
  8055. "application/json": {
  8056. "schema": {
  8057. "type": "object",
  8058. "required": [
  8059. "ocs"
  8060. ],
  8061. "properties": {
  8062. "ocs": {
  8063. "type": "object",
  8064. "required": [
  8065. "meta",
  8066. "data"
  8067. ],
  8068. "properties": {
  8069. "meta": {
  8070. "$ref": "#/components/schemas/OCSMeta"
  8071. },
  8072. "data": {}
  8073. }
  8074. }
  8075. }
  8076. }
  8077. }
  8078. }
  8079. }
  8080. }
  8081. }
  8082. },
  8083. "/ocs/v2.php/text2image/tasks/app/{appId}": {
  8084. "get": {
  8085. "operationId": "text_to_image_api-list-tasks-by-app",
  8086. "summary": "This endpoint returns a list of tasks of a user that are related with a specific appId and optionally with an identifier",
  8087. "tags": [
  8088. "text_to_image_api"
  8089. ],
  8090. "security": [
  8091. {
  8092. "bearer_auth": []
  8093. },
  8094. {
  8095. "basic_auth": []
  8096. }
  8097. ],
  8098. "parameters": [
  8099. {
  8100. "name": "appId",
  8101. "in": "path",
  8102. "description": "ID of the app",
  8103. "required": true,
  8104. "schema": {
  8105. "type": "string"
  8106. }
  8107. },
  8108. {
  8109. "name": "identifier",
  8110. "in": "query",
  8111. "description": "An arbitrary identifier for the task",
  8112. "schema": {
  8113. "type": "string",
  8114. "nullable": true,
  8115. "default": null
  8116. }
  8117. },
  8118. {
  8119. "name": "OCS-APIRequest",
  8120. "in": "header",
  8121. "description": "Required to be true for the API request to pass",
  8122. "required": true,
  8123. "schema": {
  8124. "type": "boolean",
  8125. "default": true
  8126. }
  8127. }
  8128. ],
  8129. "responses": {
  8130. "200": {
  8131. "description": "Task list returned",
  8132. "content": {
  8133. "application/json": {
  8134. "schema": {
  8135. "type": "object",
  8136. "required": [
  8137. "ocs"
  8138. ],
  8139. "properties": {
  8140. "ocs": {
  8141. "type": "object",
  8142. "required": [
  8143. "meta",
  8144. "data"
  8145. ],
  8146. "properties": {
  8147. "meta": {
  8148. "$ref": "#/components/schemas/OCSMeta"
  8149. },
  8150. "data": {
  8151. "type": "object",
  8152. "required": [
  8153. "tasks"
  8154. ],
  8155. "properties": {
  8156. "tasks": {
  8157. "type": "array",
  8158. "items": {
  8159. "$ref": "#/components/schemas/TextToImageTask"
  8160. }
  8161. }
  8162. }
  8163. }
  8164. }
  8165. }
  8166. }
  8167. }
  8168. }
  8169. }
  8170. },
  8171. "500": {
  8172. "description": "",
  8173. "content": {
  8174. "application/json": {
  8175. "schema": {
  8176. "type": "object",
  8177. "required": [
  8178. "ocs"
  8179. ],
  8180. "properties": {
  8181. "ocs": {
  8182. "type": "object",
  8183. "required": [
  8184. "meta",
  8185. "data"
  8186. ],
  8187. "properties": {
  8188. "meta": {
  8189. "$ref": "#/components/schemas/OCSMeta"
  8190. },
  8191. "data": {
  8192. "type": "object",
  8193. "required": [
  8194. "message"
  8195. ],
  8196. "properties": {
  8197. "message": {
  8198. "type": "string"
  8199. }
  8200. }
  8201. }
  8202. }
  8203. }
  8204. }
  8205. }
  8206. }
  8207. }
  8208. },
  8209. "401": {
  8210. "description": "Current user is not logged in",
  8211. "content": {
  8212. "application/json": {
  8213. "schema": {
  8214. "type": "object",
  8215. "required": [
  8216. "ocs"
  8217. ],
  8218. "properties": {
  8219. "ocs": {
  8220. "type": "object",
  8221. "required": [
  8222. "meta",
  8223. "data"
  8224. ],
  8225. "properties": {
  8226. "meta": {
  8227. "$ref": "#/components/schemas/OCSMeta"
  8228. },
  8229. "data": {}
  8230. }
  8231. }
  8232. }
  8233. }
  8234. }
  8235. }
  8236. }
  8237. }
  8238. }
  8239. },
  8240. "/ocs/v2.php/translation/languages": {
  8241. "get": {
  8242. "operationId": "translation_api-languages",
  8243. "summary": "Get the list of supported languages",
  8244. "tags": [
  8245. "translation_api"
  8246. ],
  8247. "security": [
  8248. {},
  8249. {
  8250. "bearer_auth": []
  8251. },
  8252. {
  8253. "basic_auth": []
  8254. }
  8255. ],
  8256. "parameters": [
  8257. {
  8258. "name": "OCS-APIRequest",
  8259. "in": "header",
  8260. "description": "Required to be true for the API request to pass",
  8261. "required": true,
  8262. "schema": {
  8263. "type": "boolean",
  8264. "default": true
  8265. }
  8266. }
  8267. ],
  8268. "responses": {
  8269. "200": {
  8270. "description": "Supported languages returned",
  8271. "content": {
  8272. "application/json": {
  8273. "schema": {
  8274. "type": "object",
  8275. "required": [
  8276. "ocs"
  8277. ],
  8278. "properties": {
  8279. "ocs": {
  8280. "type": "object",
  8281. "required": [
  8282. "meta",
  8283. "data"
  8284. ],
  8285. "properties": {
  8286. "meta": {
  8287. "$ref": "#/components/schemas/OCSMeta"
  8288. },
  8289. "data": {
  8290. "type": "object",
  8291. "required": [
  8292. "languages",
  8293. "languageDetection"
  8294. ],
  8295. "properties": {
  8296. "languages": {
  8297. "type": "array",
  8298. "items": {
  8299. "type": "object",
  8300. "required": [
  8301. "from",
  8302. "fromLabel",
  8303. "to",
  8304. "toLabel"
  8305. ],
  8306. "properties": {
  8307. "from": {
  8308. "type": "string"
  8309. },
  8310. "fromLabel": {
  8311. "type": "string"
  8312. },
  8313. "to": {
  8314. "type": "string"
  8315. },
  8316. "toLabel": {
  8317. "type": "string"
  8318. }
  8319. }
  8320. }
  8321. },
  8322. "languageDetection": {
  8323. "type": "boolean"
  8324. }
  8325. }
  8326. }
  8327. }
  8328. }
  8329. }
  8330. }
  8331. }
  8332. }
  8333. }
  8334. }
  8335. }
  8336. },
  8337. "/ocs/v2.php/translation/translate": {
  8338. "post": {
  8339. "operationId": "translation_api-translate",
  8340. "summary": "Translate a text",
  8341. "tags": [
  8342. "translation_api"
  8343. ],
  8344. "security": [
  8345. {},
  8346. {
  8347. "bearer_auth": []
  8348. },
  8349. {
  8350. "basic_auth": []
  8351. }
  8352. ],
  8353. "requestBody": {
  8354. "required": true,
  8355. "content": {
  8356. "application/json": {
  8357. "schema": {
  8358. "type": "object",
  8359. "required": [
  8360. "text",
  8361. "toLanguage"
  8362. ],
  8363. "properties": {
  8364. "text": {
  8365. "type": "string",
  8366. "description": "Text to be translated"
  8367. },
  8368. "fromLanguage": {
  8369. "type": "string",
  8370. "nullable": true,
  8371. "description": "Language to translate from"
  8372. },
  8373. "toLanguage": {
  8374. "type": "string",
  8375. "description": "Language to translate to"
  8376. }
  8377. }
  8378. }
  8379. }
  8380. }
  8381. },
  8382. "parameters": [
  8383. {
  8384. "name": "OCS-APIRequest",
  8385. "in": "header",
  8386. "description": "Required to be true for the API request to pass",
  8387. "required": true,
  8388. "schema": {
  8389. "type": "boolean",
  8390. "default": true
  8391. }
  8392. }
  8393. ],
  8394. "responses": {
  8395. "200": {
  8396. "description": "Translated text returned",
  8397. "content": {
  8398. "application/json": {
  8399. "schema": {
  8400. "type": "object",
  8401. "required": [
  8402. "ocs"
  8403. ],
  8404. "properties": {
  8405. "ocs": {
  8406. "type": "object",
  8407. "required": [
  8408. "meta",
  8409. "data"
  8410. ],
  8411. "properties": {
  8412. "meta": {
  8413. "$ref": "#/components/schemas/OCSMeta"
  8414. },
  8415. "data": {
  8416. "type": "object",
  8417. "required": [
  8418. "text",
  8419. "from"
  8420. ],
  8421. "properties": {
  8422. "text": {
  8423. "type": "string"
  8424. },
  8425. "from": {
  8426. "type": "string",
  8427. "nullable": true
  8428. }
  8429. }
  8430. }
  8431. }
  8432. }
  8433. }
  8434. }
  8435. }
  8436. }
  8437. },
  8438. "400": {
  8439. "description": "Language not detected or unable to translate",
  8440. "content": {
  8441. "application/json": {
  8442. "schema": {
  8443. "type": "object",
  8444. "required": [
  8445. "ocs"
  8446. ],
  8447. "properties": {
  8448. "ocs": {
  8449. "type": "object",
  8450. "required": [
  8451. "meta",
  8452. "data"
  8453. ],
  8454. "properties": {
  8455. "meta": {
  8456. "$ref": "#/components/schemas/OCSMeta"
  8457. },
  8458. "data": {
  8459. "type": "object",
  8460. "required": [
  8461. "message"
  8462. ],
  8463. "properties": {
  8464. "message": {
  8465. "type": "string"
  8466. },
  8467. "from": {
  8468. "type": "string",
  8469. "nullable": true
  8470. }
  8471. }
  8472. }
  8473. }
  8474. }
  8475. }
  8476. }
  8477. }
  8478. }
  8479. },
  8480. "412": {
  8481. "description": "Translating is not possible",
  8482. "content": {
  8483. "application/json": {
  8484. "schema": {
  8485. "type": "object",
  8486. "required": [
  8487. "ocs"
  8488. ],
  8489. "properties": {
  8490. "ocs": {
  8491. "type": "object",
  8492. "required": [
  8493. "meta",
  8494. "data"
  8495. ],
  8496. "properties": {
  8497. "meta": {
  8498. "$ref": "#/components/schemas/OCSMeta"
  8499. },
  8500. "data": {
  8501. "type": "object",
  8502. "required": [
  8503. "message"
  8504. ],
  8505. "properties": {
  8506. "message": {
  8507. "type": "string"
  8508. },
  8509. "from": {
  8510. "type": "string",
  8511. "nullable": true
  8512. }
  8513. }
  8514. }
  8515. }
  8516. }
  8517. }
  8518. }
  8519. }
  8520. }
  8521. },
  8522. "500": {
  8523. "description": "",
  8524. "content": {
  8525. "application/json": {
  8526. "schema": {
  8527. "type": "object",
  8528. "required": [
  8529. "ocs"
  8530. ],
  8531. "properties": {
  8532. "ocs": {
  8533. "type": "object",
  8534. "required": [
  8535. "meta",
  8536. "data"
  8537. ],
  8538. "properties": {
  8539. "meta": {
  8540. "$ref": "#/components/schemas/OCSMeta"
  8541. },
  8542. "data": {
  8543. "type": "object",
  8544. "required": [
  8545. "message"
  8546. ],
  8547. "properties": {
  8548. "message": {
  8549. "type": "string"
  8550. },
  8551. "from": {
  8552. "type": "string",
  8553. "nullable": true
  8554. }
  8555. }
  8556. }
  8557. }
  8558. }
  8559. }
  8560. }
  8561. }
  8562. }
  8563. }
  8564. }
  8565. }
  8566. },
  8567. "/ocs/v2.php/search/providers": {
  8568. "get": {
  8569. "operationId": "unified_search-get-providers",
  8570. "summary": "Get the providers for unified search",
  8571. "tags": [
  8572. "unified_search"
  8573. ],
  8574. "security": [
  8575. {
  8576. "bearer_auth": []
  8577. },
  8578. {
  8579. "basic_auth": []
  8580. }
  8581. ],
  8582. "parameters": [
  8583. {
  8584. "name": "from",
  8585. "in": "query",
  8586. "description": "the url the user is currently at",
  8587. "schema": {
  8588. "type": "string",
  8589. "default": ""
  8590. }
  8591. },
  8592. {
  8593. "name": "OCS-APIRequest",
  8594. "in": "header",
  8595. "description": "Required to be true for the API request to pass",
  8596. "required": true,
  8597. "schema": {
  8598. "type": "boolean",
  8599. "default": true
  8600. }
  8601. }
  8602. ],
  8603. "responses": {
  8604. "200": {
  8605. "description": "Providers returned",
  8606. "content": {
  8607. "application/json": {
  8608. "schema": {
  8609. "type": "object",
  8610. "required": [
  8611. "ocs"
  8612. ],
  8613. "properties": {
  8614. "ocs": {
  8615. "type": "object",
  8616. "required": [
  8617. "meta",
  8618. "data"
  8619. ],
  8620. "properties": {
  8621. "meta": {
  8622. "$ref": "#/components/schemas/OCSMeta"
  8623. },
  8624. "data": {
  8625. "type": "array",
  8626. "items": {
  8627. "$ref": "#/components/schemas/UnifiedSearchProvider"
  8628. }
  8629. }
  8630. }
  8631. }
  8632. }
  8633. }
  8634. }
  8635. }
  8636. },
  8637. "401": {
  8638. "description": "Current user is not logged in",
  8639. "content": {
  8640. "application/json": {
  8641. "schema": {
  8642. "type": "object",
  8643. "required": [
  8644. "ocs"
  8645. ],
  8646. "properties": {
  8647. "ocs": {
  8648. "type": "object",
  8649. "required": [
  8650. "meta",
  8651. "data"
  8652. ],
  8653. "properties": {
  8654. "meta": {
  8655. "$ref": "#/components/schemas/OCSMeta"
  8656. },
  8657. "data": {}
  8658. }
  8659. }
  8660. }
  8661. }
  8662. }
  8663. }
  8664. }
  8665. }
  8666. }
  8667. },
  8668. "/ocs/v2.php/search/providers/{providerId}/search": {
  8669. "get": {
  8670. "operationId": "unified_search-search",
  8671. "summary": "Launch a search for a specific search provider.",
  8672. "description": "Additional filters are available for each provider. Send a request to /providers endpoint to list providers with their available filters.",
  8673. "tags": [
  8674. "unified_search"
  8675. ],
  8676. "security": [
  8677. {
  8678. "bearer_auth": []
  8679. },
  8680. {
  8681. "basic_auth": []
  8682. }
  8683. ],
  8684. "parameters": [
  8685. {
  8686. "name": "providerId",
  8687. "in": "path",
  8688. "description": "ID of the provider",
  8689. "required": true,
  8690. "schema": {
  8691. "type": "string"
  8692. }
  8693. },
  8694. {
  8695. "name": "term",
  8696. "in": "query",
  8697. "description": "Term to search",
  8698. "schema": {
  8699. "type": "string",
  8700. "default": ""
  8701. }
  8702. },
  8703. {
  8704. "name": "sortOrder",
  8705. "in": "query",
  8706. "description": "Order of entries",
  8707. "schema": {
  8708. "type": "integer",
  8709. "format": "int64",
  8710. "nullable": true,
  8711. "default": null
  8712. }
  8713. },
  8714. {
  8715. "name": "limit",
  8716. "in": "query",
  8717. "description": "Maximum amount of entries (capped by configurable unified-search.max-results-per-request, default: 25)",
  8718. "schema": {
  8719. "type": "integer",
  8720. "format": "int64",
  8721. "nullable": true,
  8722. "default": null
  8723. }
  8724. },
  8725. {
  8726. "name": "cursor",
  8727. "in": "query",
  8728. "description": "Offset for searching",
  8729. "schema": {
  8730. "nullable": true,
  8731. "default": null,
  8732. "oneOf": [
  8733. {
  8734. "type": "integer",
  8735. "format": "int64"
  8736. },
  8737. {
  8738. "type": "string"
  8739. }
  8740. ]
  8741. }
  8742. },
  8743. {
  8744. "name": "from",
  8745. "in": "query",
  8746. "description": "The current user URL",
  8747. "schema": {
  8748. "type": "string",
  8749. "default": ""
  8750. }
  8751. },
  8752. {
  8753. "name": "OCS-APIRequest",
  8754. "in": "header",
  8755. "description": "Required to be true for the API request to pass",
  8756. "required": true,
  8757. "schema": {
  8758. "type": "boolean",
  8759. "default": true
  8760. }
  8761. }
  8762. ],
  8763. "responses": {
  8764. "200": {
  8765. "description": "Search entries returned",
  8766. "content": {
  8767. "application/json": {
  8768. "schema": {
  8769. "type": "object",
  8770. "required": [
  8771. "ocs"
  8772. ],
  8773. "properties": {
  8774. "ocs": {
  8775. "type": "object",
  8776. "required": [
  8777. "meta",
  8778. "data"
  8779. ],
  8780. "properties": {
  8781. "meta": {
  8782. "$ref": "#/components/schemas/OCSMeta"
  8783. },
  8784. "data": {
  8785. "$ref": "#/components/schemas/UnifiedSearchResult"
  8786. }
  8787. }
  8788. }
  8789. }
  8790. }
  8791. }
  8792. }
  8793. },
  8794. "400": {
  8795. "description": "Searching is not possible",
  8796. "content": {
  8797. "application/json": {
  8798. "schema": {
  8799. "type": "object",
  8800. "required": [
  8801. "ocs"
  8802. ],
  8803. "properties": {
  8804. "ocs": {
  8805. "type": "object",
  8806. "required": [
  8807. "meta",
  8808. "data"
  8809. ],
  8810. "properties": {
  8811. "meta": {
  8812. "$ref": "#/components/schemas/OCSMeta"
  8813. },
  8814. "data": {
  8815. "type": "string"
  8816. }
  8817. }
  8818. }
  8819. }
  8820. }
  8821. }
  8822. }
  8823. },
  8824. "401": {
  8825. "description": "Current user is not logged in",
  8826. "content": {
  8827. "application/json": {
  8828. "schema": {
  8829. "type": "object",
  8830. "required": [
  8831. "ocs"
  8832. ],
  8833. "properties": {
  8834. "ocs": {
  8835. "type": "object",
  8836. "required": [
  8837. "meta",
  8838. "data"
  8839. ],
  8840. "properties": {
  8841. "meta": {
  8842. "$ref": "#/components/schemas/OCSMeta"
  8843. },
  8844. "data": {}
  8845. }
  8846. }
  8847. }
  8848. }
  8849. }
  8850. }
  8851. }
  8852. }
  8853. }
  8854. },
  8855. "/ocs/v2.php/core/whatsnew": {
  8856. "get": {
  8857. "operationId": "whats_new-get",
  8858. "summary": "Get the changes",
  8859. "tags": [
  8860. "whats_new"
  8861. ],
  8862. "security": [
  8863. {
  8864. "bearer_auth": []
  8865. },
  8866. {
  8867. "basic_auth": []
  8868. }
  8869. ],
  8870. "parameters": [
  8871. {
  8872. "name": "OCS-APIRequest",
  8873. "in": "header",
  8874. "description": "Required to be true for the API request to pass",
  8875. "required": true,
  8876. "schema": {
  8877. "type": "boolean",
  8878. "default": true
  8879. }
  8880. }
  8881. ],
  8882. "responses": {
  8883. "200": {
  8884. "description": "Changes returned",
  8885. "content": {
  8886. "application/json": {
  8887. "schema": {
  8888. "type": "object",
  8889. "required": [
  8890. "ocs"
  8891. ],
  8892. "properties": {
  8893. "ocs": {
  8894. "type": "object",
  8895. "required": [
  8896. "meta",
  8897. "data"
  8898. ],
  8899. "properties": {
  8900. "meta": {
  8901. "$ref": "#/components/schemas/OCSMeta"
  8902. },
  8903. "data": {
  8904. "type": "object",
  8905. "required": [
  8906. "changelogURL",
  8907. "product",
  8908. "version"
  8909. ],
  8910. "properties": {
  8911. "changelogURL": {
  8912. "type": "string"
  8913. },
  8914. "product": {
  8915. "type": "string"
  8916. },
  8917. "version": {
  8918. "type": "string"
  8919. },
  8920. "whatsNew": {
  8921. "type": "object",
  8922. "required": [
  8923. "regular",
  8924. "admin"
  8925. ],
  8926. "properties": {
  8927. "regular": {
  8928. "type": "array",
  8929. "items": {
  8930. "type": "string"
  8931. }
  8932. },
  8933. "admin": {
  8934. "type": "array",
  8935. "items": {
  8936. "type": "string"
  8937. }
  8938. }
  8939. }
  8940. }
  8941. }
  8942. }
  8943. }
  8944. }
  8945. }
  8946. }
  8947. }
  8948. }
  8949. },
  8950. "204": {
  8951. "description": "No changes"
  8952. },
  8953. "401": {
  8954. "description": "Current user is not logged in",
  8955. "content": {
  8956. "application/json": {
  8957. "schema": {
  8958. "type": "object",
  8959. "required": [
  8960. "ocs"
  8961. ],
  8962. "properties": {
  8963. "ocs": {
  8964. "type": "object",
  8965. "required": [
  8966. "meta",
  8967. "data"
  8968. ],
  8969. "properties": {
  8970. "meta": {
  8971. "$ref": "#/components/schemas/OCSMeta"
  8972. },
  8973. "data": {}
  8974. }
  8975. }
  8976. }
  8977. }
  8978. }
  8979. }
  8980. }
  8981. }
  8982. },
  8983. "post": {
  8984. "operationId": "whats_new-dismiss",
  8985. "summary": "Dismiss the changes",
  8986. "tags": [
  8987. "whats_new"
  8988. ],
  8989. "security": [
  8990. {
  8991. "bearer_auth": []
  8992. },
  8993. {
  8994. "basic_auth": []
  8995. }
  8996. ],
  8997. "requestBody": {
  8998. "required": true,
  8999. "content": {
  9000. "application/json": {
  9001. "schema": {
  9002. "type": "object",
  9003. "required": [
  9004. "version"
  9005. ],
  9006. "properties": {
  9007. "version": {
  9008. "type": "string",
  9009. "description": "Version to dismiss the changes for"
  9010. }
  9011. }
  9012. }
  9013. }
  9014. }
  9015. },
  9016. "parameters": [
  9017. {
  9018. "name": "OCS-APIRequest",
  9019. "in": "header",
  9020. "description": "Required to be true for the API request to pass",
  9021. "required": true,
  9022. "schema": {
  9023. "type": "boolean",
  9024. "default": true
  9025. }
  9026. }
  9027. ],
  9028. "responses": {
  9029. "200": {
  9030. "description": "Changes dismissed",
  9031. "content": {
  9032. "application/json": {
  9033. "schema": {
  9034. "type": "object",
  9035. "required": [
  9036. "ocs"
  9037. ],
  9038. "properties": {
  9039. "ocs": {
  9040. "type": "object",
  9041. "required": [
  9042. "meta",
  9043. "data"
  9044. ],
  9045. "properties": {
  9046. "meta": {
  9047. "$ref": "#/components/schemas/OCSMeta"
  9048. },
  9049. "data": {}
  9050. }
  9051. }
  9052. }
  9053. }
  9054. }
  9055. }
  9056. },
  9057. "500": {
  9058. "description": "",
  9059. "content": {
  9060. "text/plain": {
  9061. "schema": {
  9062. "type": "string"
  9063. }
  9064. }
  9065. }
  9066. },
  9067. "401": {
  9068. "description": "Current user is not logged in",
  9069. "content": {
  9070. "application/json": {
  9071. "schema": {
  9072. "type": "object",
  9073. "required": [
  9074. "ocs"
  9075. ],
  9076. "properties": {
  9077. "ocs": {
  9078. "type": "object",
  9079. "required": [
  9080. "meta",
  9081. "data"
  9082. ],
  9083. "properties": {
  9084. "meta": {
  9085. "$ref": "#/components/schemas/OCSMeta"
  9086. },
  9087. "data": {}
  9088. }
  9089. }
  9090. }
  9091. }
  9092. }
  9093. }
  9094. }
  9095. }
  9096. }
  9097. },
  9098. "/index.php/avatar/{userId}/{size}/dark": {
  9099. "get": {
  9100. "operationId": "avatar-get-avatar-dark",
  9101. "summary": "Get the dark avatar",
  9102. "tags": [
  9103. "avatar"
  9104. ],
  9105. "security": [
  9106. {},
  9107. {
  9108. "bearer_auth": []
  9109. },
  9110. {
  9111. "basic_auth": []
  9112. }
  9113. ],
  9114. "parameters": [
  9115. {
  9116. "name": "userId",
  9117. "in": "path",
  9118. "description": "ID of the user",
  9119. "required": true,
  9120. "schema": {
  9121. "type": "string"
  9122. }
  9123. },
  9124. {
  9125. "name": "size",
  9126. "in": "path",
  9127. "description": "Size of the avatar",
  9128. "required": true,
  9129. "schema": {
  9130. "type": "integer",
  9131. "format": "int64",
  9132. "enum": [
  9133. 64,
  9134. 512
  9135. ]
  9136. }
  9137. },
  9138. {
  9139. "name": "guestFallback",
  9140. "in": "query",
  9141. "description": "Fallback to guest avatar if not found",
  9142. "schema": {
  9143. "type": "boolean",
  9144. "default": false
  9145. }
  9146. }
  9147. ],
  9148. "responses": {
  9149. "200": {
  9150. "description": "Avatar returned",
  9151. "headers": {
  9152. "X-NC-IsCustomAvatar": {
  9153. "schema": {
  9154. "type": "integer",
  9155. "format": "int64"
  9156. }
  9157. }
  9158. },
  9159. "content": {
  9160. "*/*": {
  9161. "schema": {
  9162. "type": "string",
  9163. "format": "binary"
  9164. }
  9165. }
  9166. }
  9167. },
  9168. "201": {
  9169. "description": "Avatar returned",
  9170. "headers": {
  9171. "X-NC-IsCustomAvatar": {
  9172. "schema": {
  9173. "type": "integer",
  9174. "format": "int64"
  9175. }
  9176. }
  9177. },
  9178. "content": {
  9179. "*/*": {
  9180. "schema": {
  9181. "type": "string",
  9182. "format": "binary"
  9183. }
  9184. }
  9185. }
  9186. },
  9187. "404": {
  9188. "description": "Avatar not found",
  9189. "content": {
  9190. "application/json": {
  9191. "schema": {}
  9192. }
  9193. }
  9194. },
  9195. "500": {
  9196. "description": ""
  9197. }
  9198. }
  9199. }
  9200. },
  9201. "/index.php/avatar/{userId}/{size}": {
  9202. "get": {
  9203. "operationId": "avatar-get-avatar",
  9204. "summary": "Get the avatar",
  9205. "tags": [
  9206. "avatar"
  9207. ],
  9208. "security": [
  9209. {},
  9210. {
  9211. "bearer_auth": []
  9212. },
  9213. {
  9214. "basic_auth": []
  9215. }
  9216. ],
  9217. "parameters": [
  9218. {
  9219. "name": "userId",
  9220. "in": "path",
  9221. "description": "ID of the user",
  9222. "required": true,
  9223. "schema": {
  9224. "type": "string"
  9225. }
  9226. },
  9227. {
  9228. "name": "size",
  9229. "in": "path",
  9230. "description": "Size of the avatar",
  9231. "required": true,
  9232. "schema": {
  9233. "type": "integer",
  9234. "format": "int64",
  9235. "enum": [
  9236. 64,
  9237. 512
  9238. ]
  9239. }
  9240. },
  9241. {
  9242. "name": "guestFallback",
  9243. "in": "query",
  9244. "description": "Fallback to guest avatar if not found",
  9245. "schema": {
  9246. "type": "boolean",
  9247. "default": false
  9248. }
  9249. }
  9250. ],
  9251. "responses": {
  9252. "200": {
  9253. "description": "Avatar returned",
  9254. "headers": {
  9255. "X-NC-IsCustomAvatar": {
  9256. "schema": {
  9257. "type": "integer",
  9258. "format": "int64"
  9259. }
  9260. }
  9261. },
  9262. "content": {
  9263. "*/*": {
  9264. "schema": {
  9265. "type": "string",
  9266. "format": "binary"
  9267. }
  9268. }
  9269. }
  9270. },
  9271. "201": {
  9272. "description": "Avatar returned",
  9273. "headers": {
  9274. "X-NC-IsCustomAvatar": {
  9275. "schema": {
  9276. "type": "integer",
  9277. "format": "int64"
  9278. }
  9279. }
  9280. },
  9281. "content": {
  9282. "*/*": {
  9283. "schema": {
  9284. "type": "string",
  9285. "format": "binary"
  9286. }
  9287. }
  9288. }
  9289. },
  9290. "404": {
  9291. "description": "Avatar not found",
  9292. "content": {
  9293. "application/json": {
  9294. "schema": {}
  9295. }
  9296. }
  9297. },
  9298. "500": {
  9299. "description": ""
  9300. }
  9301. }
  9302. }
  9303. },
  9304. "/index.php/csrftoken": {
  9305. "get": {
  9306. "operationId": "csrf_token-index",
  9307. "summary": "Returns a new CSRF token.",
  9308. "tags": [
  9309. "csrf_token"
  9310. ],
  9311. "security": [
  9312. {},
  9313. {
  9314. "bearer_auth": []
  9315. },
  9316. {
  9317. "basic_auth": []
  9318. }
  9319. ],
  9320. "responses": {
  9321. "200": {
  9322. "description": "CSRF token returned",
  9323. "content": {
  9324. "application/json": {
  9325. "schema": {
  9326. "type": "object",
  9327. "required": [
  9328. "token"
  9329. ],
  9330. "properties": {
  9331. "token": {
  9332. "type": "string"
  9333. }
  9334. }
  9335. }
  9336. }
  9337. }
  9338. },
  9339. "403": {
  9340. "description": "Strict cookie check failed",
  9341. "content": {
  9342. "application/json": {
  9343. "schema": {}
  9344. }
  9345. }
  9346. }
  9347. }
  9348. }
  9349. },
  9350. "/index.php/login/v2/poll": {
  9351. "post": {
  9352. "operationId": "client_flow_login_v2-poll",
  9353. "summary": "Poll the login flow credentials",
  9354. "tags": [
  9355. "client_flow_login_v2"
  9356. ],
  9357. "security": [
  9358. {},
  9359. {
  9360. "bearer_auth": []
  9361. },
  9362. {
  9363. "basic_auth": []
  9364. }
  9365. ],
  9366. "requestBody": {
  9367. "required": true,
  9368. "content": {
  9369. "application/json": {
  9370. "schema": {
  9371. "type": "object",
  9372. "required": [
  9373. "token"
  9374. ],
  9375. "properties": {
  9376. "token": {
  9377. "type": "string",
  9378. "description": "Token of the flow"
  9379. }
  9380. }
  9381. }
  9382. }
  9383. }
  9384. },
  9385. "responses": {
  9386. "200": {
  9387. "description": "Login flow credentials returned",
  9388. "content": {
  9389. "application/json": {
  9390. "schema": {
  9391. "$ref": "#/components/schemas/LoginFlowV2Credentials"
  9392. }
  9393. }
  9394. }
  9395. },
  9396. "404": {
  9397. "description": "Login flow not found or completed",
  9398. "content": {
  9399. "application/json": {
  9400. "schema": {}
  9401. }
  9402. }
  9403. }
  9404. }
  9405. }
  9406. },
  9407. "/index.php/login/v2": {
  9408. "post": {
  9409. "operationId": "client_flow_login_v2-init",
  9410. "summary": "Init a login flow",
  9411. "tags": [
  9412. "client_flow_login_v2"
  9413. ],
  9414. "security": [
  9415. {},
  9416. {
  9417. "bearer_auth": []
  9418. },
  9419. {
  9420. "basic_auth": []
  9421. }
  9422. ],
  9423. "parameters": [
  9424. {
  9425. "name": "user-agent",
  9426. "in": "header",
  9427. "schema": {
  9428. "type": "string"
  9429. }
  9430. }
  9431. ],
  9432. "responses": {
  9433. "200": {
  9434. "description": "Login flow init returned",
  9435. "content": {
  9436. "application/json": {
  9437. "schema": {
  9438. "$ref": "#/components/schemas/LoginFlowV2"
  9439. }
  9440. }
  9441. }
  9442. }
  9443. }
  9444. }
  9445. },
  9446. "/index.php/avatar/guest/{guestName}/{size}": {
  9447. "get": {
  9448. "operationId": "guest_avatar-get-avatar",
  9449. "summary": "Returns a guest avatar image response",
  9450. "tags": [
  9451. "guest_avatar"
  9452. ],
  9453. "security": [
  9454. {},
  9455. {
  9456. "bearer_auth": []
  9457. },
  9458. {
  9459. "basic_auth": []
  9460. }
  9461. ],
  9462. "parameters": [
  9463. {
  9464. "name": "guestName",
  9465. "in": "path",
  9466. "description": "The guest name, e.g. \"Albert\"",
  9467. "required": true,
  9468. "schema": {
  9469. "type": "string"
  9470. }
  9471. },
  9472. {
  9473. "name": "size",
  9474. "in": "path",
  9475. "description": "The desired avatar size, e.g. 64 for 64x64px",
  9476. "required": true,
  9477. "schema": {
  9478. "type": "integer",
  9479. "format": "int64",
  9480. "enum": [
  9481. 64,
  9482. 512
  9483. ]
  9484. }
  9485. },
  9486. {
  9487. "name": "darkTheme",
  9488. "in": "query",
  9489. "description": "Return dark avatar",
  9490. "schema": {
  9491. "type": "boolean",
  9492. "nullable": true,
  9493. "default": false
  9494. }
  9495. }
  9496. ],
  9497. "responses": {
  9498. "200": {
  9499. "description": "Custom avatar returned",
  9500. "headers": {
  9501. "X-NC-IsCustomAvatar": {
  9502. "schema": {
  9503. "type": "integer",
  9504. "format": "int64"
  9505. }
  9506. }
  9507. },
  9508. "content": {
  9509. "*/*": {
  9510. "schema": {
  9511. "type": "string",
  9512. "format": "binary"
  9513. }
  9514. }
  9515. }
  9516. },
  9517. "201": {
  9518. "description": "Avatar returned",
  9519. "headers": {
  9520. "X-NC-IsCustomAvatar": {
  9521. "schema": {
  9522. "type": "integer",
  9523. "format": "int64"
  9524. }
  9525. }
  9526. },
  9527. "content": {
  9528. "*/*": {
  9529. "schema": {
  9530. "type": "string",
  9531. "format": "binary"
  9532. }
  9533. }
  9534. }
  9535. },
  9536. "500": {
  9537. "description": ""
  9538. }
  9539. }
  9540. }
  9541. },
  9542. "/index.php/avatar/guest/{guestName}/{size}/dark": {
  9543. "get": {
  9544. "operationId": "guest_avatar-get-avatar-dark",
  9545. "summary": "Returns a dark guest avatar image response",
  9546. "tags": [
  9547. "guest_avatar"
  9548. ],
  9549. "security": [
  9550. {},
  9551. {
  9552. "bearer_auth": []
  9553. },
  9554. {
  9555. "basic_auth": []
  9556. }
  9557. ],
  9558. "parameters": [
  9559. {
  9560. "name": "guestName",
  9561. "in": "path",
  9562. "description": "The guest name, e.g. \"Albert\"",
  9563. "required": true,
  9564. "schema": {
  9565. "type": "string"
  9566. }
  9567. },
  9568. {
  9569. "name": "size",
  9570. "in": "path",
  9571. "description": "The desired avatar size, e.g. 64 for 64x64px",
  9572. "required": true,
  9573. "schema": {
  9574. "type": "integer",
  9575. "format": "int64",
  9576. "enum": [
  9577. 64,
  9578. 512
  9579. ]
  9580. }
  9581. }
  9582. ],
  9583. "responses": {
  9584. "200": {
  9585. "description": "Custom avatar returned",
  9586. "headers": {
  9587. "X-NC-IsCustomAvatar": {
  9588. "schema": {
  9589. "type": "integer",
  9590. "format": "int64"
  9591. }
  9592. }
  9593. },
  9594. "content": {
  9595. "*/*": {
  9596. "schema": {
  9597. "type": "string",
  9598. "format": "binary"
  9599. }
  9600. }
  9601. }
  9602. },
  9603. "201": {
  9604. "description": "Avatar returned",
  9605. "headers": {
  9606. "X-NC-IsCustomAvatar": {
  9607. "schema": {
  9608. "type": "integer",
  9609. "format": "int64"
  9610. }
  9611. }
  9612. },
  9613. "content": {
  9614. "*/*": {
  9615. "schema": {
  9616. "type": "string",
  9617. "format": "binary"
  9618. }
  9619. }
  9620. }
  9621. },
  9622. "500": {
  9623. "description": ""
  9624. }
  9625. }
  9626. }
  9627. },
  9628. "/index.php/login/confirm": {
  9629. "post": {
  9630. "operationId": "login-confirm-password",
  9631. "summary": "Confirm the user password",
  9632. "tags": [
  9633. "login"
  9634. ],
  9635. "security": [
  9636. {
  9637. "bearer_auth": []
  9638. },
  9639. {
  9640. "basic_auth": []
  9641. }
  9642. ],
  9643. "requestBody": {
  9644. "required": true,
  9645. "content": {
  9646. "application/json": {
  9647. "schema": {
  9648. "type": "object",
  9649. "required": [
  9650. "password"
  9651. ],
  9652. "properties": {
  9653. "password": {
  9654. "type": "string",
  9655. "description": "The password of the user"
  9656. }
  9657. }
  9658. }
  9659. }
  9660. }
  9661. },
  9662. "responses": {
  9663. "200": {
  9664. "description": "Password confirmation succeeded",
  9665. "content": {
  9666. "application/json": {
  9667. "schema": {
  9668. "type": "object",
  9669. "required": [
  9670. "lastLogin"
  9671. ],
  9672. "properties": {
  9673. "lastLogin": {
  9674. "type": "integer",
  9675. "format": "int64"
  9676. }
  9677. }
  9678. }
  9679. }
  9680. }
  9681. },
  9682. "403": {
  9683. "description": "Password confirmation failed",
  9684. "content": {
  9685. "application/json": {
  9686. "schema": {}
  9687. }
  9688. }
  9689. },
  9690. "401": {
  9691. "description": "Current user is not logged in",
  9692. "content": {
  9693. "application/json": {
  9694. "schema": {
  9695. "type": "object",
  9696. "required": [
  9697. "message"
  9698. ],
  9699. "properties": {
  9700. "message": {
  9701. "type": "string"
  9702. }
  9703. }
  9704. }
  9705. }
  9706. }
  9707. }
  9708. }
  9709. }
  9710. },
  9711. "/index.php/ocm-provider": {
  9712. "get": {
  9713. "operationId": "ocm-discovery",
  9714. "summary": "generate a OCMProvider with local data and send it as DataResponse. This replaces the old PHP file ocm-provider/index.php",
  9715. "tags": [
  9716. "ocm"
  9717. ],
  9718. "security": [
  9719. {},
  9720. {
  9721. "bearer_auth": []
  9722. },
  9723. {
  9724. "basic_auth": []
  9725. }
  9726. ],
  9727. "responses": {
  9728. "200": {
  9729. "description": "OCM Provider details returned",
  9730. "headers": {
  9731. "X-NEXTCLOUD-OCM-PROVIDERS": {
  9732. "schema": {
  9733. "type": "boolean",
  9734. "enum": [
  9735. true
  9736. ]
  9737. }
  9738. }
  9739. },
  9740. "content": {
  9741. "application/json": {
  9742. "schema": {
  9743. "type": "object",
  9744. "required": [
  9745. "enabled",
  9746. "apiVersion",
  9747. "endPoint",
  9748. "resourceTypes"
  9749. ],
  9750. "properties": {
  9751. "enabled": {
  9752. "type": "boolean"
  9753. },
  9754. "apiVersion": {
  9755. "type": "string"
  9756. },
  9757. "endPoint": {
  9758. "type": "string"
  9759. },
  9760. "resourceTypes": {
  9761. "type": "array",
  9762. "items": {
  9763. "type": "object",
  9764. "required": [
  9765. "name",
  9766. "shareTypes",
  9767. "protocols"
  9768. ],
  9769. "properties": {
  9770. "name": {
  9771. "type": "string"
  9772. },
  9773. "shareTypes": {
  9774. "type": "array",
  9775. "items": {
  9776. "type": "string"
  9777. }
  9778. },
  9779. "protocols": {
  9780. "type": "object",
  9781. "required": [
  9782. "webdav"
  9783. ],
  9784. "properties": {
  9785. "webdav": {
  9786. "type": "string"
  9787. }
  9788. }
  9789. }
  9790. }
  9791. }
  9792. }
  9793. }
  9794. }
  9795. }
  9796. }
  9797. },
  9798. "500": {
  9799. "description": "OCM not supported",
  9800. "content": {
  9801. "application/json": {
  9802. "schema": {
  9803. "type": "object",
  9804. "required": [
  9805. "message"
  9806. ],
  9807. "properties": {
  9808. "message": {
  9809. "type": "string"
  9810. }
  9811. }
  9812. }
  9813. }
  9814. }
  9815. }
  9816. }
  9817. }
  9818. },
  9819. "/index.php/core/preview.png": {
  9820. "get": {
  9821. "operationId": "preview-get-preview",
  9822. "summary": "Get a preview by file path",
  9823. "tags": [
  9824. "preview"
  9825. ],
  9826. "security": [
  9827. {
  9828. "bearer_auth": []
  9829. },
  9830. {
  9831. "basic_auth": []
  9832. }
  9833. ],
  9834. "parameters": [
  9835. {
  9836. "name": "file",
  9837. "in": "query",
  9838. "description": "Path of the file",
  9839. "schema": {
  9840. "type": "string",
  9841. "default": ""
  9842. }
  9843. },
  9844. {
  9845. "name": "x",
  9846. "in": "query",
  9847. "description": "Width of the preview. A width of -1 will use the original image width.",
  9848. "schema": {
  9849. "type": "integer",
  9850. "format": "int64",
  9851. "default": 32
  9852. }
  9853. },
  9854. {
  9855. "name": "y",
  9856. "in": "query",
  9857. "description": "Height of the preview. A height of -1 will use the original image height.",
  9858. "schema": {
  9859. "type": "integer",
  9860. "format": "int64",
  9861. "default": 32
  9862. }
  9863. },
  9864. {
  9865. "name": "a",
  9866. "in": "query",
  9867. "description": "Preserve the aspect ratio",
  9868. "schema": {
  9869. "type": "boolean",
  9870. "default": false
  9871. }
  9872. },
  9873. {
  9874. "name": "forceIcon",
  9875. "in": "query",
  9876. "description": "Force returning an icon",
  9877. "schema": {
  9878. "type": "boolean",
  9879. "default": true
  9880. }
  9881. },
  9882. {
  9883. "name": "mode",
  9884. "in": "query",
  9885. "description": "How to crop the image",
  9886. "schema": {
  9887. "type": "string",
  9888. "default": "fill",
  9889. "enum": [
  9890. "fill",
  9891. "cover"
  9892. ]
  9893. }
  9894. },
  9895. {
  9896. "name": "mimeFallback",
  9897. "in": "query",
  9898. "description": "Whether to fallback to the mime icon if no preview is available",
  9899. "schema": {
  9900. "type": "boolean",
  9901. "default": false
  9902. }
  9903. }
  9904. ],
  9905. "responses": {
  9906. "200": {
  9907. "description": "Preview returned",
  9908. "content": {
  9909. "*/*": {
  9910. "schema": {
  9911. "type": "string",
  9912. "format": "binary"
  9913. }
  9914. }
  9915. }
  9916. },
  9917. "400": {
  9918. "description": "Getting preview is not possible",
  9919. "content": {
  9920. "application/json": {
  9921. "schema": {}
  9922. }
  9923. }
  9924. },
  9925. "403": {
  9926. "description": "Getting preview is not allowed",
  9927. "content": {
  9928. "application/json": {
  9929. "schema": {}
  9930. }
  9931. }
  9932. },
  9933. "404": {
  9934. "description": "Preview not found",
  9935. "content": {
  9936. "application/json": {
  9937. "schema": {}
  9938. }
  9939. }
  9940. },
  9941. "303": {
  9942. "description": "Redirect to the mime icon url if mimeFallback is true",
  9943. "headers": {
  9944. "Location": {
  9945. "schema": {
  9946. "type": "string"
  9947. }
  9948. }
  9949. }
  9950. },
  9951. "401": {
  9952. "description": "Current user is not logged in",
  9953. "content": {
  9954. "application/json": {
  9955. "schema": {
  9956. "type": "object",
  9957. "required": [
  9958. "message"
  9959. ],
  9960. "properties": {
  9961. "message": {
  9962. "type": "string"
  9963. }
  9964. }
  9965. }
  9966. }
  9967. }
  9968. }
  9969. }
  9970. }
  9971. },
  9972. "/index.php/core/preview": {
  9973. "get": {
  9974. "operationId": "preview-get-preview-by-file-id",
  9975. "summary": "Get a preview by file ID",
  9976. "tags": [
  9977. "preview"
  9978. ],
  9979. "security": [
  9980. {
  9981. "bearer_auth": []
  9982. },
  9983. {
  9984. "basic_auth": []
  9985. }
  9986. ],
  9987. "parameters": [
  9988. {
  9989. "name": "fileId",
  9990. "in": "query",
  9991. "description": "ID of the file",
  9992. "schema": {
  9993. "type": "integer",
  9994. "format": "int64",
  9995. "default": -1
  9996. }
  9997. },
  9998. {
  9999. "name": "x",
  10000. "in": "query",
  10001. "description": "Width of the preview. A width of -1 will use the original image width.",
  10002. "schema": {
  10003. "type": "integer",
  10004. "format": "int64",
  10005. "default": 32
  10006. }
  10007. },
  10008. {
  10009. "name": "y",
  10010. "in": "query",
  10011. "description": "Height of the preview. A height of -1 will use the original image height.",
  10012. "schema": {
  10013. "type": "integer",
  10014. "format": "int64",
  10015. "default": 32
  10016. }
  10017. },
  10018. {
  10019. "name": "a",
  10020. "in": "query",
  10021. "description": "Preserve the aspect ratio",
  10022. "schema": {
  10023. "type": "boolean",
  10024. "default": false
  10025. }
  10026. },
  10027. {
  10028. "name": "forceIcon",
  10029. "in": "query",
  10030. "description": "Force returning an icon",
  10031. "schema": {
  10032. "type": "boolean",
  10033. "default": true
  10034. }
  10035. },
  10036. {
  10037. "name": "mode",
  10038. "in": "query",
  10039. "description": "How to crop the image",
  10040. "schema": {
  10041. "type": "string",
  10042. "default": "fill",
  10043. "enum": [
  10044. "fill",
  10045. "cover"
  10046. ]
  10047. }
  10048. },
  10049. {
  10050. "name": "mimeFallback",
  10051. "in": "query",
  10052. "description": "Whether to fallback to the mime icon if no preview is available",
  10053. "schema": {
  10054. "type": "boolean",
  10055. "default": false
  10056. }
  10057. }
  10058. ],
  10059. "responses": {
  10060. "200": {
  10061. "description": "Preview returned",
  10062. "content": {
  10063. "*/*": {
  10064. "schema": {
  10065. "type": "string",
  10066. "format": "binary"
  10067. }
  10068. }
  10069. }
  10070. },
  10071. "400": {
  10072. "description": "Getting preview is not possible",
  10073. "content": {
  10074. "application/json": {
  10075. "schema": {}
  10076. }
  10077. }
  10078. },
  10079. "403": {
  10080. "description": "Getting preview is not allowed",
  10081. "content": {
  10082. "application/json": {
  10083. "schema": {}
  10084. }
  10085. }
  10086. },
  10087. "404": {
  10088. "description": "Preview not found",
  10089. "content": {
  10090. "application/json": {
  10091. "schema": {}
  10092. }
  10093. }
  10094. },
  10095. "303": {
  10096. "description": "Redirect to the mime icon url if mimeFallback is true",
  10097. "headers": {
  10098. "Location": {
  10099. "schema": {
  10100. "type": "string"
  10101. }
  10102. }
  10103. }
  10104. },
  10105. "401": {
  10106. "description": "Current user is not logged in",
  10107. "content": {
  10108. "application/json": {
  10109. "schema": {
  10110. "type": "object",
  10111. "required": [
  10112. "message"
  10113. ],
  10114. "properties": {
  10115. "message": {
  10116. "type": "string"
  10117. }
  10118. }
  10119. }
  10120. }
  10121. }
  10122. }
  10123. }
  10124. }
  10125. },
  10126. "/index.php/core/mimeicon": {
  10127. "get": {
  10128. "operationId": "preview-get-mime-icon-url",
  10129. "summary": "Get a preview by mime",
  10130. "tags": [
  10131. "preview"
  10132. ],
  10133. "security": [
  10134. {},
  10135. {
  10136. "bearer_auth": []
  10137. },
  10138. {
  10139. "basic_auth": []
  10140. }
  10141. ],
  10142. "parameters": [
  10143. {
  10144. "name": "mime",
  10145. "in": "query",
  10146. "description": "Mime type",
  10147. "schema": {
  10148. "type": "string",
  10149. "default": "application/octet-stream"
  10150. }
  10151. }
  10152. ],
  10153. "responses": {
  10154. "303": {
  10155. "description": "The mime icon url",
  10156. "headers": {
  10157. "Location": {
  10158. "schema": {
  10159. "type": "string"
  10160. }
  10161. }
  10162. }
  10163. }
  10164. }
  10165. }
  10166. },
  10167. "/index.php/core/references/preview/{referenceId}": {
  10168. "get": {
  10169. "operationId": "reference-preview",
  10170. "summary": "Get a preview for a reference",
  10171. "tags": [
  10172. "reference"
  10173. ],
  10174. "security": [
  10175. {},
  10176. {
  10177. "bearer_auth": []
  10178. },
  10179. {
  10180. "basic_auth": []
  10181. }
  10182. ],
  10183. "parameters": [
  10184. {
  10185. "name": "referenceId",
  10186. "in": "path",
  10187. "description": "the reference cache key",
  10188. "required": true,
  10189. "schema": {
  10190. "type": "string"
  10191. }
  10192. }
  10193. ],
  10194. "responses": {
  10195. "200": {
  10196. "description": "Preview returned",
  10197. "content": {
  10198. "*/*": {
  10199. "schema": {
  10200. "type": "string",
  10201. "format": "binary"
  10202. }
  10203. }
  10204. }
  10205. },
  10206. "404": {
  10207. "description": "Reference not found",
  10208. "content": {
  10209. "application/json": {
  10210. "schema": {
  10211. "type": "string"
  10212. }
  10213. }
  10214. }
  10215. }
  10216. }
  10217. }
  10218. },
  10219. "/index.php/core/wipe/check": {
  10220. "post": {
  10221. "operationId": "wipe-check-wipe",
  10222. "summary": "Check if the device should be wiped",
  10223. "tags": [
  10224. "wipe"
  10225. ],
  10226. "security": [
  10227. {},
  10228. {
  10229. "bearer_auth": []
  10230. },
  10231. {
  10232. "basic_auth": []
  10233. }
  10234. ],
  10235. "requestBody": {
  10236. "required": true,
  10237. "content": {
  10238. "application/json": {
  10239. "schema": {
  10240. "type": "object",
  10241. "required": [
  10242. "token"
  10243. ],
  10244. "properties": {
  10245. "token": {
  10246. "type": "string",
  10247. "description": "App password"
  10248. }
  10249. }
  10250. }
  10251. }
  10252. }
  10253. },
  10254. "responses": {
  10255. "200": {
  10256. "description": "Device should be wiped",
  10257. "content": {
  10258. "application/json": {
  10259. "schema": {
  10260. "type": "object",
  10261. "required": [
  10262. "wipe"
  10263. ],
  10264. "properties": {
  10265. "wipe": {
  10266. "type": "boolean"
  10267. }
  10268. }
  10269. }
  10270. }
  10271. }
  10272. },
  10273. "404": {
  10274. "description": "Device should not be wiped",
  10275. "content": {
  10276. "application/json": {
  10277. "schema": {}
  10278. }
  10279. }
  10280. }
  10281. }
  10282. }
  10283. },
  10284. "/index.php/core/wipe/success": {
  10285. "post": {
  10286. "operationId": "wipe-wipe-done",
  10287. "summary": "Finish the wipe",
  10288. "tags": [
  10289. "wipe"
  10290. ],
  10291. "security": [
  10292. {},
  10293. {
  10294. "bearer_auth": []
  10295. },
  10296. {
  10297. "basic_auth": []
  10298. }
  10299. ],
  10300. "requestBody": {
  10301. "required": true,
  10302. "content": {
  10303. "application/json": {
  10304. "schema": {
  10305. "type": "object",
  10306. "required": [
  10307. "token"
  10308. ],
  10309. "properties": {
  10310. "token": {
  10311. "type": "string",
  10312. "description": "App password"
  10313. }
  10314. }
  10315. }
  10316. }
  10317. }
  10318. },
  10319. "responses": {
  10320. "200": {
  10321. "description": "Wipe finished successfully",
  10322. "content": {
  10323. "application/json": {
  10324. "schema": {}
  10325. }
  10326. }
  10327. },
  10328. "404": {
  10329. "description": "Device should not be wiped",
  10330. "content": {
  10331. "application/json": {
  10332. "schema": {}
  10333. }
  10334. }
  10335. }
  10336. }
  10337. }
  10338. },
  10339. "/status.php": {
  10340. "get": {
  10341. "operationId": "get-status",
  10342. "responses": {
  10343. "200": {
  10344. "description": "Status returned",
  10345. "content": {
  10346. "application/json": {
  10347. "schema": {
  10348. "$ref": "#/components/schemas/Status"
  10349. }
  10350. }
  10351. }
  10352. }
  10353. }
  10354. }
  10355. },
  10356. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/file/{fileId}": {
  10357. "get": {
  10358. "operationId": "task_processing_api-get-file-contents-ex-app",
  10359. "summary": "Returns the contents of a file referenced in a task(ExApp route version)",
  10360. "description": "This endpoint requires admin access",
  10361. "tags": [
  10362. "task_processing_api"
  10363. ],
  10364. "security": [
  10365. {
  10366. "bearer_auth": []
  10367. },
  10368. {
  10369. "basic_auth": []
  10370. }
  10371. ],
  10372. "parameters": [
  10373. {
  10374. "name": "taskId",
  10375. "in": "path",
  10376. "description": "The id of the task",
  10377. "required": true,
  10378. "schema": {
  10379. "type": "integer",
  10380. "format": "int64"
  10381. }
  10382. },
  10383. {
  10384. "name": "fileId",
  10385. "in": "path",
  10386. "description": "The file id of the file to retrieve",
  10387. "required": true,
  10388. "schema": {
  10389. "type": "integer",
  10390. "format": "int64"
  10391. }
  10392. },
  10393. {
  10394. "name": "OCS-APIRequest",
  10395. "in": "header",
  10396. "description": "Required to be true for the API request to pass",
  10397. "required": true,
  10398. "schema": {
  10399. "type": "boolean",
  10400. "default": true
  10401. }
  10402. }
  10403. ],
  10404. "responses": {
  10405. "200": {
  10406. "description": "File content returned",
  10407. "content": {
  10408. "*/*": {
  10409. "schema": {
  10410. "type": "string",
  10411. "format": "binary"
  10412. }
  10413. }
  10414. }
  10415. },
  10416. "500": {
  10417. "description": "",
  10418. "content": {
  10419. "application/json": {
  10420. "schema": {
  10421. "type": "object",
  10422. "required": [
  10423. "ocs"
  10424. ],
  10425. "properties": {
  10426. "ocs": {
  10427. "type": "object",
  10428. "required": [
  10429. "meta",
  10430. "data"
  10431. ],
  10432. "properties": {
  10433. "meta": {
  10434. "$ref": "#/components/schemas/OCSMeta"
  10435. },
  10436. "data": {
  10437. "type": "object",
  10438. "required": [
  10439. "message"
  10440. ],
  10441. "properties": {
  10442. "message": {
  10443. "type": "string"
  10444. }
  10445. }
  10446. }
  10447. }
  10448. }
  10449. }
  10450. }
  10451. }
  10452. }
  10453. },
  10454. "404": {
  10455. "description": "Task or file not found",
  10456. "content": {
  10457. "application/json": {
  10458. "schema": {
  10459. "type": "object",
  10460. "required": [
  10461. "ocs"
  10462. ],
  10463. "properties": {
  10464. "ocs": {
  10465. "type": "object",
  10466. "required": [
  10467. "meta",
  10468. "data"
  10469. ],
  10470. "properties": {
  10471. "meta": {
  10472. "$ref": "#/components/schemas/OCSMeta"
  10473. },
  10474. "data": {
  10475. "type": "object",
  10476. "required": [
  10477. "message"
  10478. ],
  10479. "properties": {
  10480. "message": {
  10481. "type": "string"
  10482. }
  10483. }
  10484. }
  10485. }
  10486. }
  10487. }
  10488. }
  10489. }
  10490. }
  10491. },
  10492. "401": {
  10493. "description": "Current user is not logged in",
  10494. "content": {
  10495. "application/json": {
  10496. "schema": {
  10497. "type": "object",
  10498. "required": [
  10499. "ocs"
  10500. ],
  10501. "properties": {
  10502. "ocs": {
  10503. "type": "object",
  10504. "required": [
  10505. "meta",
  10506. "data"
  10507. ],
  10508. "properties": {
  10509. "meta": {
  10510. "$ref": "#/components/schemas/OCSMeta"
  10511. },
  10512. "data": {}
  10513. }
  10514. }
  10515. }
  10516. }
  10517. }
  10518. }
  10519. },
  10520. "403": {
  10521. "description": "Logged in account must be an admin",
  10522. "content": {
  10523. "application/json": {
  10524. "schema": {
  10525. "type": "object",
  10526. "required": [
  10527. "ocs"
  10528. ],
  10529. "properties": {
  10530. "ocs": {
  10531. "type": "object",
  10532. "required": [
  10533. "meta",
  10534. "data"
  10535. ],
  10536. "properties": {
  10537. "meta": {
  10538. "$ref": "#/components/schemas/OCSMeta"
  10539. },
  10540. "data": {}
  10541. }
  10542. }
  10543. }
  10544. }
  10545. }
  10546. }
  10547. }
  10548. }
  10549. }
  10550. },
  10551. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/file": {
  10552. "post": {
  10553. "operationId": "task_processing_api-set-file-contents-ex-app",
  10554. "summary": "Upload a file so it can be referenced in a task result (ExApp route version)",
  10555. "description": "Use field 'file' for the file upload\nThis endpoint requires admin access",
  10556. "tags": [
  10557. "task_processing_api"
  10558. ],
  10559. "security": [
  10560. {
  10561. "bearer_auth": []
  10562. },
  10563. {
  10564. "basic_auth": []
  10565. }
  10566. ],
  10567. "parameters": [
  10568. {
  10569. "name": "taskId",
  10570. "in": "path",
  10571. "description": "The id of the task",
  10572. "required": true,
  10573. "schema": {
  10574. "type": "integer",
  10575. "format": "int64"
  10576. }
  10577. },
  10578. {
  10579. "name": "OCS-APIRequest",
  10580. "in": "header",
  10581. "description": "Required to be true for the API request to pass",
  10582. "required": true,
  10583. "schema": {
  10584. "type": "boolean",
  10585. "default": true
  10586. }
  10587. }
  10588. ],
  10589. "responses": {
  10590. "201": {
  10591. "description": "File created",
  10592. "content": {
  10593. "application/json": {
  10594. "schema": {
  10595. "type": "object",
  10596. "required": [
  10597. "ocs"
  10598. ],
  10599. "properties": {
  10600. "ocs": {
  10601. "type": "object",
  10602. "required": [
  10603. "meta",
  10604. "data"
  10605. ],
  10606. "properties": {
  10607. "meta": {
  10608. "$ref": "#/components/schemas/OCSMeta"
  10609. },
  10610. "data": {
  10611. "type": "object",
  10612. "required": [
  10613. "fileId"
  10614. ],
  10615. "properties": {
  10616. "fileId": {
  10617. "type": "integer",
  10618. "format": "int64"
  10619. }
  10620. }
  10621. }
  10622. }
  10623. }
  10624. }
  10625. }
  10626. }
  10627. }
  10628. },
  10629. "400": {
  10630. "description": "File upload failed or no file was uploaded",
  10631. "content": {
  10632. "application/json": {
  10633. "schema": {
  10634. "type": "object",
  10635. "required": [
  10636. "ocs"
  10637. ],
  10638. "properties": {
  10639. "ocs": {
  10640. "type": "object",
  10641. "required": [
  10642. "meta",
  10643. "data"
  10644. ],
  10645. "properties": {
  10646. "meta": {
  10647. "$ref": "#/components/schemas/OCSMeta"
  10648. },
  10649. "data": {
  10650. "type": "object",
  10651. "required": [
  10652. "message"
  10653. ],
  10654. "properties": {
  10655. "message": {
  10656. "type": "string"
  10657. }
  10658. }
  10659. }
  10660. }
  10661. }
  10662. }
  10663. }
  10664. }
  10665. }
  10666. },
  10667. "500": {
  10668. "description": "",
  10669. "content": {
  10670. "application/json": {
  10671. "schema": {
  10672. "type": "object",
  10673. "required": [
  10674. "ocs"
  10675. ],
  10676. "properties": {
  10677. "ocs": {
  10678. "type": "object",
  10679. "required": [
  10680. "meta",
  10681. "data"
  10682. ],
  10683. "properties": {
  10684. "meta": {
  10685. "$ref": "#/components/schemas/OCSMeta"
  10686. },
  10687. "data": {
  10688. "type": "object",
  10689. "required": [
  10690. "message"
  10691. ],
  10692. "properties": {
  10693. "message": {
  10694. "type": "string"
  10695. }
  10696. }
  10697. }
  10698. }
  10699. }
  10700. }
  10701. }
  10702. }
  10703. }
  10704. },
  10705. "404": {
  10706. "description": "Task not found",
  10707. "content": {
  10708. "application/json": {
  10709. "schema": {
  10710. "type": "object",
  10711. "required": [
  10712. "ocs"
  10713. ],
  10714. "properties": {
  10715. "ocs": {
  10716. "type": "object",
  10717. "required": [
  10718. "meta",
  10719. "data"
  10720. ],
  10721. "properties": {
  10722. "meta": {
  10723. "$ref": "#/components/schemas/OCSMeta"
  10724. },
  10725. "data": {
  10726. "type": "object",
  10727. "required": [
  10728. "message"
  10729. ],
  10730. "properties": {
  10731. "message": {
  10732. "type": "string"
  10733. }
  10734. }
  10735. }
  10736. }
  10737. }
  10738. }
  10739. }
  10740. }
  10741. }
  10742. },
  10743. "401": {
  10744. "description": "Current user is not logged in",
  10745. "content": {
  10746. "application/json": {
  10747. "schema": {
  10748. "type": "object",
  10749. "required": [
  10750. "ocs"
  10751. ],
  10752. "properties": {
  10753. "ocs": {
  10754. "type": "object",
  10755. "required": [
  10756. "meta",
  10757. "data"
  10758. ],
  10759. "properties": {
  10760. "meta": {
  10761. "$ref": "#/components/schemas/OCSMeta"
  10762. },
  10763. "data": {}
  10764. }
  10765. }
  10766. }
  10767. }
  10768. }
  10769. }
  10770. },
  10771. "403": {
  10772. "description": "Logged in account must be an admin",
  10773. "content": {
  10774. "application/json": {
  10775. "schema": {
  10776. "type": "object",
  10777. "required": [
  10778. "ocs"
  10779. ],
  10780. "properties": {
  10781. "ocs": {
  10782. "type": "object",
  10783. "required": [
  10784. "meta",
  10785. "data"
  10786. ],
  10787. "properties": {
  10788. "meta": {
  10789. "$ref": "#/components/schemas/OCSMeta"
  10790. },
  10791. "data": {}
  10792. }
  10793. }
  10794. }
  10795. }
  10796. }
  10797. }
  10798. }
  10799. }
  10800. }
  10801. },
  10802. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/progress": {
  10803. "post": {
  10804. "operationId": "task_processing_api-set-progress",
  10805. "summary": "Sets the task progress",
  10806. "description": "This endpoint requires admin access",
  10807. "tags": [
  10808. "task_processing_api"
  10809. ],
  10810. "security": [
  10811. {
  10812. "bearer_auth": []
  10813. },
  10814. {
  10815. "basic_auth": []
  10816. }
  10817. ],
  10818. "requestBody": {
  10819. "required": true,
  10820. "content": {
  10821. "application/json": {
  10822. "schema": {
  10823. "type": "object",
  10824. "required": [
  10825. "progress"
  10826. ],
  10827. "properties": {
  10828. "progress": {
  10829. "type": "number",
  10830. "format": "double",
  10831. "description": "The progress"
  10832. }
  10833. }
  10834. }
  10835. }
  10836. }
  10837. },
  10838. "parameters": [
  10839. {
  10840. "name": "taskId",
  10841. "in": "path",
  10842. "description": "The id of the task",
  10843. "required": true,
  10844. "schema": {
  10845. "type": "integer",
  10846. "format": "int64"
  10847. }
  10848. },
  10849. {
  10850. "name": "OCS-APIRequest",
  10851. "in": "header",
  10852. "description": "Required to be true for the API request to pass",
  10853. "required": true,
  10854. "schema": {
  10855. "type": "boolean",
  10856. "default": true
  10857. }
  10858. }
  10859. ],
  10860. "responses": {
  10861. "200": {
  10862. "description": "Progress updated successfully",
  10863. "content": {
  10864. "application/json": {
  10865. "schema": {
  10866. "type": "object",
  10867. "required": [
  10868. "ocs"
  10869. ],
  10870. "properties": {
  10871. "ocs": {
  10872. "type": "object",
  10873. "required": [
  10874. "meta",
  10875. "data"
  10876. ],
  10877. "properties": {
  10878. "meta": {
  10879. "$ref": "#/components/schemas/OCSMeta"
  10880. },
  10881. "data": {
  10882. "type": "object",
  10883. "required": [
  10884. "task"
  10885. ],
  10886. "properties": {
  10887. "task": {
  10888. "$ref": "#/components/schemas/TaskProcessingTask"
  10889. }
  10890. }
  10891. }
  10892. }
  10893. }
  10894. }
  10895. }
  10896. }
  10897. }
  10898. },
  10899. "500": {
  10900. "description": "",
  10901. "content": {
  10902. "application/json": {
  10903. "schema": {
  10904. "type": "object",
  10905. "required": [
  10906. "ocs"
  10907. ],
  10908. "properties": {
  10909. "ocs": {
  10910. "type": "object",
  10911. "required": [
  10912. "meta",
  10913. "data"
  10914. ],
  10915. "properties": {
  10916. "meta": {
  10917. "$ref": "#/components/schemas/OCSMeta"
  10918. },
  10919. "data": {
  10920. "type": "object",
  10921. "required": [
  10922. "message"
  10923. ],
  10924. "properties": {
  10925. "message": {
  10926. "type": "string"
  10927. }
  10928. }
  10929. }
  10930. }
  10931. }
  10932. }
  10933. }
  10934. }
  10935. }
  10936. },
  10937. "404": {
  10938. "description": "Task not found",
  10939. "content": {
  10940. "application/json": {
  10941. "schema": {
  10942. "type": "object",
  10943. "required": [
  10944. "ocs"
  10945. ],
  10946. "properties": {
  10947. "ocs": {
  10948. "type": "object",
  10949. "required": [
  10950. "meta",
  10951. "data"
  10952. ],
  10953. "properties": {
  10954. "meta": {
  10955. "$ref": "#/components/schemas/OCSMeta"
  10956. },
  10957. "data": {
  10958. "type": "object",
  10959. "required": [
  10960. "message"
  10961. ],
  10962. "properties": {
  10963. "message": {
  10964. "type": "string"
  10965. }
  10966. }
  10967. }
  10968. }
  10969. }
  10970. }
  10971. }
  10972. }
  10973. }
  10974. },
  10975. "401": {
  10976. "description": "Current user is not logged in",
  10977. "content": {
  10978. "application/json": {
  10979. "schema": {
  10980. "type": "object",
  10981. "required": [
  10982. "ocs"
  10983. ],
  10984. "properties": {
  10985. "ocs": {
  10986. "type": "object",
  10987. "required": [
  10988. "meta",
  10989. "data"
  10990. ],
  10991. "properties": {
  10992. "meta": {
  10993. "$ref": "#/components/schemas/OCSMeta"
  10994. },
  10995. "data": {}
  10996. }
  10997. }
  10998. }
  10999. }
  11000. }
  11001. }
  11002. },
  11003. "403": {
  11004. "description": "Logged in account must be an admin",
  11005. "content": {
  11006. "application/json": {
  11007. "schema": {
  11008. "type": "object",
  11009. "required": [
  11010. "ocs"
  11011. ],
  11012. "properties": {
  11013. "ocs": {
  11014. "type": "object",
  11015. "required": [
  11016. "meta",
  11017. "data"
  11018. ],
  11019. "properties": {
  11020. "meta": {
  11021. "$ref": "#/components/schemas/OCSMeta"
  11022. },
  11023. "data": {}
  11024. }
  11025. }
  11026. }
  11027. }
  11028. }
  11029. }
  11030. }
  11031. }
  11032. }
  11033. },
  11034. "/ocs/v2.php/taskprocessing/tasks_provider/{taskId}/result": {
  11035. "post": {
  11036. "operationId": "task_processing_api-set-result",
  11037. "summary": "Sets the task result",
  11038. "description": "This endpoint requires admin access",
  11039. "tags": [
  11040. "task_processing_api"
  11041. ],
  11042. "security": [
  11043. {
  11044. "bearer_auth": []
  11045. },
  11046. {
  11047. "basic_auth": []
  11048. }
  11049. ],
  11050. "requestBody": {
  11051. "required": false,
  11052. "content": {
  11053. "application/json": {
  11054. "schema": {
  11055. "type": "object",
  11056. "properties": {
  11057. "output": {
  11058. "type": "object",
  11059. "nullable": true,
  11060. "default": null,
  11061. "description": "The resulting task output, files are represented by their IDs",
  11062. "additionalProperties": {
  11063. "type": "object"
  11064. }
  11065. },
  11066. "errorMessage": {
  11067. "type": "string",
  11068. "nullable": true,
  11069. "default": null,
  11070. "description": "An error message if the task failed"
  11071. },
  11072. "userFacingErrorMessage": {
  11073. "type": "string",
  11074. "nullable": true,
  11075. "default": null,
  11076. "description": "An error message that will be shown to the user"
  11077. }
  11078. }
  11079. }
  11080. }
  11081. }
  11082. },
  11083. "parameters": [
  11084. {
  11085. "name": "taskId",
  11086. "in": "path",
  11087. "description": "The id of the task",
  11088. "required": true,
  11089. "schema": {
  11090. "type": "integer",
  11091. "format": "int64"
  11092. }
  11093. },
  11094. {
  11095. "name": "OCS-APIRequest",
  11096. "in": "header",
  11097. "description": "Required to be true for the API request to pass",
  11098. "required": true,
  11099. "schema": {
  11100. "type": "boolean",
  11101. "default": true
  11102. }
  11103. }
  11104. ],
  11105. "responses": {
  11106. "200": {
  11107. "description": "Result updated successfully",
  11108. "content": {
  11109. "application/json": {
  11110. "schema": {
  11111. "type": "object",
  11112. "required": [
  11113. "ocs"
  11114. ],
  11115. "properties": {
  11116. "ocs": {
  11117. "type": "object",
  11118. "required": [
  11119. "meta",
  11120. "data"
  11121. ],
  11122. "properties": {
  11123. "meta": {
  11124. "$ref": "#/components/schemas/OCSMeta"
  11125. },
  11126. "data": {
  11127. "type": "object",
  11128. "required": [
  11129. "task"
  11130. ],
  11131. "properties": {
  11132. "task": {
  11133. "$ref": "#/components/schemas/TaskProcessingTask"
  11134. }
  11135. }
  11136. }
  11137. }
  11138. }
  11139. }
  11140. }
  11141. }
  11142. }
  11143. },
  11144. "500": {
  11145. "description": "",
  11146. "content": {
  11147. "application/json": {
  11148. "schema": {
  11149. "type": "object",
  11150. "required": [
  11151. "ocs"
  11152. ],
  11153. "properties": {
  11154. "ocs": {
  11155. "type": "object",
  11156. "required": [
  11157. "meta",
  11158. "data"
  11159. ],
  11160. "properties": {
  11161. "meta": {
  11162. "$ref": "#/components/schemas/OCSMeta"
  11163. },
  11164. "data": {
  11165. "type": "object",
  11166. "required": [
  11167. "message"
  11168. ],
  11169. "properties": {
  11170. "message": {
  11171. "type": "string"
  11172. }
  11173. }
  11174. }
  11175. }
  11176. }
  11177. }
  11178. }
  11179. }
  11180. }
  11181. },
  11182. "404": {
  11183. "description": "Task not found",
  11184. "content": {
  11185. "application/json": {
  11186. "schema": {
  11187. "type": "object",
  11188. "required": [
  11189. "ocs"
  11190. ],
  11191. "properties": {
  11192. "ocs": {
  11193. "type": "object",
  11194. "required": [
  11195. "meta",
  11196. "data"
  11197. ],
  11198. "properties": {
  11199. "meta": {
  11200. "$ref": "#/components/schemas/OCSMeta"
  11201. },
  11202. "data": {
  11203. "type": "object",
  11204. "required": [
  11205. "message"
  11206. ],
  11207. "properties": {
  11208. "message": {
  11209. "type": "string"
  11210. }
  11211. }
  11212. }
  11213. }
  11214. }
  11215. }
  11216. }
  11217. }
  11218. }
  11219. },
  11220. "401": {
  11221. "description": "Current user is not logged in",
  11222. "content": {
  11223. "application/json": {
  11224. "schema": {
  11225. "type": "object",
  11226. "required": [
  11227. "ocs"
  11228. ],
  11229. "properties": {
  11230. "ocs": {
  11231. "type": "object",
  11232. "required": [
  11233. "meta",
  11234. "data"
  11235. ],
  11236. "properties": {
  11237. "meta": {
  11238. "$ref": "#/components/schemas/OCSMeta"
  11239. },
  11240. "data": {}
  11241. }
  11242. }
  11243. }
  11244. }
  11245. }
  11246. }
  11247. },
  11248. "403": {
  11249. "description": "Logged in account must be an admin",
  11250. "content": {
  11251. "application/json": {
  11252. "schema": {
  11253. "type": "object",
  11254. "required": [
  11255. "ocs"
  11256. ],
  11257. "properties": {
  11258. "ocs": {
  11259. "type": "object",
  11260. "required": [
  11261. "meta",
  11262. "data"
  11263. ],
  11264. "properties": {
  11265. "meta": {
  11266. "$ref": "#/components/schemas/OCSMeta"
  11267. },
  11268. "data": {}
  11269. }
  11270. }
  11271. }
  11272. }
  11273. }
  11274. }
  11275. }
  11276. }
  11277. }
  11278. },
  11279. "/ocs/v2.php/taskprocessing/tasks_provider/next": {
  11280. "get": {
  11281. "operationId": "task_processing_api-get-next-scheduled-task",
  11282. "summary": "Returns the next scheduled task for the taskTypeId",
  11283. "description": "This endpoint requires admin access",
  11284. "tags": [
  11285. "task_processing_api"
  11286. ],
  11287. "security": [
  11288. {
  11289. "bearer_auth": []
  11290. },
  11291. {
  11292. "basic_auth": []
  11293. }
  11294. ],
  11295. "parameters": [
  11296. {
  11297. "name": "providerIds[]",
  11298. "in": "query",
  11299. "description": "The ids of the providers",
  11300. "required": true,
  11301. "schema": {
  11302. "type": "array",
  11303. "items": {
  11304. "type": "string"
  11305. }
  11306. }
  11307. },
  11308. {
  11309. "name": "taskTypeIds[]",
  11310. "in": "query",
  11311. "description": "The ids of the task types",
  11312. "required": true,
  11313. "schema": {
  11314. "type": "array",
  11315. "items": {
  11316. "type": "string"
  11317. }
  11318. }
  11319. },
  11320. {
  11321. "name": "OCS-APIRequest",
  11322. "in": "header",
  11323. "description": "Required to be true for the API request to pass",
  11324. "required": true,
  11325. "schema": {
  11326. "type": "boolean",
  11327. "default": true
  11328. }
  11329. }
  11330. ],
  11331. "responses": {
  11332. "200": {
  11333. "description": "Task returned",
  11334. "content": {
  11335. "application/json": {
  11336. "schema": {
  11337. "type": "object",
  11338. "required": [
  11339. "ocs"
  11340. ],
  11341. "properties": {
  11342. "ocs": {
  11343. "type": "object",
  11344. "required": [
  11345. "meta",
  11346. "data"
  11347. ],
  11348. "properties": {
  11349. "meta": {
  11350. "$ref": "#/components/schemas/OCSMeta"
  11351. },
  11352. "data": {
  11353. "type": "object",
  11354. "required": [
  11355. "task",
  11356. "provider"
  11357. ],
  11358. "properties": {
  11359. "task": {
  11360. "$ref": "#/components/schemas/TaskProcessingTask"
  11361. },
  11362. "provider": {
  11363. "type": "object",
  11364. "required": [
  11365. "name"
  11366. ],
  11367. "properties": {
  11368. "name": {
  11369. "type": "string"
  11370. }
  11371. }
  11372. }
  11373. }
  11374. }
  11375. }
  11376. }
  11377. }
  11378. }
  11379. }
  11380. }
  11381. },
  11382. "204": {
  11383. "description": "No task found"
  11384. },
  11385. "500": {
  11386. "description": "",
  11387. "content": {
  11388. "application/json": {
  11389. "schema": {
  11390. "type": "object",
  11391. "required": [
  11392. "ocs"
  11393. ],
  11394. "properties": {
  11395. "ocs": {
  11396. "type": "object",
  11397. "required": [
  11398. "meta",
  11399. "data"
  11400. ],
  11401. "properties": {
  11402. "meta": {
  11403. "$ref": "#/components/schemas/OCSMeta"
  11404. },
  11405. "data": {
  11406. "type": "object",
  11407. "required": [
  11408. "message"
  11409. ],
  11410. "properties": {
  11411. "message": {
  11412. "type": "string"
  11413. }
  11414. }
  11415. }
  11416. }
  11417. }
  11418. }
  11419. }
  11420. }
  11421. }
  11422. },
  11423. "401": {
  11424. "description": "Current user is not logged in",
  11425. "content": {
  11426. "application/json": {
  11427. "schema": {
  11428. "type": "object",
  11429. "required": [
  11430. "ocs"
  11431. ],
  11432. "properties": {
  11433. "ocs": {
  11434. "type": "object",
  11435. "required": [
  11436. "meta",
  11437. "data"
  11438. ],
  11439. "properties": {
  11440. "meta": {
  11441. "$ref": "#/components/schemas/OCSMeta"
  11442. },
  11443. "data": {}
  11444. }
  11445. }
  11446. }
  11447. }
  11448. }
  11449. }
  11450. },
  11451. "403": {
  11452. "description": "Logged in account must be an admin",
  11453. "content": {
  11454. "application/json": {
  11455. "schema": {
  11456. "type": "object",
  11457. "required": [
  11458. "ocs"
  11459. ],
  11460. "properties": {
  11461. "ocs": {
  11462. "type": "object",
  11463. "required": [
  11464. "meta",
  11465. "data"
  11466. ],
  11467. "properties": {
  11468. "meta": {
  11469. "$ref": "#/components/schemas/OCSMeta"
  11470. },
  11471. "data": {}
  11472. }
  11473. }
  11474. }
  11475. }
  11476. }
  11477. }
  11478. }
  11479. }
  11480. }
  11481. },
  11482. "/ocs/v2.php/taskprocessing/tasks_provider/next_batch": {
  11483. "get": {
  11484. "operationId": "task_processing_api-get-next-scheduled-task-batch",
  11485. "summary": "Returns the next n scheduled tasks for the specified set of taskTypes and providers The returned tasks are capped at ~50MiB",
  11486. "description": "This endpoint requires admin access",
  11487. "tags": [
  11488. "task_processing_api"
  11489. ],
  11490. "security": [
  11491. {
  11492. "bearer_auth": []
  11493. },
  11494. {
  11495. "basic_auth": []
  11496. }
  11497. ],
  11498. "parameters": [
  11499. {
  11500. "name": "providerIds[]",
  11501. "in": "query",
  11502. "description": "The ids of the providers",
  11503. "required": true,
  11504. "schema": {
  11505. "type": "array",
  11506. "items": {
  11507. "type": "string"
  11508. }
  11509. }
  11510. },
  11511. {
  11512. "name": "taskTypeIds[]",
  11513. "in": "query",
  11514. "description": "The ids of the task types",
  11515. "required": true,
  11516. "schema": {
  11517. "type": "array",
  11518. "items": {
  11519. "type": "string"
  11520. }
  11521. }
  11522. },
  11523. {
  11524. "name": "numberOfTasks",
  11525. "in": "query",
  11526. "description": "The number of tasks to return",
  11527. "schema": {
  11528. "type": "integer",
  11529. "format": "int64",
  11530. "default": 1
  11531. }
  11532. },
  11533. {
  11534. "name": "OCS-APIRequest",
  11535. "in": "header",
  11536. "description": "Required to be true for the API request to pass",
  11537. "required": true,
  11538. "schema": {
  11539. "type": "boolean",
  11540. "default": true
  11541. }
  11542. }
  11543. ],
  11544. "responses": {
  11545. "200": {
  11546. "description": "Tasks returned",
  11547. "content": {
  11548. "application/json": {
  11549. "schema": {
  11550. "type": "object",
  11551. "required": [
  11552. "ocs"
  11553. ],
  11554. "properties": {
  11555. "ocs": {
  11556. "type": "object",
  11557. "required": [
  11558. "meta",
  11559. "data"
  11560. ],
  11561. "properties": {
  11562. "meta": {
  11563. "$ref": "#/components/schemas/OCSMeta"
  11564. },
  11565. "data": {
  11566. "type": "object",
  11567. "required": [
  11568. "tasks",
  11569. "has_more"
  11570. ],
  11571. "properties": {
  11572. "tasks": {
  11573. "type": "array",
  11574. "items": {
  11575. "type": "object",
  11576. "required": [
  11577. "task",
  11578. "provider"
  11579. ],
  11580. "properties": {
  11581. "task": {
  11582. "$ref": "#/components/schemas/TaskProcessingTask"
  11583. },
  11584. "provider": {
  11585. "type": "string"
  11586. }
  11587. }
  11588. }
  11589. },
  11590. "has_more": {
  11591. "type": "boolean"
  11592. }
  11593. }
  11594. }
  11595. }
  11596. }
  11597. }
  11598. }
  11599. }
  11600. }
  11601. },
  11602. "500": {
  11603. "description": "",
  11604. "content": {
  11605. "application/json": {
  11606. "schema": {
  11607. "type": "object",
  11608. "required": [
  11609. "ocs"
  11610. ],
  11611. "properties": {
  11612. "ocs": {
  11613. "type": "object",
  11614. "required": [
  11615. "meta",
  11616. "data"
  11617. ],
  11618. "properties": {
  11619. "meta": {
  11620. "$ref": "#/components/schemas/OCSMeta"
  11621. },
  11622. "data": {
  11623. "type": "object",
  11624. "required": [
  11625. "message"
  11626. ],
  11627. "properties": {
  11628. "message": {
  11629. "type": "string"
  11630. }
  11631. }
  11632. }
  11633. }
  11634. }
  11635. }
  11636. }
  11637. }
  11638. }
  11639. },
  11640. "401": {
  11641. "description": "Current user is not logged in",
  11642. "content": {
  11643. "application/json": {
  11644. "schema": {
  11645. "type": "object",
  11646. "required": [
  11647. "ocs"
  11648. ],
  11649. "properties": {
  11650. "ocs": {
  11651. "type": "object",
  11652. "required": [
  11653. "meta",
  11654. "data"
  11655. ],
  11656. "properties": {
  11657. "meta": {
  11658. "$ref": "#/components/schemas/OCSMeta"
  11659. },
  11660. "data": {}
  11661. }
  11662. }
  11663. }
  11664. }
  11665. }
  11666. }
  11667. },
  11668. "403": {
  11669. "description": "Logged in account must be an admin",
  11670. "content": {
  11671. "application/json": {
  11672. "schema": {
  11673. "type": "object",
  11674. "required": [
  11675. "ocs"
  11676. ],
  11677. "properties": {
  11678. "ocs": {
  11679. "type": "object",
  11680. "required": [
  11681. "meta",
  11682. "data"
  11683. ],
  11684. "properties": {
  11685. "meta": {
  11686. "$ref": "#/components/schemas/OCSMeta"
  11687. },
  11688. "data": {}
  11689. }
  11690. }
  11691. }
  11692. }
  11693. }
  11694. }
  11695. }
  11696. }
  11697. }
  11698. },
  11699. "/ocs/v2.php/twofactor/state": {
  11700. "get": {
  11701. "operationId": "two_factor_api-state",
  11702. "summary": "Get two factor authentication provider states",
  11703. "description": "This endpoint requires admin access",
  11704. "tags": [
  11705. "two_factor_api"
  11706. ],
  11707. "security": [
  11708. {
  11709. "bearer_auth": []
  11710. },
  11711. {
  11712. "basic_auth": []
  11713. }
  11714. ],
  11715. "parameters": [
  11716. {
  11717. "name": "user",
  11718. "in": "query",
  11719. "description": "system user id",
  11720. "required": true,
  11721. "schema": {
  11722. "type": "string"
  11723. }
  11724. },
  11725. {
  11726. "name": "OCS-APIRequest",
  11727. "in": "header",
  11728. "description": "Required to be true for the API request to pass",
  11729. "required": true,
  11730. "schema": {
  11731. "type": "boolean",
  11732. "default": true
  11733. }
  11734. }
  11735. ],
  11736. "responses": {
  11737. "200": {
  11738. "description": "provider states",
  11739. "content": {
  11740. "application/json": {
  11741. "schema": {
  11742. "type": "object",
  11743. "required": [
  11744. "ocs"
  11745. ],
  11746. "properties": {
  11747. "ocs": {
  11748. "type": "object",
  11749. "required": [
  11750. "meta",
  11751. "data"
  11752. ],
  11753. "properties": {
  11754. "meta": {
  11755. "$ref": "#/components/schemas/OCSMeta"
  11756. },
  11757. "data": {
  11758. "type": "object",
  11759. "additionalProperties": {
  11760. "type": "boolean"
  11761. }
  11762. }
  11763. }
  11764. }
  11765. }
  11766. }
  11767. }
  11768. }
  11769. },
  11770. "404": {
  11771. "description": "user not found",
  11772. "content": {
  11773. "application/json": {
  11774. "schema": {
  11775. "type": "object",
  11776. "required": [
  11777. "ocs"
  11778. ],
  11779. "properties": {
  11780. "ocs": {
  11781. "type": "object",
  11782. "required": [
  11783. "meta",
  11784. "data"
  11785. ],
  11786. "properties": {
  11787. "meta": {
  11788. "$ref": "#/components/schemas/OCSMeta"
  11789. },
  11790. "data": {
  11791. "nullable": true
  11792. }
  11793. }
  11794. }
  11795. }
  11796. }
  11797. }
  11798. }
  11799. },
  11800. "401": {
  11801. "description": "Current user is not logged in",
  11802. "content": {
  11803. "application/json": {
  11804. "schema": {
  11805. "type": "object",
  11806. "required": [
  11807. "ocs"
  11808. ],
  11809. "properties": {
  11810. "ocs": {
  11811. "type": "object",
  11812. "required": [
  11813. "meta",
  11814. "data"
  11815. ],
  11816. "properties": {
  11817. "meta": {
  11818. "$ref": "#/components/schemas/OCSMeta"
  11819. },
  11820. "data": {}
  11821. }
  11822. }
  11823. }
  11824. }
  11825. }
  11826. }
  11827. },
  11828. "403": {
  11829. "description": "Logged in account must be an admin",
  11830. "content": {
  11831. "application/json": {
  11832. "schema": {
  11833. "type": "object",
  11834. "required": [
  11835. "ocs"
  11836. ],
  11837. "properties": {
  11838. "ocs": {
  11839. "type": "object",
  11840. "required": [
  11841. "meta",
  11842. "data"
  11843. ],
  11844. "properties": {
  11845. "meta": {
  11846. "$ref": "#/components/schemas/OCSMeta"
  11847. },
  11848. "data": {}
  11849. }
  11850. }
  11851. }
  11852. }
  11853. }
  11854. }
  11855. }
  11856. }
  11857. }
  11858. },
  11859. "/ocs/v2.php/twofactor/enable": {
  11860. "post": {
  11861. "operationId": "two_factor_api-enable",
  11862. "summary": "Enable two factor authentication providers for specific user",
  11863. "description": "This endpoint requires admin access",
  11864. "tags": [
  11865. "two_factor_api"
  11866. ],
  11867. "security": [
  11868. {
  11869. "bearer_auth": []
  11870. },
  11871. {
  11872. "basic_auth": []
  11873. }
  11874. ],
  11875. "requestBody": {
  11876. "required": true,
  11877. "content": {
  11878. "application/json": {
  11879. "schema": {
  11880. "type": "object",
  11881. "required": [
  11882. "user"
  11883. ],
  11884. "properties": {
  11885. "user": {
  11886. "type": "string",
  11887. "description": "system user identifier"
  11888. },
  11889. "providers": {
  11890. "type": "array",
  11891. "default": [],
  11892. "description": "collection of TFA provider ids",
  11893. "items": {
  11894. "type": "string"
  11895. }
  11896. }
  11897. }
  11898. }
  11899. }
  11900. }
  11901. },
  11902. "parameters": [
  11903. {
  11904. "name": "OCS-APIRequest",
  11905. "in": "header",
  11906. "description": "Required to be true for the API request to pass",
  11907. "required": true,
  11908. "schema": {
  11909. "type": "boolean",
  11910. "default": true
  11911. }
  11912. }
  11913. ],
  11914. "responses": {
  11915. "200": {
  11916. "description": "provider states",
  11917. "content": {
  11918. "application/json": {
  11919. "schema": {
  11920. "type": "object",
  11921. "required": [
  11922. "ocs"
  11923. ],
  11924. "properties": {
  11925. "ocs": {
  11926. "type": "object",
  11927. "required": [
  11928. "meta",
  11929. "data"
  11930. ],
  11931. "properties": {
  11932. "meta": {
  11933. "$ref": "#/components/schemas/OCSMeta"
  11934. },
  11935. "data": {
  11936. "type": "object",
  11937. "additionalProperties": {
  11938. "type": "boolean"
  11939. }
  11940. }
  11941. }
  11942. }
  11943. }
  11944. }
  11945. }
  11946. }
  11947. },
  11948. "404": {
  11949. "description": "user not found",
  11950. "content": {
  11951. "application/json": {
  11952. "schema": {
  11953. "type": "object",
  11954. "required": [
  11955. "ocs"
  11956. ],
  11957. "properties": {
  11958. "ocs": {
  11959. "type": "object",
  11960. "required": [
  11961. "meta",
  11962. "data"
  11963. ],
  11964. "properties": {
  11965. "meta": {
  11966. "$ref": "#/components/schemas/OCSMeta"
  11967. },
  11968. "data": {
  11969. "nullable": true
  11970. }
  11971. }
  11972. }
  11973. }
  11974. }
  11975. }
  11976. }
  11977. },
  11978. "401": {
  11979. "description": "Current user is not logged in",
  11980. "content": {
  11981. "application/json": {
  11982. "schema": {
  11983. "type": "object",
  11984. "required": [
  11985. "ocs"
  11986. ],
  11987. "properties": {
  11988. "ocs": {
  11989. "type": "object",
  11990. "required": [
  11991. "meta",
  11992. "data"
  11993. ],
  11994. "properties": {
  11995. "meta": {
  11996. "$ref": "#/components/schemas/OCSMeta"
  11997. },
  11998. "data": {}
  11999. }
  12000. }
  12001. }
  12002. }
  12003. }
  12004. }
  12005. },
  12006. "403": {
  12007. "description": "Logged in account must be an admin",
  12008. "content": {
  12009. "application/json": {
  12010. "schema": {
  12011. "type": "object",
  12012. "required": [
  12013. "ocs"
  12014. ],
  12015. "properties": {
  12016. "ocs": {
  12017. "type": "object",
  12018. "required": [
  12019. "meta",
  12020. "data"
  12021. ],
  12022. "properties": {
  12023. "meta": {
  12024. "$ref": "#/components/schemas/OCSMeta"
  12025. },
  12026. "data": {}
  12027. }
  12028. }
  12029. }
  12030. }
  12031. }
  12032. }
  12033. }
  12034. }
  12035. }
  12036. },
  12037. "/ocs/v2.php/twofactor/disable": {
  12038. "post": {
  12039. "operationId": "two_factor_api-disable",
  12040. "summary": "Disable two factor authentication providers for specific user",
  12041. "description": "This endpoint requires admin access",
  12042. "tags": [
  12043. "two_factor_api"
  12044. ],
  12045. "security": [
  12046. {
  12047. "bearer_auth": []
  12048. },
  12049. {
  12050. "basic_auth": []
  12051. }
  12052. ],
  12053. "requestBody": {
  12054. "required": true,
  12055. "content": {
  12056. "application/json": {
  12057. "schema": {
  12058. "type": "object",
  12059. "required": [
  12060. "user"
  12061. ],
  12062. "properties": {
  12063. "user": {
  12064. "type": "string",
  12065. "description": "system user identifier"
  12066. },
  12067. "providers": {
  12068. "type": "array",
  12069. "default": [],
  12070. "description": "collection of TFA provider ids",
  12071. "items": {
  12072. "type": "string"
  12073. }
  12074. }
  12075. }
  12076. }
  12077. }
  12078. }
  12079. },
  12080. "parameters": [
  12081. {
  12082. "name": "OCS-APIRequest",
  12083. "in": "header",
  12084. "description": "Required to be true for the API request to pass",
  12085. "required": true,
  12086. "schema": {
  12087. "type": "boolean",
  12088. "default": true
  12089. }
  12090. }
  12091. ],
  12092. "responses": {
  12093. "200": {
  12094. "description": "provider states",
  12095. "content": {
  12096. "application/json": {
  12097. "schema": {
  12098. "type": "object",
  12099. "required": [
  12100. "ocs"
  12101. ],
  12102. "properties": {
  12103. "ocs": {
  12104. "type": "object",
  12105. "required": [
  12106. "meta",
  12107. "data"
  12108. ],
  12109. "properties": {
  12110. "meta": {
  12111. "$ref": "#/components/schemas/OCSMeta"
  12112. },
  12113. "data": {
  12114. "type": "object",
  12115. "additionalProperties": {
  12116. "type": "boolean"
  12117. }
  12118. }
  12119. }
  12120. }
  12121. }
  12122. }
  12123. }
  12124. }
  12125. },
  12126. "404": {
  12127. "description": "user not found",
  12128. "content": {
  12129. "application/json": {
  12130. "schema": {
  12131. "type": "object",
  12132. "required": [
  12133. "ocs"
  12134. ],
  12135. "properties": {
  12136. "ocs": {
  12137. "type": "object",
  12138. "required": [
  12139. "meta",
  12140. "data"
  12141. ],
  12142. "properties": {
  12143. "meta": {
  12144. "$ref": "#/components/schemas/OCSMeta"
  12145. },
  12146. "data": {
  12147. "nullable": true
  12148. }
  12149. }
  12150. }
  12151. }
  12152. }
  12153. }
  12154. }
  12155. },
  12156. "401": {
  12157. "description": "Current user is not logged in",
  12158. "content": {
  12159. "application/json": {
  12160. "schema": {
  12161. "type": "object",
  12162. "required": [
  12163. "ocs"
  12164. ],
  12165. "properties": {
  12166. "ocs": {
  12167. "type": "object",
  12168. "required": [
  12169. "meta",
  12170. "data"
  12171. ],
  12172. "properties": {
  12173. "meta": {
  12174. "$ref": "#/components/schemas/OCSMeta"
  12175. },
  12176. "data": {}
  12177. }
  12178. }
  12179. }
  12180. }
  12181. }
  12182. }
  12183. },
  12184. "403": {
  12185. "description": "Logged in account must be an admin",
  12186. "content": {
  12187. "application/json": {
  12188. "schema": {
  12189. "type": "object",
  12190. "required": [
  12191. "ocs"
  12192. ],
  12193. "properties": {
  12194. "ocs": {
  12195. "type": "object",
  12196. "required": [
  12197. "meta",
  12198. "data"
  12199. ],
  12200. "properties": {
  12201. "meta": {
  12202. "$ref": "#/components/schemas/OCSMeta"
  12203. },
  12204. "data": {}
  12205. }
  12206. }
  12207. }
  12208. }
  12209. }
  12210. }
  12211. }
  12212. }
  12213. }
  12214. }
  12215. },
  12216. "tags": [
  12217. {
  12218. "name": "ocs",
  12219. "description": "If you are here because you can't extend the OCSController class, you got the wrong one. Please use {@see \\OCP\\AppFramework\\OCSController}!"
  12220. },
  12221. {
  12222. "name": "avatar",
  12223. "description": "Class AvatarController"
  12224. },
  12225. {
  12226. "name": "guest_avatar",
  12227. "description": "This controller handles guest avatar requests."
  12228. },
  12229. {
  12230. "name": "ocm",
  12231. "description": "Controller about the endpoint /ocm-provider/"
  12232. }
  12233. ]
  12234. }