@directus/app 9.12.2 → 9.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/dist/assets/accounts.40ab36c1.js +1 -0
  2. package/dist/assets/{active-line.ff3bc705.js → active-line.b531d8e7.js} +1 -1
  3. package/dist/assets/activity-log.9449feec.js +1 -0
  4. package/dist/assets/activity.fbd319d5.js +80 -0
  5. package/dist/assets/{apl.cc4825c6.js → apl.091e05c0.js} +1 -1
  6. package/dist/assets/ar-SA.215069dc.js +1 -0
  7. package/dist/assets/architecture.9e90b6f3.js +1 -0
  8. package/dist/assets/{asciiarmor.30bbdfc8.js → asciiarmor.72b1d474.js} +1 -1
  9. package/dist/assets/{asn.1.499e838e.js → asn.1.64b438d1.js} +1 -1
  10. package/dist/assets/{asterisk.a2fa7dc3.js → asterisk.2d23826f.js} +1 -1
  11. package/dist/assets/authentication.bc20bce5.js +73 -0
  12. package/dist/assets/{autorefresh.d36f34c8.js → autorefresh.65071be2.js} +1 -1
  13. package/dist/assets/aws.6652a1fd.js +1 -0
  14. package/dist/assets/backing-directus.02c28d29.js +1 -0
  15. package/dist/assets/bg-BG.9288ea83.js +1 -0
  16. package/dist/assets/bn-IN.4127b7a4.js +1 -0
  17. package/dist/assets/{br-FR.1ad76918.js → br-FR.d3564938.js} +1 -1
  18. package/dist/assets/{brainfuck.dab31c46.js → brainfuck.cb084ebc.js} +1 -1
  19. package/dist/assets/{ca-ES.365a1fc4.js → ca-ES.f3dfdef6.js} +1 -1
  20. package/dist/assets/cli.6e61515e.js +19 -0
  21. package/dist/assets/cli.863ef0d2.js +4 -0
  22. package/dist/assets/{clike.7aacd908.js → clike.c67024f2.js} +1 -1
  23. package/dist/assets/{clojure.c8d9937a.js → clojure.4409f83f.js} +1 -1
  24. package/dist/assets/cloudron.a348537b.js +1 -0
  25. package/dist/assets/{cmake.e0408576.js → cmake.2f7d66e8.js} +1 -1
  26. package/dist/assets/{cobol.86241640.js → cobol.1d3d945c.js} +1 -1
  27. package/dist/assets/codebase-overview.b46635f9.js +1 -0
  28. package/dist/assets/{coffeescript.6090d9e8.js → coffeescript.7dbfeb38.js} +1 -1
  29. package/dist/assets/collections.60e4b448.js +2 -0
  30. package/dist/assets/collections.80e4a52c.js +106 -0
  31. package/dist/assets/{commonlisp.eb3c5619.js → commonlisp.79d346a3.js} +1 -1
  32. package/dist/assets/config-options.8e2d8e17.js +138 -0
  33. package/dist/assets/content.003d7d7c.js +1 -0
  34. package/dist/assets/creating-extensions.9a98925a.js +11 -0
  35. package/dist/assets/{crystal.01db8e68.js → crystal.6f97295f.js} +1 -1
  36. package/dist/assets/cs-CZ.a3c83b73.js +1 -0
  37. package/dist/assets/{css.b1894218.js → css.87d5fc8d.js} +1 -1
  38. package/dist/assets/{cypher.c0cbf899.js → cypher.b46e268d.js} +1 -1
  39. package/dist/assets/{d.54d4201d.js → d.0277a0cc.js} +1 -1
  40. package/dist/assets/{da-DK.88f53a7d.js → da-DK.3c379038.js} +1 -1
  41. package/dist/assets/{dart.2218881c.js → dart.fd756766.js} +1 -1
  42. package/dist/assets/data-model.086edd1e.js +1 -0
  43. package/dist/assets/data-sharing.27afa5ee.js +1 -0
  44. package/dist/assets/de-DE.350023db.js +1 -0
  45. package/dist/assets/{diff.d7f03886.js → diff.1ed63843.js} +1 -1
  46. package/dist/assets/digitalocean-app-platform.aff2a50b.js +3 -0
  47. package/dist/assets/display-templates.d8e93a19.js +1 -0
  48. package/dist/assets/displays.e528abde.js +49 -0
  49. package/dist/assets/{django.913379d3.js → django.afa30018.js} +1 -1
  50. package/dist/assets/{docker.e1bb4205.js → docker.6f265c46.js} +7 -7
  51. package/dist/assets/{dockerfile.9c7cf88b.js → dockerfile.91c6378e.js} +1 -1
  52. package/dist/assets/documentation.ad1fdaf2.js +1 -0
  53. package/dist/assets/{dtd.dbc97bdb.js → dtd.8b391952.js} +1 -1
  54. package/dist/assets/{dylan.0c2df43b.js → dylan.5532ec69.js} +1 -1
  55. package/dist/assets/{ebnf.4c778620.js → ebnf.f179e348.js} +1 -1
  56. package/dist/assets/{ecl.778611ac.js → ecl.a37bdc2f.js} +1 -1
  57. package/dist/assets/{eiffel.2a73cd14.js → eiffel.883e1bfb.js} +1 -1
  58. package/dist/assets/{el-GR.98199dde.js → el-GR.103ebf8d.js} +1 -1
  59. package/dist/assets/{elm.90002323.js → elm.c40484aa.js} +1 -1
  60. package/dist/assets/email-templates.2bdb87a6.js +2 -0
  61. package/dist/assets/{en-CA.58d818b8.js → en-CA.9ad3a3ab.js} +1 -1
  62. package/dist/assets/{en-GB.74320d21.js → en-GB.c55341c7.js} +1 -1
  63. package/dist/assets/endpoints.2c9172db.js +27 -0
  64. package/dist/assets/{erlang.c8e3989e.js → erlang.60963eb0.js} +1 -1
  65. package/dist/assets/es-419.10094709.js +1 -0
  66. package/dist/assets/es-CL.7f44ec7c.js +1 -0
  67. package/dist/assets/es-ES.3ff9088e.js +1 -0
  68. package/dist/assets/es-MX.17370b17.js +1 -0
  69. package/dist/assets/{et-EE.9e35920e.js → et-EE.fb46a361.js} +1 -1
  70. package/dist/assets/extensions.8d3df212.js +12 -0
  71. package/dist/assets/{fa-IR.f3dc75f9.js → fa-IR.b864f77c.js} +1 -1
  72. package/dist/assets/{factor.a2db9c26.js → factor.6c5ee333.js} +1 -1
  73. package/dist/assets/faq.63c79c18.js +2 -0
  74. package/dist/assets/{fcl.02d85986.js → fcl.8e18cfdc.js} +1 -1
  75. package/dist/assets/{fi-FI.42afdce0.js → fi-FI.14f31cb4.js} +1 -1
  76. package/dist/assets/fields.715d4591.js +135 -0
  77. package/dist/assets/file-library.a4de4015.js +1 -0
  78. package/dist/assets/files.7c2ccfe2.js +189 -0
  79. package/dist/assets/filter-rules.056b97be.js +76 -0
  80. package/dist/assets/filters.2cb82fd9.js +1 -0
  81. package/dist/assets/flows.38f60cc8.js +172 -0
  82. package/dist/assets/flows.f378a262.js +15 -0
  83. package/dist/assets/{fo-FO.ffe478b0.js → fo-FO.cc444b75.js} +1 -1
  84. package/dist/assets/folders.fa66a5ce.js +132 -0
  85. package/dist/assets/{forth.725698ea.js → forth.5d8db187.js} +1 -1
  86. package/dist/assets/{fortran.e9ba7b47.js → fortran.ac24d46b.js} +1 -1
  87. package/dist/assets/{fr-CA.caa3fc8d.js → fr-CA.0e824ae4.js} +1 -1
  88. package/dist/assets/fr-FR.77a5277c.js +1 -0
  89. package/dist/assets/{gas.25b17a72.js → gas.f99de41f.js} +1 -1
  90. package/dist/assets/gcp.6c61b39e.js +60 -0
  91. package/dist/assets/{gfm.a7b6e273.js → gfm.c3250bc4.js} +1 -1
  92. package/dist/assets/{gherkin.1db310b6.js → gherkin.dd3614b2.js} +1 -1
  93. package/dist/assets/github-ci.04483301.js +2 -0
  94. package/dist/assets/glossary.485603d9.js +1 -0
  95. package/dist/assets/glossary.6efd77ad.js +1 -0
  96. package/dist/assets/{go.a0c64ca2.js → go.18ea1afe.js} +1 -1
  97. package/dist/assets/{groovy.b0ac2a1f.js → groovy.d1f3a61a.js} +1 -1
  98. package/dist/assets/{haml.233c9608.js → haml.a346df44.js} +1 -1
  99. package/dist/assets/{handlebars.b13fc00f.js → handlebars.a4eff81f.js} +1 -1
  100. package/dist/assets/{haskell-literate.af8f88ee.js → haskell-literate.57a5243e.js} +1 -1
  101. package/dist/assets/{haskell.adcf73db.js → haskell.3acf2710.js} +1 -1
  102. package/dist/assets/{haxe.f1a75c2e.js → haxe.bdf5968b.js} +1 -1
  103. package/dist/assets/{hi-IN.36e79faa.js → hi-IN.c0703db5.js} +1 -1
  104. package/dist/assets/hooks.f7efe9af.js +60 -0
  105. package/dist/assets/{hr-HR.b1e41c07.js → hr-HR.467388ee.js} +1 -1
  106. package/dist/assets/{htmlembedded.145e9718.js → htmlembedded.03cf45db.js} +1 -1
  107. package/dist/assets/{htmlmixed.6794685c.js → htmlmixed.987f61e9.js} +1 -1
  108. package/dist/assets/{http.5bb61ef1.js → http.a4c95466.js} +1 -1
  109. package/dist/assets/{hu-HU.9c7ec38f.js → hu-HU.47ab36e8.js} +1 -1
  110. package/dist/assets/id-ID.8089647c.js +1 -0
  111. package/dist/assets/{idl.f52ce6c3.js → idl.2fcbfa33.js} +1 -1
  112. package/dist/assets/iis.e068f41a.js +24 -0
  113. package/dist/assets/import-export.d334c127.js +2 -0
  114. package/dist/assets/{index.133de9ba.entry.js → index.02dcddad.entry.js} +222 -226
  115. package/dist/assets/index.087465cd.css +1 -0
  116. package/dist/assets/index.4254793b.js +26 -0
  117. package/dist/assets/{index.895a297f.css → index.6f497914.css} +1 -1
  118. package/dist/assets/{input-rich-text-html.817ccf8b.css → input-rich-text-html.172a38cb.css} +1 -1
  119. package/dist/assets/{input-rich-text-html.e9e92552.js → input-rich-text-html.75413785.js} +47 -47
  120. package/dist/assets/insights.b3ba896c.js +2 -0
  121. package/dist/assets/installation.2025f88b.js +1 -0
  122. package/dist/assets/interfaces.606c790c.js +46 -0
  123. package/dist/assets/introduction.41a72fb0.js +1 -0
  124. package/dist/assets/introduction.527c3465.js +4 -0
  125. package/dist/assets/introduction.5566b96e.js +90 -0
  126. package/dist/assets/introduction.ecd17b88.js +1 -0
  127. package/dist/assets/it-IT.58422a56.js +1 -0
  128. package/dist/assets/items.d1f658a9.js +1 -0
  129. package/dist/assets/items.d9c6a0b4.js +136 -0
  130. package/dist/assets/ja-JP.84597497.js +1 -0
  131. package/dist/assets/{javascript-hint.d8a99d8e.js → javascript-hint.db799360.js} +1 -1
  132. package/dist/assets/{javascript.357d6ab4.js → javascript.46c46918.js} +1 -1
  133. package/dist/assets/{jinja2.64181acd.js → jinja2.71e29364.js} +1 -1
  134. package/dist/assets/{jsx.ba14fb9d.js → jsx.9ae3ca09.js} +1 -1
  135. package/dist/assets/{julia.06a9ee42.js → julia.8b46f23e.js} +1 -1
  136. package/dist/assets/{ko-KR.5a129780.js → ko-KR.9056bd31.js} +1 -1
  137. package/dist/assets/{ku-TR.9eee23ff.js → ku-TR.3a07a57e.js} +1 -1
  138. package/dist/assets/layouts.0aa8d645.js +54 -0
  139. package/dist/assets/layouts.14b157dc.js +1 -0
  140. package/dist/assets/{livescript.687f6ca6.js → livescript.1c767a4c.js} +1 -1
  141. package/dist/assets/localization.c89061c7.js +1 -0
  142. package/dist/assets/{lt-LT.772aac6e.js → lt-LT.f2d719ff.js} +1 -1
  143. package/dist/assets/{lua.40597bfe.js → lua.42e69aa3.js} +1 -1
  144. package/dist/assets/manual.20d730b3.js +12 -0
  145. package/dist/assets/{mark-selection.feeab6e5.js → mark-selection.16acf9dc.js} +1 -1
  146. package/dist/assets/{match-highlighter.8afd3316.js → match-highlighter.8f0791ef.js} +1 -1
  147. package/dist/assets/{mathematica.6569f1d2.js → mathematica.6d38a8bc.js} +1 -1
  148. package/dist/assets/{mbox.d8c16b77.js → mbox.04641caf.js} +1 -1
  149. package/dist/assets/migrations.f13ec64d.js +19 -0
  150. package/dist/assets/{mirc.5f909857.js → mirc.a748cdbe.js} +1 -1
  151. package/dist/assets/{mllike.393c4525.js → mllike.78996bae.js} +1 -1
  152. package/dist/assets/{mn-MN.ae109212.js → mn-MN.c504a096.js} +1 -1
  153. package/dist/assets/{modelica.1180cc4d.js → modelica.e521b192.js} +1 -1
  154. package/dist/assets/modules.9b5ee510.js +69 -0
  155. package/dist/assets/{ms-MY.e50ff23a.js → ms-MY.e6553dad.js} +1 -1
  156. package/dist/assets/{mscgen.429d47df.js → mscgen.4b8f9009.js} +1 -1
  157. package/dist/assets/{multiplex.23c498d1.js → multiplex.c8ef0fcd.js} +1 -1
  158. package/dist/assets/{mumps.f94bba13.js → mumps.44c6f7dd.js} +1 -1
  159. package/dist/assets/{nginx.72bf7bab.js → nginx.0aef90d9.js} +1 -1
  160. package/dist/assets/{nl-NL.b57de112.js → nl-NL.2f00af44.js} +1 -1
  161. package/dist/assets/{no-NO.79458b78.js → no-NO.59f9d425.js} +1 -1
  162. package/dist/assets/notifications.674ee6f9.js +153 -0
  163. package/dist/assets/{nsis.68fe2711.js → nsis.21597a35.js} +1 -1
  164. package/dist/assets/{ntriples.964a7402.js → ntriples.a9ce3eee.js} +1 -1
  165. package/dist/assets/{octave.26aad7e7.js → octave.e4e6969c.js} +1 -1
  166. package/dist/assets/operations.46679bea.js +1 -0
  167. package/dist/assets/operations.9995851b.js +169 -0
  168. package/dist/assets/{overlay.b4b97f23.js → overlay.725bd47b.js} +1 -1
  169. package/dist/assets/overview.3616b560.js +1 -0
  170. package/dist/assets/overview.3c9f8f3d.js +1 -0
  171. package/dist/assets/overview.6438dc44.js +1 -0
  172. package/dist/assets/{oz.1076911f.js → oz.439981ca.js} +1 -1
  173. package/dist/assets/panels.570ee526.js +65 -0
  174. package/dist/assets/{pascal.8ad1e64f.js → pascal.e63a97cf.js} +1 -1
  175. package/dist/assets/{pegjs.c362f9d1.js → pegjs.9b76593b.js} +1 -1
  176. package/dist/assets/{perl.afe37b4f.js → perl.e5aa6f87.js} +1 -1
  177. package/dist/assets/permissions.768d1878.js +178 -0
  178. package/dist/assets/{php.2fcb5b78.js → php.d553fa6c.js} +1 -1
  179. package/dist/assets/{pig.1047d3c6.js → pig.657ad6df.js} +1 -1
  180. package/dist/assets/pl-PL.80cfbed6.js +1 -0
  181. package/dist/assets/plesk.b0ee9a9a.js +27 -0
  182. package/dist/assets/{powershell.a493c1a9.js → powershell.d67ba3f4.js} +1 -1
  183. package/dist/assets/presets-bookmarks.522baf53.js +1 -0
  184. package/dist/assets/presets.d902ebfa.js +164 -0
  185. package/dist/assets/project-settings.1f95b799.js +1 -0
  186. package/dist/assets/projects.1ea6a392.js +1 -0
  187. package/dist/assets/{properties.2ccd56b8.js → properties.da88b13f.js} +1 -1
  188. package/dist/assets/{protobuf.a0e463a0.js → protobuf.4d5afee3.js} +1 -1
  189. package/dist/assets/pt-BR.40750500.js +1 -0
  190. package/dist/assets/pt-PT.fae0fcc3.js +1 -0
  191. package/dist/assets/{pug.3909bb70.js → pug.3f42b721.js} +1 -1
  192. package/dist/assets/{puppet.298e3717.js → puppet.c79d85fc.js} +1 -1
  193. package/dist/assets/{python.099f62ce.js → python.d6ada07e.js} +1 -1
  194. package/dist/assets/{q.64763e8e.js → q.1a68bd88.js} +1 -1
  195. package/dist/assets/query.8abea6de.js +152 -0
  196. package/dist/assets/quickstart.75164dd7.js +9 -0
  197. package/dist/assets/quickstart.9985cb15.js +20 -0
  198. package/dist/assets/{r.f2c0470b.js → r.0c2eb3c2.js} +1 -1
  199. package/dist/assets/relations.9011b2b5.js +115 -0
  200. package/dist/assets/relationships.cbc9b1c5.js +55 -0
  201. package/dist/assets/resources.25cb1e34.js +1 -0
  202. package/dist/assets/revisions.c90ecb76.js +40 -0
  203. package/dist/assets/{ro-RO.5161835a.js → ro-RO.a1adfb6a.js} +1 -1
  204. package/dist/assets/roles.22f7aa37.js +171 -0
  205. package/dist/assets/{rpm.cf84a89e.js → rpm.bf07aaab.js} +1 -1
  206. package/dist/assets/{rst.26def927.js → rst.00e6f3ec.js} +1 -1
  207. package/dist/assets/{ru-RU.94a64be6.js → ru-RU.35703ea4.js} +1 -1
  208. package/dist/assets/{ruby.5fdee9b4.js → ruby.a058e7d1.js} +1 -1
  209. package/dist/assets/running-locally.ce0a8200.js +26 -0
  210. package/dist/assets/{rust.ab31720a.js → rust.f7ca883b.js} +1 -1
  211. package/dist/assets/{sas.d35671d3.js → sas.f9db0ec1.js} +1 -1
  212. package/dist/assets/{sass.be16b14c.js → sass.6c26d08e.js} +1 -1
  213. package/dist/assets/{scheme.da057889.js → scheme.b19aee0d.js} +1 -1
  214. package/dist/assets/sdk.916109ed.js +393 -0
  215. package/dist/assets/security.1963da73.js +1 -0
  216. package/dist/assets/server.afec52fc.js +114 -0
  217. package/dist/assets/settings.835be62f.js +51 -0
  218. package/dist/assets/settings.a02abd85.js +1 -0
  219. package/dist/assets/{shell.ba07ff2f.js → shell.b593f3c7.js} +1 -1
  220. package/dist/assets/{show-hint.4c3405db.js → show-hint.252396d2.js} +1 -1
  221. package/dist/assets/{sieve.9a88af42.js → sieve.b20bbc45.js} +1 -1
  222. package/dist/assets/{simple.306c97cf.js → simple.8b298831.js} +1 -1
  223. package/dist/assets/{sl-SI.719d987e.js → sl-SI.632899f8.js} +1 -1
  224. package/dist/assets/{slim.11e72018.js → slim.2a6f8eee.js} +1 -1
  225. package/dist/assets/{smalltalk.802facc0.js → smalltalk.9bee6f9b.js} +1 -1
  226. package/dist/assets/{smarty.410c0c8d.js → smarty.be5c58b8.js} +1 -1
  227. package/dist/assets/{solr.43e14cbf.js → solr.49b61be0.js} +1 -1
  228. package/dist/assets/{soy.18418f41.js → soy.0ff77af9.js} +1 -1
  229. package/dist/assets/{sparql.5169332f.js → sparql.9f5e3d7d.js} +1 -1
  230. package/dist/assets/{spreadsheet.2a7e9b13.js → spreadsheet.062b3700.js} +1 -1
  231. package/dist/assets/{sql.53c1d1ba.js → sql.a5128e43.js} +1 -1
  232. package/dist/assets/{sr-CS.c513578f.js → sr-CS.2e5b18be.js} +1 -1
  233. package/dist/assets/{sso-examples.b52061be.js → sso-examples.048b39c5.js} +12 -12
  234. package/dist/assets/sso.70be105f.js +22 -0
  235. package/dist/assets/{stex.7c4e0033.js → stex.0331c80e.js} +1 -1
  236. package/dist/assets/{stylus.dfe1c737.js → stylus.6423d65d.js} +1 -1
  237. package/dist/assets/support.fce2dba5.js +1 -0
  238. package/dist/assets/{sv-SE.a70fd097.js → sv-SE.d485ddd3.js} +1 -1
  239. package/dist/assets/{swift.e9cb43f5.js → swift.979a2826.js} +1 -1
  240. package/dist/assets/{tcl.7cc3bef5.js → tcl.fa1b798c.js} +1 -1
  241. package/dist/assets/teams.44eb670e.js +1 -0
  242. package/dist/assets/{textile.353c8497.js → textile.9dbd9b93.js} +1 -1
  243. package/dist/assets/{th-TH.bdbc4a8c.js → th-TH.1e9ab13f.js} +1 -1
  244. package/dist/assets/themes.e4a7762f.js +5 -0
  245. package/dist/assets/{tiddlywiki.f4ebe8db.js → tiddlywiki.fb030aa9.js} +1 -1
  246. package/dist/assets/{tiki.95dd78e4.js → tiki.2e2e82c0.js} +1 -1
  247. package/dist/assets/{toml.f50bb93a.js → toml.0c911c34.js} +1 -1
  248. package/dist/assets/{tornado.3e0cfd8c.js → tornado.466faa98.js} +1 -1
  249. package/dist/assets/tr-TR.feb24957.js +1 -0
  250. package/dist/assets/translation-strings.4ed25965.js +1 -0
  251. package/dist/assets/translations.cf2353ca.js +1 -0
  252. package/dist/assets/triggers.05092cdf.js +1 -0
  253. package/dist/assets/{troff.a2834e8f.js → troff.398ba40d.js} +1 -1
  254. package/dist/assets/{ttcn-cfg.447f138c.js → ttcn-cfg.7c37ebe0.js} +1 -1
  255. package/dist/assets/{ttcn.7d877404.js → ttcn.58e768c8.js} +1 -1
  256. package/dist/assets/{turtle.3b4898fd.js → turtle.2b65ee77.js} +1 -1
  257. package/dist/assets/{twig.53dd7cbe.js → twig.0cf35761.js} +1 -1
  258. package/dist/assets/ubuntu.35dc97df.js +11 -0
  259. package/dist/assets/uk-UA.0e92f9a4.js +1 -0
  260. package/dist/assets/upgrades-migrations.9218bbe9.js +1 -0
  261. package/dist/assets/use-sync.c0f4dfab.js +7 -7
  262. package/dist/assets/user-directory.3daaa818.js +1 -0
  263. package/dist/assets/users-roles-permissions.6e18f7ca.js +1 -0
  264. package/dist/assets/users.4f11a7c5.js +252 -0
  265. package/dist/assets/utilities.0e0d0ace.js +74 -0
  266. package/dist/assets/{vb.c3313898.js → vb.269200a5.js} +1 -1
  267. package/dist/assets/{vbscript.0b106bed.js → vbscript.b9c30330.js} +1 -1
  268. package/dist/assets/{velocity.c20bb29d.js → velocity.a54e5f76.js} +1 -1
  269. package/dist/assets/{verilog.2f6698b4.js → verilog.fd6a1be7.js} +1 -1
  270. package/dist/assets/{vhdl.6127eef7.js → vhdl.846afe81.js} +1 -1
  271. package/dist/assets/{vi-VN.7478a743.js → vi-VN.3e9c985f.js} +1 -1
  272. package/dist/assets/{vue.bb756ea0.js → vue.74e2af44.js} +1 -1
  273. package/dist/assets/{wast.66661aa3.js → wast.38b3f34b.js} +1 -1
  274. package/dist/assets/webhooks.00ee297b.js +147 -0
  275. package/dist/assets/webhooks.01ddb390.js +1 -0
  276. package/dist/assets/{webidl.0a42319e.js → webidl.481665e3.js} +1 -1
  277. package/dist/assets/{xquery.44dd200c.js → xquery.e254ba63.js} +1 -1
  278. package/dist/assets/{yacas.6f3863db.js → yacas.fc329640.js} +1 -1
  279. package/dist/assets/{yaml-frontmatter.42fca60b.js → yaml-frontmatter.84cccda6.js} +1 -1
  280. package/dist/assets/{yaml.d85fc2b2.js → yaml.3a95e8e9.js} +1 -1
  281. package/dist/assets/{z80.2bbe85a7.js → z80.691a0cb9.js} +1 -1
  282. package/dist/assets/zh-CN.432cf71e.js +1 -0
  283. package/dist/assets/zh-TW.cac20c88.js +1 -0
  284. package/dist/index.html +2 -2
  285. package/package.json +10 -7
  286. package/dist/assets/accounts.08433099.js +0 -1
  287. package/dist/assets/activity-log.496fa2f2.css +0 -1
  288. package/dist/assets/activity-log.fd558c9b.js +0 -1
  289. package/dist/assets/activity.0def80ca.js +0 -80
  290. package/dist/assets/ar-SA.1a6c2c65.js +0 -1
  291. package/dist/assets/architecture.6e6f13a7.js +0 -1
  292. package/dist/assets/authentication.a6f04750.js +0 -73
  293. package/dist/assets/aws.3b1c64af.js +0 -1
  294. package/dist/assets/backing-directus.0003d237.js +0 -1
  295. package/dist/assets/bg-BG.749c86ae.js +0 -1
  296. package/dist/assets/bn-IN.1385676c.js +0 -1
  297. package/dist/assets/cli.5153aa86.js +0 -4
  298. package/dist/assets/cli.e8e2526b.js +0 -19
  299. package/dist/assets/cloudron.53c430b8.js +0 -1
  300. package/dist/assets/codebase-overview.e9df94fc.js +0 -1
  301. package/dist/assets/collections.2453db3a.js +0 -106
  302. package/dist/assets/collections.aa896b3f.js +0 -2
  303. package/dist/assets/config-options.b1233b4b.js +0 -138
  304. package/dist/assets/content.1b1e95cf.js +0 -1
  305. package/dist/assets/creating-extensions.bfd7c57c.js +0 -11
  306. package/dist/assets/cs-CZ.6910228b.js +0 -1
  307. package/dist/assets/data-model.0e360572.js +0 -1
  308. package/dist/assets/data-sharing.da96e52e.js +0 -1
  309. package/dist/assets/de-DE.a4271e4f.js +0 -1
  310. package/dist/assets/digitalocean-app-platform.3412cb40.js +0 -3
  311. package/dist/assets/display-templates.915c0c5b.js +0 -1
  312. package/dist/assets/displays.99989c6d.js +0 -49
  313. package/dist/assets/documentation.788d4998.js +0 -1
  314. package/dist/assets/email-templates.1f5ac335.js +0 -2
  315. package/dist/assets/endpoints.aaac7c81.js +0 -27
  316. package/dist/assets/es-419.aa0bf259.js +0 -1
  317. package/dist/assets/es-CL.e42c6c3c.js +0 -1
  318. package/dist/assets/es-ES.5c7e9438.js +0 -1
  319. package/dist/assets/es-MX.b9c72674.js +0 -1
  320. package/dist/assets/extensions.34c12005.js +0 -12
  321. package/dist/assets/faq.89e68608.js +0 -2
  322. package/dist/assets/fields.54985585.js +0 -135
  323. package/dist/assets/file-library.b55c53fe.js +0 -1
  324. package/dist/assets/files.064d5a35.js +0 -187
  325. package/dist/assets/filter-rules.aec0af01.js +0 -76
  326. package/dist/assets/filters.3db1b044.js +0 -1
  327. package/dist/assets/flows.22228af1.js +0 -172
  328. package/dist/assets/flows.3ea1b90f.js +0 -15
  329. package/dist/assets/folders.0024d3d3.js +0 -132
  330. package/dist/assets/fr-FR.615da1bd.js +0 -1
  331. package/dist/assets/gcp.627205b5.js +0 -60
  332. package/dist/assets/github-ci.abd39dcc.js +0 -2
  333. package/dist/assets/glossary.312e2401.js +0 -1
  334. package/dist/assets/glossary.75ca2027.js +0 -1
  335. package/dist/assets/hooks.eda18b02.js +0 -60
  336. package/dist/assets/id-ID.a0052c00.js +0 -1
  337. package/dist/assets/iis.109e5a8a.js +0 -24
  338. package/dist/assets/import-export.3da878a4.js +0 -2
  339. package/dist/assets/index.55cf7b0a.js +0 -26
  340. package/dist/assets/index.ef58525d.css +0 -1
  341. package/dist/assets/insights.c8ed7c1c.js +0 -1
  342. package/dist/assets/installation.78c6d9f6.js +0 -1
  343. package/dist/assets/interfaces.9e145c45.js +0 -46
  344. package/dist/assets/introduction.2e6f5c1d.js +0 -90
  345. package/dist/assets/introduction.78a2a844.js +0 -4
  346. package/dist/assets/introduction.8a589eb0.js +0 -1
  347. package/dist/assets/introduction.fd7c08ac.js +0 -1
  348. package/dist/assets/it-IT.7b7f58ec.js +0 -1
  349. package/dist/assets/items.4205dfa0.js +0 -136
  350. package/dist/assets/items.64ed9295.js +0 -1
  351. package/dist/assets/ja-JP.819a38cf.js +0 -1
  352. package/dist/assets/layouts.3c14b583.js +0 -54
  353. package/dist/assets/layouts.ca8afd39.js +0 -1
  354. package/dist/assets/localization.374b7427.js +0 -1
  355. package/dist/assets/manual.ab601c95.js +0 -10
  356. package/dist/assets/migrations.8989fedc.js +0 -19
  357. package/dist/assets/modules.17c944d1.js +0 -69
  358. package/dist/assets/notifications.33c688c9.js +0 -153
  359. package/dist/assets/operations.22151874.js +0 -169
  360. package/dist/assets/operations.50a08aae.js +0 -1
  361. package/dist/assets/overview.3436365c.js +0 -1
  362. package/dist/assets/overview.623fafba.js +0 -1
  363. package/dist/assets/overview.dbebe94a.js +0 -1
  364. package/dist/assets/panels.385b173a.js +0 -65
  365. package/dist/assets/permissions.f84f8d42.js +0 -178
  366. package/dist/assets/pl-PL.7e448fa9.js +0 -1
  367. package/dist/assets/plesk.f7e3d5ef.js +0 -27
  368. package/dist/assets/presets-bookmarks.1b8ec70c.js +0 -1
  369. package/dist/assets/presets.b1e8b6c1.js +0 -164
  370. package/dist/assets/project-settings.d32669a9.js +0 -1
  371. package/dist/assets/projects.bb50c3df.js +0 -1
  372. package/dist/assets/pt-BR.2d6fa7cc.js +0 -1
  373. package/dist/assets/pt-PT.c28534a0.js +0 -1
  374. package/dist/assets/query.dbe0b56d.js +0 -152
  375. package/dist/assets/quickstart.01824cc9.js +0 -9
  376. package/dist/assets/quickstart.4d7c7736.js +0 -20
  377. package/dist/assets/relations.d29aa86d.js +0 -115
  378. package/dist/assets/relationships.c9c5db8a.js +0 -55
  379. package/dist/assets/resources.00028bf0.js +0 -1
  380. package/dist/assets/revisions.2898106e.js +0 -40
  381. package/dist/assets/roles.9fec37da.js +0 -171
  382. package/dist/assets/running-locally.811d0dcc.js +0 -26
  383. package/dist/assets/sdk.12cd7974.js +0 -393
  384. package/dist/assets/security.8e2a8a41.js +0 -1
  385. package/dist/assets/server.9f12ae3e.js +0 -114
  386. package/dist/assets/settings.149d1dff.js +0 -1
  387. package/dist/assets/settings.28abc1f0.js +0 -51
  388. package/dist/assets/sso.64b2717b.js +0 -22
  389. package/dist/assets/support.94e3734b.js +0 -1
  390. package/dist/assets/teams.9ff14f8f.js +0 -1
  391. package/dist/assets/themes.df7ec485.js +0 -5
  392. package/dist/assets/tr-TR.d7a7361f.js +0 -1
  393. package/dist/assets/translations.5191ab7c.js +0 -1
  394. package/dist/assets/triggers.1f1ace5f.js +0 -1
  395. package/dist/assets/ubuntu.f4c21886.js +0 -11
  396. package/dist/assets/uk-UA.473dd1c9.js +0 -1
  397. package/dist/assets/upgrades-migrations.15498a47.js +0 -1
  398. package/dist/assets/user-directory.47c8beb2.js +0 -1
  399. package/dist/assets/users-roles-permissions.005388fa.js +0 -1
  400. package/dist/assets/users.84251ab9.js +0 -252
  401. package/dist/assets/utilities.26e6a9e8.js +0 -74
  402. package/dist/assets/webhooks.4eeecb7d.js +0 -147
  403. package/dist/assets/webhooks.61b11e7d.js +0 -1
  404. package/dist/assets/zh-CN.c51e7308.js +0 -1
  405. package/dist/assets/zh-TW.8ef6cec8.js +0 -1
@@ -0,0 +1,135 @@
1
+ import{a as n,o as d,b as c,w as s,g as e,e as i,B as l}from"./runtime-core.esm-bundler.b1f35d24.js";const h={class:"markdown-body"},p={class:"two-up"},u={class:"left"},f=l("Fields are individual pieces of content within an item. They are mapped to columns in the database. "),g=l("Learn more about Fields"),m=l("."),_=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-field-object"},"The Field Object ")]),e("li",null,[e("a",{href:"#list-all-fields"},"List All Fields ")]),e("li",null,[e("a",{href:"#list-fields-in-collection"},"List Fields in Collection ")]),e("li",null,[e("a",{href:"#retrieve-a-field"},"Retrieve a Field ")]),e("li",null,[e("a",{href:"#create-a-field"},"Create a Field ")]),e("li",null,[e("a",{href:"#update-a-field"},"Update a Field ")]),e("li",null,[e("a",{href:"#delete-a-field"},"Delete a Field ")])])])])],-1),b=e("hr",null,null,-1),j=e("h2",{id:"the-field-object",tabindex:"-1"},[l("The Field Object "),e("a",{class:"header-anchor",href:"#the-field-object"},"#")],-1),y={class:"two-up"},x={class:"left"},v={class:"definitions"},q=e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection the field resides in.")],-1),T=e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" The identifier of the field. This matches the table column name.")],-1),w=e("code",null,"type",-1),A=l(),k=e("strong",null,"string",-1),E=e("br",null,null,-1),S=l(" The Directus data type of the field. See "),P=l("Types"),F=l(" for possible options."),R=e("h4",{id:"meta",tabindex:"-1"},[l("Meta "),e("a",{class:"header-anchor",href:"#meta"},"#")],-1),L=e("p",null,"Directus metadata, primarily used in the Admin App. Meta is optional.",-1),C=e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),l(),e("strong",null,"integer"),e("br"),l(" Primary key of the metadata row in "),e("code",null,"directus_fields"),l(".")]),e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" The name of the collection this field resides in.")]),e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" Identifier of the field. Matches the column name in the database.")]),e("p",null,[e("code",null,"special"),l(),e("strong",null,"string"),e("br"),l(" Any special transform flags that apply to this field.")]),e("p",null,[e("code",null,"interface"),l(),e("strong",null,"string"),e("br"),l(" The interface used for this field.")]),e("p",null,[e("code",null,"options"),l(),e("strong",null,"object"),e("br"),l(" The interface options configured for this field. The structure is based on the interface used.")]),e("p",null,[e("code",null,"display"),l(),e("strong",null,"string"),e("br"),l(" The display used for this field.")]),e("p",null,[e("code",null,"display_options"),l(),e("strong",null,"string"),e("br"),l(" The configured options for the used display.")]),e("p",null,[e("code",null,"readonly"),l(),e("strong",null,"boolean"),e("br"),l(" If the field is considered readonly in the Admin App.")]),e("p",null,[e("code",null,"hidden"),l(),e("strong",null,"boolean"),e("br"),l(" If the field is hidden from the edit page in the Admin App.")]),e("p",null,[e("code",null,"sort"),l(),e("strong",null,"integer"),e("br"),l(" Where this field is shown on the edit page in the Admin App.")]),e("p",null,[e("code",null,"width"),l(),e("strong",null,"string"),e("br"),l(" How wide the interface is rendered on the edit page in the Admin App. One of "),e("code",null,"half"),l(", "),e("code",null,"half-left"),l(", "),e("code",null,"half-right"),l(", "),e("code",null,"half-space"),l(", "),e("code",null,"full"),l(", "),e("code",null,"fill"),l(".")]),e("p",null,[e("code",null,"translations"),l(),e("strong",null,"array"),e("br"),l(" How this field\u2019s name is displayed in the different languages in the Admin App.")]),e("p",null,[e("code",null,"note"),l(),e("strong",null,"string"),e("br"),l(" Short description displayed in the Admin App.")])],-1),Q=e("h4",{id:"schema",tabindex:"-1"},[l("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")],-1),I=e("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers. Note: schema is optional. If a field exist in directus_fields, but not in the database, it\u2019s an alias commonly used for relational (o2m) or presentation purposes in the Admin App.",-1),G=e("div",{class:"definitions"},[e("p",null,[e("code",null,"name"),l(),e("strong",null,"string"),e("br"),l(" Identifier of the field. Matches the column name in the database.")]),e("p",null,[e("code",null,"table"),l(),e("strong",null,"string"),e("br"),l(" Name of the table the column resides in.")]),e("p",null,[e("code",null,"data_type"),l(),e("strong",null,"string"),e("br"),l(" The datatype as used in the database. Note: this value is database vendor specific.")]),e("p",null,[e("code",null,"default_value"),l(),e("strong",null,"any"),e("br"),l(" The configured default value for the column.")]),e("p",null,[e("code",null,"max_length"),l(),e("strong",null,"integer"),e("br"),l(" Configured length for varchar-type columns.")]),e("p",null,[e("code",null,"numeric_precision"),l(),e("strong",null,"integer"),e("br"),l(" Precision for integer/float/decimal type fields.")]),e("p",null,[e("code",null,"numeric_scale"),l(),e("strong",null,"integer"),e("br"),l(" Scale for integer/float/decimal type fields.")]),e("p",null,[e("code",null,"is_nullable"),l(),e("strong",null,"boolean"),e("br"),l(" Whether or not the column is nullable. This is what is used as the \u201Crequired\u201D state in Directus.")]),e("p",null,[e("code",null,"is_primary_key"),l(),e("strong",null,"boolean"),e("br"),l(" Whether or not the field is the primary key of the table.")]),e("p",null,[e("code",null,"foreign_key_column"),l(),e("strong",null,"string"),e("br"),l(" If the current column has a foreign key constraint, this points to the related column.")]),e("p",null,[e("code",null,"foreign_key_table"),l(),e("strong",null,"string"),e("br"),l(" If the current column has a foreign key constraint, this points to the related table.")]),e("p",null,[e("code",null,"comment"),l(),e("strong",null,"string"),e("br"),l(" Comment as stored in the database.")])],-1),O=e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[l(`{
2
+ `),e("span",{class:"hljs-attr"},'"collection"'),l(": "),e("span",{class:"hljs-string"},'"articles"'),l(`,
3
+ `),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"id"'),l(`,
4
+ `),e("span",{class:"hljs-attr"},'"type"'),l(": "),e("span",{class:"hljs-string"},'"integer"'),l(`,
5
+ `),e("span",{class:"hljs-attr"},'"meta"'),l(`: {
6
+ `),e("span",{class:"hljs-attr"},'"id"'),l(": "),e("span",{class:"hljs-number"},"16"),l(`,
7
+ `),e("span",{class:"hljs-attr"},'"collection"'),l(": "),e("span",{class:"hljs-string"},'"articles"'),l(`,
8
+ `),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"id"'),l(`,
9
+ `),e("span",{class:"hljs-attr"},'"special"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
10
+ `),e("span",{class:"hljs-attr"},'"interface"'),l(": "),e("span",{class:"hljs-string"},'"numeric"'),l(`,
11
+ `),e("span",{class:"hljs-attr"},'"options"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
12
+ `),e("span",{class:"hljs-attr"},'"display"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
13
+ `),e("span",{class:"hljs-attr"},'"display_options"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
14
+ `),e("span",{class:"hljs-attr"},'"readonly"'),l(": "),e("span",{class:"hljs-literal"},"true"),l(`,
15
+ `),e("span",{class:"hljs-attr"},'"hidden"'),l(": "),e("span",{class:"hljs-literal"},"true"),l(`,
16
+ `),e("span",{class:"hljs-attr"},'"sort"'),l(": "),e("span",{class:"hljs-number"},"1"),l(`,
17
+ `),e("span",{class:"hljs-attr"},'"width"'),l(": "),e("span",{class:"hljs-string"},'"full"'),l(`,
18
+ `),e("span",{class:"hljs-attr"},'"translations"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
19
+ `),e("span",{class:"hljs-attr"},'"note"'),l(": "),e("span",{class:"hljs-string"},'"The unique identifier of the article"'),l(`
20
+ },
21
+ `),e("span",{class:"hljs-attr"},'"schema"'),l(`: {
22
+ `),e("span",{class:"hljs-attr"},'"name"'),l(": "),e("span",{class:"hljs-string"},'"id"'),l(`,
23
+ `),e("span",{class:"hljs-attr"},'"table"'),l(": "),e("span",{class:"hljs-string"},'"articles"'),l(`,
24
+ `),e("span",{class:"hljs-attr"},'"data_type"'),l(": "),e("span",{class:"hljs-string"},'"integer"'),l(`,
25
+ `),e("span",{class:"hljs-attr"},'"default_value"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
26
+ `),e("span",{class:"hljs-attr"},'"max_length"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
27
+ `),e("span",{class:"hljs-attr"},'"numeric_precision"'),l(": "),e("span",{class:"hljs-number"},"32"),l(`,
28
+ `),e("span",{class:"hljs-attr"},'"numeric_scale"'),l(": "),e("span",{class:"hljs-number"},"0"),l(`,
29
+ `),e("span",{class:"hljs-attr"},'"is_nullable"'),l(": "),e("span",{class:"hljs-literal"},"false"),l(`,
30
+ `),e("span",{class:"hljs-attr"},'"is_primary_key"'),l(": "),e("span",{class:"hljs-literal"},"true"),l(`,
31
+ `),e("span",{class:"hljs-attr"},'"has_auto_increment"'),l(": "),e("span",{class:"hljs-literal"},"true"),l(`,
32
+ `),e("span",{class:"hljs-attr"},'"foreign_key_column"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
33
+ `),e("span",{class:"hljs-attr"},'"foreign_key_table"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
34
+ `),e("span",{class:"hljs-attr"},'"comment"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`
35
+ }
36
+ }
37
+ `)])])],-1),D=e("hr",null,null,-1),B=e("h2",{id:"list-all-fields",tabindex:"-1"},[l("List All Fields "),e("a",{class:"header-anchor",href:"#list-all-fields"},"#")],-1),H=e("p",null,"List the available fields.",-1),M=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters",tabindex:"-1"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")]),e("p",null,"This endpoint doesn\u2019t currently support any query parameters."),e("h3",{id:"returns",tabindex:"-1"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")]),e("p",null,[l("An array of "),e("a",{href:"#the-field-object"},"field objects"),l(".")])]),e("div",{class:"right"},[e("h3",{id:"rest-api",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")]),e("pre",null,[e("code",null,`GET /fields
38
+ `)]),e("h3",{id:"graphql",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
39
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),l(` {
40
+ fields: [directus_fields]
41
+ }
42
+ `)])]),e("h5",{id:"example",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
43
+ fields {
44
+ collection
45
+ field
46
+ }
47
+ }
48
+ `)])])])],-1),N=e("hr",null,null,-1),W=e("h2",{id:"list-fields-in-collection",tabindex:"-1"},[l("List Fields in Collection "),e("a",{class:"header-anchor",href:"#list-fields-in-collection"},"#")],-1),U=e("p",null,"List the available fields in a given collection.",-1),V=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-1",tabindex:"-1"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-1"},"#")]),e("p",null,"This endpoint doesn\u2019t currently support any query parameters."),e("h3",{id:"returns-1",tabindex:"-1"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-1"},"#")]),e("p",null,[l("An array of "),e("a",{href:"#the-field-object"},"field objects"),l(".")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-1",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-1"},"#")]),e("pre",null,[e("code",null,`GET /fields/:collection
49
+ `)]),e("h5",{id:"example-1",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-1"},"#")]),e("pre",null,[e("code",null,`GET /fields/articles
50
+ `)]),e("h3",{id:"graphql-1",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-1"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
51
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),l(` {
52
+ fields_in_collection(collection:`),e("span",{class:"hljs-type"}," String"),l(`!): directus_fields
53
+ }
54
+ `)])]),e("h5",{id:"example-2",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
55
+ fields_in_collection(collection: `),e("span",{class:"hljs-string"},'"articles"'),l(`) {
56
+ collection
57
+ field
58
+ }
59
+ }
60
+ `)])])])],-1),z=e("hr",null,null,-1),J=e("h2",{id:"retrieve-a-field",tabindex:"-1"},[l("Retrieve a Field "),e("a",{class:"header-anchor",href:"#retrieve-a-field"},"#")],-1),K=e("p",null,"Get a single field in a given collection.",-1),X=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-2",tabindex:"-1"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")]),e("p",null,"This endpoint doesn\u2019t currently support any query parameters."),e("h3",{id:"returns-2",tabindex:"-1"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")]),e("p",null,[l("A "),e("a",{href:"#the-field-object"},"field object"),l(".")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-2",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",null,`GET /fields/:collection/:field
61
+ `)]),e("h5",{id:"example-3",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-3"},"#")]),e("pre",null,[e("code",null,`GET /fields/articles/title
62
+ `)]),e("h3",{id:"graphql-2",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
63
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),l(` {
64
+ fields_by_name(collection:`),e("span",{class:"hljs-type"}," String"),l("!, field:"),e("span",{class:"hljs-type"}," String"),l(`!): directus_fields
65
+ }
66
+ `)])]),e("h5",{id:"example-4",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-4"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
67
+ fields_by_name(collection: `),e("span",{class:"hljs-string"},'"articles"'),l(", field: "),e("span",{class:"hljs-string"},'"title"'),l(`) {
68
+ collection
69
+ field
70
+ }
71
+ }
72
+ `)])])])],-1),Y=e("hr",null,null,-1),Z=e("h2",{id:"create-a-field",tabindex:"-1"},[l("Create a Field "),e("a",{class:"header-anchor",href:"#create-a-field"},"#")],-1),$=e("p",null,"Create a new field in the given collection.",-1),ee=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-3",tabindex:"-1"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")]),e("p",null,"This endpoint doesn\u2019t currently support any query parameters."),e("h3",{id:"request-body",tabindex:"-1"},[l("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")]),e("div",{class:"definitions"},[e("p",null,[e("code",null,"field"),l(),e("strong",null,"Required"),e("br"),l(" Field key, also used as the column name.")]),e("p",null,[e("code",null,"type"),l(),e("strong",null,"Required"),e("br"),l(" One of the Directus types. This in turn controls what datatype is used for the column in the database. Setting the type to "),e("code",null,"alias"),l(" prevents a column from being created in the database.")]),e("p",null,[e("code",null,"meta"),e("br"),l(" Any of the optional meta values in the "),e("a",{href:"#the-field-object"},"field object"),l(".")]),e("p",null,[e("code",null,"schema"),e("br"),l(" Any of the optional schema values in the "),e("a",{href:"#the-field-object"},"field object"),l(".")])]),e("h3",{id:"returns-3",tabindex:"-1"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")]),e("p",null,[l("The "),e("a",{href:"#the-field-object"},"field object"),l(" for the created field.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-3",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",null,`POST /fields/:collection
73
+ `)]),e("h5",{id:"example-5",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-5"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /fields/articles"),l(`
74
+
75
+ {
76
+ `),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"title"'),l(`,
77
+ `),e("span",{class:"hljs-attr"},'"type"'),l(": "),e("span",{class:"hljs-string"},'"string"'),l(`,
78
+ `),e("span",{class:"hljs-attr"},'"meta"'),l(`: {
79
+ `),e("span",{class:"hljs-attr"},'"icon"'),l(": "),e("span",{class:"hljs-string"},'"title"'),l(`
80
+ },
81
+ `),e("span",{class:"hljs-attr"},'"schema"'),l(`: {
82
+ `),e("span",{class:"hljs-attr"},'"default_value"'),l(": "),e("span",{class:"hljs-string"},'"Hello World"'),l(`
83
+ }
84
+ }
85
+ `)])]),e("h3",{id:"graphql-3",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
86
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),l(` {
87
+ create_fields_item(collection:`),e("span",{class:"hljs-type"}," String"),l(`!, data: create_directus_fields_input!): directus_fields
88
+ }
89
+ `)])]),e("h5",{id:"example-6",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),l(` {
90
+ create_fields_item(
91
+ collection: `),e("span",{class:"hljs-string"},'"articles"'),l(`
92
+ data: { field: `),e("span",{class:"hljs-string"},'"title"'),l(", "),e("span",{class:"hljs-keyword"},"type"),l(": "),e("span",{class:"hljs-string"},'"string"'),l(", meta: { icon: "),e("span",{class:"hljs-string"},'"title"'),l(" }, "),e("span",{class:"hljs-keyword"},"schema"),l(": { default_value: "),e("span",{class:"hljs-string"},'"Hello World"'),l(` } }
93
+ ) {
94
+ collection
95
+ field
96
+ }
97
+ }
98
+ `)])])])],-1),le=e("hr",null,null,-1),se=e("h2",{id:"update-a-field",tabindex:"-1"},[l("Update a Field "),e("a",{class:"header-anchor",href:"#update-a-field"},"#")],-1),te=e("p",null,"Updates the given field in the given collection.",-1),ae=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-4",tabindex:"-1"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")]),e("p",null,"This endpoint doesn\u2019t currently support any query parameters."),e("h3",{id:"request-body-1",tabindex:"-1"},[l("Request Body "),e("a",{class:"header-anchor",href:"#request-body-1"},"#")]),e("div",{class:"definitions"},[e("p",null,[e("code",null,"type"),e("br"),l(" The new type for the field.")]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Changing Type"),e("p",null,"Types may not be compatible, and/or data might be truncated / corrupted. Please be careful when changing types of an existing field with content.")]),e("p",null,[e("code",null,"meta"),e("br"),l(" Any of the optional meta values in the "),e("a",{href:"#the-field-object"},"field object"),l(".")]),e("p",null,[e("code",null,"schema"),e("br"),l(" Any of the optional schema values in the "),e("a",{href:"#the-field-object"},"field object"),l(".")])]),e("p",null,"Updating the field name is not supported at this time."),e("h3",{id:"returns-4",tabindex:"-1"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")]),e("p",null,[l("The "),e("a",{href:"#the-field-object"},"field object"),l(" for the updated field.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-4",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`PATCH /fields/:collection/:field
99
+ `)]),e("h5",{id:"example-7",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-7"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /fields/articles/title"),l(`
100
+
101
+ {
102
+ `),e("span",{class:"hljs-attr"},'"meta"'),l(`: {
103
+ `),e("span",{class:"hljs-attr"},'"note"'),l(": "),e("span",{class:"hljs-string"},'"Put the title here"'),l(`
104
+ },
105
+ `),e("span",{class:"hljs-attr"},'"schema"'),l(`: {
106
+ `),e("span",{class:"hljs-attr"},'"default_value"'),l(": "),e("span",{class:"hljs-string"},'"Hello World!"'),l(`
107
+ }
108
+ }
109
+ `)])]),e("h3",{id:"graphql-4",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
110
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),l(` {
111
+ update_fields_item(collection:`),e("span",{class:"hljs-type"}," String"),l("!, field:"),e("span",{class:"hljs-type"}," String"),l(`!, data: update_directus_fields_input!): directus_fields
112
+ }
113
+ `)])]),e("h5",{id:"example-8",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),l(` {
114
+ update_fields_item(
115
+ collection: `),e("span",{class:"hljs-string"},'"articles"'),l(`
116
+ field: `),e("span",{class:"hljs-string"},'"title"'),l(`
117
+ data: { meta: { note: `),e("span",{class:"hljs-string"},'"Put the title here"'),l(" }, "),e("span",{class:"hljs-keyword"},"schema"),l(": { default_value: "),e("span",{class:"hljs-string"},'"Hello World!"'),l(` } }
118
+ ) {
119
+ collection
120
+ field
121
+ }
122
+ }
123
+ `)])])])],-1),ne=e("hr",null,null,-1),ie=e("h2",{id:"delete-a-field",tabindex:"-1"},[l("Delete a Field "),e("a",{class:"header-anchor",href:"#delete-a-field"},"#")],-1),re=e("p",null,"Deletes the given field in the given collection.",-1),oe=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Destructive"),e("p",null,"Be aware, this will delete the column from the database, including all data in it. This action can\u2019t be undone.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-5",tabindex:"-1"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`DELETE /fields/:collection/:field
124
+ `)]),e("h5",{id:"example-9",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-9"},"#")]),e("pre",null,[e("code",null,`DELETE /fields/articles/title
125
+ `)]),e("h3",{id:"graphql-5",tabindex:"-1"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
126
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),l(` {
127
+ delete_fields_item(collection:`),e("span",{class:"hljs-type"}," String"),l("!, field:"),e("span",{class:"hljs-type"}," String"),l(`!): delete_field
128
+ }
129
+ `)])]),e("h5",{id:"example-10",tabindex:"-1"},[l("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),l(` {
130
+ delete_fields_item(collection: `),e("span",{class:"hljs-string"},'"articles"'),l(", field: "),e("span",{class:"hljs-string"},'"title"'),l(`) {
131
+ collection
132
+ field
133
+ }
134
+ }
135
+ `)])])])],-1),ue="Fields",fe=!1,ge="page-reference",me={name:"fields",setup(de,{expose:r}){const t={title:"Fields",modularExtension:!1,pageClass:"page-reference"};return r({frontmatter:t}),(ce,he)=>{const a=n("router-link"),o=n("docs-wrapper");return d(),c(o,{frontmatter:t},{default:s(()=>[e("div",h,[e("div",p,[e("div",u,[e("blockquote",null,[e("p",null,[f,i(a,{to:"/docs/getting-started/glossary/#fields"},{default:s(()=>[g]),_:1}),m])])]),_]),b,j,e("div",y,[e("div",x,[e("div",v,[q,T,e("p",null,[w,A,k,E,S,i(a,{to:"/docs/getting-started/glossary/#app"},{default:s(()=>[P]),_:1}),F])]),R,L,C,Q,I,G]),O]),D,B,H,M,N,W,U,V,z,J,K,X,Y,Z,$,ee,le,se,te,ae,ne,ie,re,oe])]),_:1})}}};export{me as default,fe as modularExtension,ge as pageClass,ue as title};
@@ -0,0 +1 @@
1
+ import{a as s,o as d,b as c,w as t,g as e,e as i,B as l}from"./runtime-core.esm-bundler.b1f35d24.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,"The File Library Module aggregates all files within the Directus Project into one consolidated library. It is a full-featured Digital Asset Management (DAM) system for storing, organizing, browsing, and transforming your various files and assets.")],-1),p=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/file-library-20220307A.webp",alt:"File Library"})],-1),f=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#how-it-works"},"How it Works ")]),e("li",null,[e("a",{href:"#files"},"Files ")]),e("li",null,[e("a",{href:"#edit-an-image"},"Edit an Image ")]),e("li",null,[e("a",{href:"#upload-a-file"},"Upload a File ")]),e("li",null,[e("a",{href:"#replace-a-file"},"Replace a File ")]),e("li",null,[e("a",{href:"#folders"},"Folders ")]),e("li",null,[e("a",{href:"#create-a-folder"},"Create a Folder ")]),e("li",null,[e("a",{href:"#rename-a-folder"},"Rename a Folder ")]),e("li",null,[e("a",{href:"#move-a-folder"},"Move a Folder ")]),e("li",null,[e("a",{href:"#delete-a-folder"},"Delete a Folder ")]),e("li",null,[e("a",{href:"#more-help"},"More Help ")])])])],-1),_={class:"warning hint"},m=e("div",{class:"hint-title"},"More Documents on Folder and File Management",-1),g=l("This is a non-technical, no-code guide to the File Library Module. Please note there is documentation on programmatic "),b=l("Folder"),F=l(" and "),y=l("File"),v=l(" management via the API."),w=e("h2",{id:"how-it-works",tabindex:"-1"},[l("How it Works "),e("a",{class:"header-anchor",href:"#how-it-works"},"#")],-1),k={class:"tip hint"},A=e("div",{class:"hint-title"},"Required Knowledge",-1),C=l("Familiarity with the "),D=l("Collections Page"),T=l(" will be helpful but not necessary."),I=l("The File Library acts as one big "),L=e("a",{href:"#folders"},"Folder",-1),P=l(" to store all uploaded "),x=e("a",{href:"#files"},"Files",-1),M=l(". Sub-folders can be created within the File Library to help Files stay organized. Folders and File information are stored in regular Collections, which means "),S=l("User and Role access permissions"),E=l(" are fully configurable and granular on both Folders and Files. Multiple files can be uploaded at once through the app and also programmatically via the API. Any type of file can be uploaded, "),H=e("em",null,"not just images",-1),U=l(". When a Folder is selected from the Navigation Bar, the "),R=e("a",{href:"#folders"},"File Listing Page",-1),B=l(" is presented. This page has all the same features and functionalities as the "),N=l("Collections Page"),W=l("."),j=e("video",{title:"How the File Library Works",autoplay:"",muted:"",loop:"",controls:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/how-it-works-20220305A.mp4",type:"video/mp4"}),e("p",null,[l(" Your browser is not displaying the video for some reason. Here's a "),e("a",{href:""},"link to the video"),l(" instead. ")])],-1),z=e("ol",null,[e("li",null,[l("Select a Folder. There are two options: "),e("ul",null,[e("li",null,"Choose desired Folder from the Navigation Bar."),e("li",null,[l("Click "),e("span",{mi:"",btn:"",sec:""},"create_new_folder"),l(" in the Page Header, name your folder, and click "),e("strong",null,"\u201CSave\u201D"),l(".")])])]),e("li",null,[l("Click "),e("span",{mi:"",btn:""},"add"),l(" in the Page Header. A popover will appear.")]),e("li",null,[l("Upload your file. You have 3 options: "),e("ul",null,[e("li",null,"Drag a file from your desktop to the popup."),e("li",null,"Click the popup area to manually select a file from your device."),e("li",null,[l("Click "),e("span",{mi:"",icon:""},"more_vert"),l(" in the popover and choose "),e("strong",null,"\u201CImport from URL\u201D"),l(".")])])]),e("li",null,"Optional: Click the File Display to open the File Details Page and fill in information as desired.")],-1),O=e("h2",{id:"files",tabindex:"-1"},[l("Files "),e("a",{class:"header-anchor",href:"#files"},"#")],-1),K=l("When a file is clicked in the File Listing Page, the File Details Page appears. This is a custom form for viewing assets and embeds, with core Fields included out-of-the-box (see below), and the ability for Administrators to add additional custom Fields. This page has the same features and functionality as the "),V=l("Item Details Page"),Y=l("."),q=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/files-20220305A.webp",alt:"Files"})],-1),J=e("h3",{id:"action-buttons",tabindex:"-1"},[l("Action Buttons "),e("a",{class:"header-anchor",href:"#action-buttons"},"#")],-1),X=e("p",null,"Notice the following Buttons in the Header:",-1),G=e("ul",null,[e("li",null,[e("span",{mi:"",btn:""},"check"),l(" \u2013 Saves any edits made to the file. ")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"tune"),l(" \u2013 Please see [Edit an Image](#edit-an-image) to learn more. ")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"save_alt"),l(" \u2013 Downloads the file to your current device. ")]),e("li",null,[e("span",{mi:"",btn:"",sec:""},"drive_file_move"),l(" \u2013 Moves selected File(s) to another Folder. ")]),e("li",null,[e("span",{mi:"",btn:"",dngr:""},"delete"),l(" \u2013 Permanently removes the File and its metadata. This action is permanent and cannot be undone. ")])],-1),Q=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Deleting Files Linked to Items"),e("p",null,[l("By default, Directus will not allow you to delete a File until you remove it from any and all related Items. However, this behavior can be reconfigured so that Files automatically update when the image is deleted by setting the relational constraint of your File Field to "),e("code",null,"SET NULL"),l(" or "),e("code",null,"CASCADE"),l(" when the File is deleted.")])],-1),Z=e("h3",{id:"file-details",tabindex:"-1"},[l("File Details "),e("a",{class:"header-anchor",href:"#file-details"},"#")],-1),$=e("p",null,[l("The Files Collection comes pre-configured with the following Fields out of the box. New Fields can be created and customized as needed in "),e("strong",null,"Settings > Data Model"),l(". However the pre-configured Fields cannot be changed or deleted.")],-1),ee=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/file-details-20220305A.webp",alt:"File Details"})],-1),le=e("ul",null,[e("li",null,[e("strong",null,"Preview"),l(" \u2013 A preview of the image or file.")]),e("li",null,[e("strong",null,"Title"),l(" \u2013 A title for the File.")]),e("li",null,[e("strong",null,"Description"),l(" \u2013 A description of the File.")]),e("li",null,[e("strong",null,"Tags"),l(" \u2013 Keywords used for search-ability.")]),e("li",null,[e("strong",null,"Location"),l(" \u2013 An optional location "),e("em",null,"(e.g. where a photo was taken)"),l(".")]),e("li",null,[e("strong",null,"Storage"),l(" \u2013 Which storage adapter is used to store the file asset.")]),e("li",null,[e("strong",null,"Filename (Disk)"),l(" \u2013 LOCKED. This is the actual name of the file in storage.")]),e("li",null,[e("strong",null,"Filename (Download)"),l(" \u2013 Allows you to set the name of the file when it is downloaded.")])],-1),te=e("h3",{id:"file-sidebar",tabindex:"-1"},[l("File Sidebar "),e("a",{class:"header-anchor",href:"#file-sidebar"},"#")],-1),oe=e("p",null,"The file sidebar also includes the following details, which are not editable and serve as metadata.",-1),ie=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/file-sidebar-20220305A.webp",alt:"File Sidebar"})],-1),ae=e("ul",null,[e("li",null,[e("strong",null,"Type"),l(" \u2013 The MIME type of the file, displayed in the App as a formatted media type.")]),e("li",null,[e("strong",null,"Dimensions"),l(" \u2013 "),e("em",null,"Images only"),l(". The width and height of the image in pixels.")]),e("li",null,[e("strong",null,"Size"),l(" \u2013 The file-size the asset takes up in the storage adapter.")]),e("li",null,[e("strong",null,"Created"),l(" \u2013 The timestamp of when the file was uploaded to the Project.")]),e("li",null,[e("strong",null,"Owner"),l(" \u2013 The User that uploaded the file to the Project.")]),e("li",null,[e("strong",null,"Modified"),l(" \u2013 The timestamp of when the file was last modified.")]),e("li",null,[e("strong",null,"Edited By"),l(" \u2013 The User that modified the File.")]),e("li",null,[e("strong",null,"Folder"),l(" \u2013 The current parent folder that contains the File.")]),e("li",null,[e("strong",null,"Metadata"),l(" \u2013 Metadata JSON dump of the File\u2019s EXIF, IPTC, and ICC information.")])],-1),se=e("h2",{id:"edit-an-image",tabindex:"-1"},[l("Edit an Image "),e("a",{class:"header-anchor",href:"#edit-an-image"},"#")],-1),ne=e("p",null,"Rotate, crop, flip, or adjust aspect ratios of an image.",-1),re=e("video",{alt:"Edit an Image",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220516A/edit-an-image-20220516A.mp4",type:"video/mp4"})],-1),de=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", click a file to open its detail page.")]),e("li",null,[l("Click the "),e("span",{mi:"",btn:"",sec:""},"tune"),l(" button in the top right to open the image editor.")]),e("li",null,[l("Make your changes and click "),e("span",{mi:"",btn:""},"check"),l(" in the top right to save the updates.")])],-1),ce=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Irreversible Change"),e("p",null,"Edits overwrite the original file on disk. This can\u2019t be reversed.")],-1),he=e("h2",{id:"upload-a-file",tabindex:"-1"},[l("Upload a File "),e("a",{class:"header-anchor",href:"#upload-a-file"},"#")],-1),ue=l("We covered the File Library\u2019s three upload methods in "),pe=e("a",{href:"#how-it-works"},"How it Works",-1),fe=l(". Keep in mind that files can also be added through different Interfaces as well. For example, Users can upload an Avatar image when they fill in their User Details. Similarly, Items with an Image Field will have a file upload Interface on the Item Detail page. Files can also be "),_e=l("uploaded programmatically via the API"),me=l("."),ge=e("h2",{id:"replace-a-file",tabindex:"-1"},[l("Replace a File "),e("a",{class:"header-anchor",href:"#replace-a-file"},"#")],-1),be=e("p",null,"When a file is replaced, its existing info and all relationships are kept.",-1),Fe=e("video",{alt:"Replace a File",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220608A/replace-a-file-20220608A.mp4",type:"video/mp4"})],-1),ye=e("ol",null,[e("li",null,"Click the Image Preview on the File Detail page. A popup will appear."),e("li",null,[l("Upload your file. You have 3 options: "),e("ul",null,[e("li",null,"Drag a file from your desktop to the popup."),e("li",null,"Click the popup area to manually select a file from your device."),e("li",null,[l("Click "),e("span",{mi:"",icon:""},"more_vert"),l(" in the popover and choose "),e("strong",null,"\u201CImport from URL\u201D"),l(".")])])])],-1),ve=e("h2",{id:"folders",tabindex:"-1"},[l("Folders "),e("a",{class:"header-anchor",href:"#folders"},"#")],-1),we=e("p",null,"Folders provide the organization system for Files.",-1),ke=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/folders-20220305A.webp",alt:"Folders"})],-1),Ae=l("They can be named, renamed, and nested as sub-folders anywhere in the Folder hierarchy. Once a Folder is selected from the Navigation Bar, File Listing Page opens. The File Listing Page displays all Files within a Folder. It also enables all other features and functionalities from the "),Ce=l("Collections Page"),De=l(" such as batch editing, batch deleting, sorting, filtering, searching, etc. Folders can also be managed "),Te=l("programmatically via the API"),Ie=l("."),Le=e("h2",{id:"create-a-folder",tabindex:"-1"},[l("Create a Folder "),e("a",{class:"header-anchor",href:"#create-a-folder"},"#")],-1),Pe=e("video",{alt:"Create a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/create-a-folder-20220305A.mp4",type:"video/mp4"})],-1),xe=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", click on the "),e("span",{mi:"",btn:"",sec:""},"create_new_folder"),l(" button located in the Header.")]),e("li",null,"Fill in a Folder name as desired."),e("li",null,[l("Click "),e("strong",null,"\u201CSave\u201D"),l(".")])],-1),Me=e("h2",{id:"rename-a-folder",tabindex:"-1"},[l("Rename a Folder "),e("a",{class:"header-anchor",href:"#rename-a-folder"},"#")],-1),Se=e("video",{alt:"Renaming a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/rename-a-folder-20220215A.mp4",type:"video/mp4"})],-1),Ee=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", right-click on the Folder you wish to rename and select \u201CRename Folder\u201D.")]),e("li",null,"Update the Folder name as desired."),e("li",null,[l("Click "),e("strong",null,"\u201CSave\u201D"),l(".")])],-1),He=e("h2",{id:"move-a-folder",tabindex:"-1"},[l("Move a Folder "),e("a",{class:"header-anchor",href:"#move-a-folder"},"#")],-1),Ue=e("video",{alt:"Moving a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/file-library-20220305A/move-a-folder20220305A.mp4",type:"video/mp4"})],-1),Re=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", right-click on the folder you wish to move and select "),e("strong",null,"\u201CMove to Folder\u201D"),l(". A popup will appear.")]),e("li",null,"Select a Folder to serve as the new Parent Folder."),e("li",null,[l("Click "),e("strong",null,"\u201CSave\u201D"),l(".")])],-1),Be=e("h2",{id:"delete-a-folder",tabindex:"-1"},[l("Delete a Folder "),e("a",{class:"header-anchor",href:"#delete-a-folder"},"#")],-1),Ne=e("video",{alt:"Deleting a Folder",loop:"",muted:"",controls:"",autoplay:""},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/file-library/delete-a-folder-20220215A.mp4",type:"video/mp4"})],-1),We=e("ol",null,[e("li",null,[l("From the "),e("strong",null,"File Library"),l(", right-click on the Folder you wish to delete and select "),e("strong",null,"\u201CDelete Folder\u201D"),l(".")]),e("li",null,[l("Click "),e("strong",null,"\u201CDelete\u201D"),l(".")])],-1),je=e("div",{class:"tip hint"},[e("p",null,"When you delete a Folder, any nested Files and Folders will be moved one level up.")],-1),ze=e("h2",{id:"more-help",tabindex:"-1"},[l("More Help "),e("a",{class:"header-anchor",href:"#more-help"},"#")],-1),Oe=e("p",null,[l("Looking for technical support for your non-enterprise project? Chat with thousands of engineers within our growing "),e("a",{href:"https://discord.com/invite/directus",target:"_blank",rel:"noopener noreferrer"},"Community on Discord")],-1),Je="File Library",Xe=!1,Ge={name:"file-library",setup(Ke,{expose:n}){const a={title:"File Library",modularExtension:!1};return n({frontmatter:a}),(Ve,Ye)=>{const o=s("router-link"),r=s("docs-wrapper");return d(),c(r,{frontmatter:a},{default:t(()=>[e("div",h,[u,p,f,e("div",_,[m,e("p",null,[g,i(o,{to:"/docs/reference/system/folders/"},{default:t(()=>[b]),_:1}),F,i(o,{to:"/docs/reference/files/"},{default:t(()=>[y]),_:1}),v])]),w,e("div",k,[A,e("p",null,[C,i(o,{to:"/docs/app/content-collections/"},{default:t(()=>[D]),_:1}),T])]),e("p",null,[I,L,P,x,M,i(o,{to:"/docs/configuration/users-roles-permissions.md"},{default:t(()=>[S]),_:1}),E,H,U,R,B,i(o,{to:"/docs/app/content-collections/"},{default:t(()=>[N]),_:1}),W]),j,z,O,e("p",null,[K,i(o,{to:"/docs/getting-started/glossary/#items"},{default:t(()=>[V]),_:1}),Y]),q,J,X,G,Q,Z,$,ee,le,te,oe,ie,ae,se,ne,re,de,ce,he,e("p",null,[ue,pe,fe,i(o,{to:"/docs/reference/files/"},{default:t(()=>[_e]),_:1}),me]),ge,be,Fe,ye,ve,we,ke,e("p",null,[Ae,i(o,{to:"/docs/app/content-collections/"},{default:t(()=>[Ce]),_:1}),De,i(o,{to:"/docs/docs/reference/system/folders.md"},{default:t(()=>[Te]),_:1}),Ie]),Le,Pe,xe,Me,Se,Ee,He,Ue,Re,Be,Ne,We,je,ze,Oe])]),_:1})}}};export{Ge as default,Xe as modularExtension,Je as title};
@@ -0,0 +1,189 @@
1
+ import{a as i,o as d,b as c,w as t,g as e,e as a,B as s}from"./runtime-core.esm-bundler.b1f35d24.js";const h={class:"markdown-body"},u=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,[s("Every file managed by the platform is uploaded to the configured storage adapter, and its associated metadata is tracked within the "),e("code",null,"directus_files"),s(" system collection. Any requested file transformations are handled on the fly, and are only saved to storage.")])])]),e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#accessing-an-file"},"Accessing an File ")]),e("li",null,[e("a",{href:"#downloading-a-file"},"Downloading a File ")]),e("li",null,[e("a",{href:"#requesting-a-thumbnail"},"Requesting a Thumbnail ")]),e("li",null,[e("a",{href:"#the-file-object"},"The File Object ")]),e("li",null,[e("a",{href:"#list-files"},"List Files ")]),e("li",null,[e("a",{href:"#retrieve-a-file"},"Retrieve a File ")]),e("li",null,[e("a",{href:"#upload-a-file"},"Upload a File ")]),e("li",null,[e("a",{href:"#import-a-file"},"Import a File ")]),e("li",null,[e("a",{href:"#update-a-file"},"Update a File ")]),e("li",null,[e("a",{href:"#update-multiple-files"},"Update Multiple Files ")]),e("li",null,[e("a",{href:"#delete-a-file"},"Delete a File ")]),e("li",null,[e("a",{href:"#delete-multiple-files"},"Delete Multiple Files ")])])])])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"accessing-an-file",tabindex:"-1"},[s("Accessing an File "),e("a",{class:"header-anchor",href:"#accessing-an-file"},"#")],-1),_=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"The location of your actual file originals is based on the project\u2019s configuration, but you can consistently access them via the API using the following URL."),e("pre",null,[e("code",null,`example.com/assets/<file-id>
2
+ example.com/assets/1ac73658-8b62-4dea-b6da-529fbc9d01a4
3
+ `)]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"SEO"),e("p",null,"You can provide an optional filename after the UUID to optimize for SEO, for example:"),e("pre",null,[e("code",null,`example.com/assets/<file-id>/<filename>
4
+ example.com/assets/1ac73658-8b62-4dea-b6da-529fbc9d01a4/directus-logo.png
5
+ `)]),e("p",null,[s("This optional filename is also used in the Content-Disposition header when the "),e("code",null,"?download"),s(" query parameter is used.")])]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Direct File Access"),e("p",null,[s("While you may "),e("em",null,"technically"),s(" be able to expose your storage adapters root filesystem and access your raw files through there, it is recommended that you always use the Directus API. This is the only way that you can take advantage of file permissions and other built-in features.")])])]),e("div",{class:"right"},[e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/reference/files/original-20220216A.jpg",alt:"Original File"}),s(),e("em",null,"Original File Used \u2014 602KB and 1800x1200")])])],-1),m=e("hr",null,null,-1),g=e("h2",{id:"downloading-a-file",tabindex:"-1"},[s("Downloading a File "),e("a",{class:"header-anchor",href:"#downloading-a-file"},"#")],-1),b=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[s("To download an asset with the correct filename, you need to add the "),e("code",null,"?download"),s(" query parameter to the request and the "),e("code",null,"download"),s(" attribute to your anchor tag. This will ensure the appropriate "),e("a",{href:"https://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html",target:"_blank",rel:"noopener noreferrer"},"Content-Disposition"),s(" headers are added. Without this, the download will work on the "),e("em",null,"same"),s(" domain, however it will have the file\u2019s \u201Cid\u201D as the filename for cross-origin requests.")])]),e("div",{class:"right"},[e("h3",{id:"example",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example"},"#")]),e("pre",null,[e("code",{class:"language-html"},[e("span",{class:"hljs-tag"},[s("<"),e("span",{class:"hljs-name"},"a"),s(),e("span",{class:"hljs-attr"},"href"),s("="),e("span",{class:"hljs-string"},'"https://your-directus.com/assets/<file-id>?download"'),s(),e("span",{class:"hljs-attr"},"target"),s("="),e("span",{class:"hljs-string"},'"_blank"'),s(),e("span",{class:"hljs-attr"},"download"),s("="),e("span",{class:"hljs-string"},'"Your File.pdf"'),s(">")]),s("Download"),e("span",{class:"hljs-tag"},[s("</"),e("span",{class:"hljs-name"},"a"),s(">")]),s(`
6
+ `)])])])],-1),y=e("hr",null,null,-1),j=e("h2",{id:"requesting-a-thumbnail",tabindex:"-1"},[s("Requesting a Thumbnail "),e("a",{class:"header-anchor",href:"#requesting-a-thumbnail"},"#")],-1),x={class:"two-up"},v={class:"left"},q=e("p",null,[s("Fetching thumbnails is as easy as adding a "),e("code",null,"key"),s(" query parameter to the original file\u2019s URL. In the Admin App, you can configure different asset presets that control the output of any given image. If a requested thumbnail doesn\u2019t yet exist, it is dynamically generated and immediately returned.")],-1),w=e("h3",{id:"preset-transformations",tabindex:"-1"},[s("Preset Transformations "),e("a",{class:"header-anchor",href:"#preset-transformations"},"#")],-1),T=e("strong",null,[e("code",null,"key")],-1),k=s(" \u2014 This "),R=e("strong",null,"key",-1),E=s(" of the "),A=s("Storage Asset Preset"),D=s(", a shortcut for the below parameters"),S=e("h3",{id:"custom-transformations",tabindex:"-1"},[s("Custom Transformations "),e("a",{class:"header-anchor",href:"#custom-transformations"},"#")],-1),F=e("p",null,"Alternatively, if you have \u201CStorage Asset Transform\u201D set to all, you can use the following parameters for more fine grained control:",-1),P=e("ul",null,[e("li",null,[e("strong",null,[e("code",null,"fit")]),s(" \u2014 The "),e("strong",null,"fit"),s(" of the thumbnail while always preserving the aspect ratio, can be any of the following options: "),e("ul",null,[e("li",null,[e("code",null,"cover"),s(" \u2014 Covers both width/height by cropping/clipping to fit")]),e("li",null,[e("code",null,"contain"),s(" \u2014 Contain within both width/height using \u201Cletterboxing\u201D as needed")]),e("li",null,[e("code",null,"inside"),s(" \u2014 Resize to be as large as possible, ensuring dimensions are less than or equal to the requested width and height")]),e("li",null,[e("code",null,"outside"),s(" \u2014 Resize to be as small as possible, ensuring dimensions are greater than or equal to the requested width and height")])])]),e("li",null,[e("strong",null,[e("code",null,"width")]),s(" \u2014 The "),e("strong",null,"width"),s(" of the thumbnail in pixels")]),e("li",null,[e("strong",null,[e("code",null,"height")]),s(" \u2014 The "),e("strong",null,"height"),s(" of the thumbnail in pixels")]),e("li",null,[e("strong",null,[e("code",null,"quality")]),s(" \u2014 The optional "),e("strong",null,"quality"),s(" of the thumbnail ("),e("code",null,"1"),s(" to "),e("code",null,"100"),s(")")]),e("li",null,[e("strong",null,[e("code",null,"withoutEnlargement")]),s(" \u2014 Disable image up-scaling")]),e("li",null,[e("strong",null,[e("code",null,"format")]),s(" \u2014 What file format to return the thumbnail in. One of "),e("code",null,"jpg"),s(", "),e("code",null,"png"),s(", "),e("code",null,"webp"),s(", "),e("code",null,"tiff")])],-1),C=e("h3",{id:"advanced-transformations",tabindex:"-1"},[s("Advanced Transformations "),e("a",{class:"header-anchor",href:"#advanced-transformations"},"#")],-1),I=e("p",null,[s("For even more advanced control over the file generation, Directus exposes "),e("a",{href:"https://sharp.pixelplumbing.com/api-operation",target:"_blank",rel:"noopener noreferrer"},[s("the full "),e("code",null,"sharp"),s(" API")]),s(" through the "),e("code",null,"transforms"),s(" query parameter. This parameter accepts a two-dimensional array with the format "),e("code",null,"[Operation, ...arguments]"),s(".")],-1),O=e("h3",{id:"quality-vs-filesize",tabindex:"-1"},[s("Quality vs Filesize "),e("a",{class:"header-anchor",href:"#quality-vs-filesize"},"#")],-1),Q=e("p",null,[s("The quality parameter can be any integer from "),e("code",null,"0-100"),s(". Qualities closer to "),e("code",null,"0"),s(" have lower filesizes, but also poor image quality due to compression artifacts. Values closer to "),e("code",null,"100"),s(" have larger filesizes, but better image quality. Below are four possible qualities (200x200 cover) to visually compare the balance between compression and filesize.")],-1),U=e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"25%"),e("th",null,"50%"),e("th",null,"75%"),e("th",null,"100%")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-25-20220216A.jpg",alt:"25%"}),e("br"),e("em",null,"4KB")]),e("td",null,[e("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-50-20220216A.jpg",alt:"50%"}),e("br"),e("em",null,"6KB")]),e("td",null,[e("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-75-20220216A.jpg",alt:"75%"}),e("br"),e("em",null,"8KB")]),e("td",null,[e("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-100-20220216A.jpg",alt:"100%"}),e("br"),e("em",null,"38KB")])])])],-1),B=e("div",{class:"right"},[e("h3",{id:"preset",tabindex:"-1"},[s("Preset "),e("a",{class:"header-anchor",href:"#preset"},"#")]),e("pre",null,[e("code",null,`example.com/assets/<file-id>?key=<key>
7
+ `)]),e("h3",{id:"custom",tabindex:"-1"},[s("Custom "),e("a",{class:"header-anchor",href:"#custom"},"#")]),e("pre",null,[e("code",null,`example.com/assets/<file-id>?fit=<fit>&width=<width>&height=<height>&quality=<quality>
8
+ example.com/assets/1ac73658-8b62-4dea-b6da-529fbc9d01a4?fit=cover&width=200&height=200&quality=80
9
+ `)]),e("h3",{id:"advanced",tabindex:"-1"},[s("Advanced "),e("a",{class:"header-anchor",href:"#advanced"},"#")]),e("pre",null,[e("code",null,`?transforms=[
10
+ ["blur", 45],
11
+ ["tint", "rgb(255, 0, 0)"],
12
+ ["expand", { "right": 200, "bottom": 150 }]
13
+ ]
14
+ `)])],-1),L=e("hr",null,null,-1),X=e("h2",{id:"the-file-object",tabindex:"-1"},[s("The File Object "),e("a",{class:"header-anchor",href:"#the-file-object"},"#")],-1),Y={class:"two-up"},M={class:"left"},z={class:"definitions"},G=e("p",null,[e("code",null,"id"),s(),e("strong",null,"uuid"),e("br"),s(" Primary key of the file")],-1),N=e("p",null,[e("code",null,"storage"),s(),e("strong",null,"string"),e("br"),s(" Storage adapter used for the file.")],-1),Z=e("p",null,[e("code",null,"filename_disk"),s(),e("strong",null,"string"),e("br"),s(" Name of the file as saved on the storage adapter.")],-1),H=e("p",null,[e("code",null,"filename_download"),s(),e("strong",null,"string"),e("br"),s(" Preferred filename when file is downloaded.")],-1),W=e("p",null,[e("code",null,"title"),s(),e("strong",null,"string"),e("br"),s(" Title for the file.")],-1),K=e("p",null,[e("code",null,"type"),s(),e("strong",null,"string"),e("br"),s(" Mimetype of the file.")],-1),J=e("code",null,"folder",-1),V=s(),$=e("strong",null,"many-to-one",-1),ee=e("br",null,null,-1),se=s(" What (virtual) folder the file is in. Many-to-one to "),te=s("folders"),le=s("."),ae=e("code",null,"uploaded_by",-1),ne=s(),ie=e("strong",null,"many-to-one",-1),oe=e("br",null,null,-1),re=s(" Who uploaded the file. Many-to-one to "),de=s("users"),ce=s("."),he=e("p",null,[e("code",null,"uploaded_on"),s(),e("strong",null,"datetime"),e("br"),s(" When the file was uploaded.")],-1),ue=e("code",null,"modified_by",-1),pe=s(),fe=e("strong",null,"many-to-one",-1),_e=e("br",null,null,-1),me=s(" Who updated the file last. Many-to-one to "),ge=s("users"),be=s("."),ye=e("p",null,[e("code",null,"filesize"),s(),e("strong",null,"number"),e("br"),s(" Size of the file in bytes.")],-1),je=e("p",null,[e("code",null,"width"),s(),e("strong",null,"number"),e("br"),s(" If the file is a(n) image/video, it\u2019s the width in px.")],-1),xe=e("p",null,[e("code",null,"height"),s(),e("strong",null,"number"),e("br"),s(" If the file is a(n) image/video, it\u2019s the height in px.")],-1),ve=e("p",null,[e("code",null,"duration"),s(),e("strong",null,"number"),e("br"),s(" If the file contains audio/video, it\u2019s the duration in milliseconds.")],-1),qe=e("p",null,[e("code",null,"description"),s(),e("strong",null,"string"),e("br"),s(" Description of the file.")],-1),we=e("p",null,[e("code",null,"location"),s(),e("strong",null,"string"),e("br"),s(" Location of the file.")],-1),Te=e("p",null,[e("code",null,"tags"),s(),e("strong",null,"array"),e("br"),s(" Tags for the file.")],-1),ke=e("p",null,[e("code",null,"metadata"),s(),e("strong",null,"object"),e("br"),s(" Any additional metadata Directus was able to scrape from the file. For images, this includes EXIF, IPTC, and ICC information.")],-1),Re=e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[s(`{
15
+ `),e("span",{class:"hljs-attr"},'"id"'),s(": "),e("span",{class:"hljs-string"},'"4f4b14fa-a43a-46d0-b7ad-90af5919bebb"'),s(`,
16
+ `),e("span",{class:"hljs-attr"},'"storage"'),s(": "),e("span",{class:"hljs-string"},'"local"'),s(`,
17
+ `),e("span",{class:"hljs-attr"},'"filename_disk"'),s(": "),e("span",{class:"hljs-string"},'"4f4b14fa-a43a-46d0-b7ad-90af5919bebb.jpeg"'),s(`,
18
+ `),e("span",{class:"hljs-attr"},'"filename_download"'),s(": "),e("span",{class:"hljs-string"},'"paulo-silva-vSRgXtQuns8-unsplash.jpg"'),s(`,
19
+ `),e("span",{class:"hljs-attr"},'"title"'),s(": "),e("span",{class:"hljs-string"},'"Paulo Silva (via Unsplash)"'),s(`,
20
+ `),e("span",{class:"hljs-attr"},'"type"'),s(": "),e("span",{class:"hljs-string"},'"image/jpeg"'),s(`,
21
+ `),e("span",{class:"hljs-attr"},'"folder"'),s(": "),e("span",{class:"hljs-literal"},"null"),s(`,
22
+ `),e("span",{class:"hljs-attr"},'"uploaded_by"'),s(": "),e("span",{class:"hljs-string"},'"0bc7b36a-9ba9-4ce0-83f0-0a526f354e07"'),s(`,
23
+ `),e("span",{class:"hljs-attr"},'"uploaded_on"'),s(": "),e("span",{class:"hljs-string"},'"2021-02-04T11:37:41-05:00"'),s(`,
24
+ `),e("span",{class:"hljs-attr"},'"modified_by"'),s(": "),e("span",{class:"hljs-literal"},"null"),s(`,
25
+ `),e("span",{class:"hljs-attr"},'"modified_on"'),s(": "),e("span",{class:"hljs-string"},'"2021-02-04T11:37:42-05:00"'),s(`,
26
+ `),e("span",{class:"hljs-attr"},'"filesize"'),s(": "),e("span",{class:"hljs-number"},"3442252"),s(`,
27
+ `),e("span",{class:"hljs-attr"},'"width"'),s(": "),e("span",{class:"hljs-number"},"3456"),s(`,
28
+ `),e("span",{class:"hljs-attr"},'"height"'),s(": "),e("span",{class:"hljs-number"},"5184"),s(`,
29
+ `),e("span",{class:"hljs-attr"},'"duration"'),s(": "),e("span",{class:"hljs-literal"},"null"),s(`,
30
+ `),e("span",{class:"hljs-attr"},'"description"'),s(": "),e("span",{class:"hljs-literal"},"null"),s(`,
31
+ `),e("span",{class:"hljs-attr"},'"location"'),s(": "),e("span",{class:"hljs-literal"},"null"),s(`,
32
+ `),e("span",{class:"hljs-attr"},'"tags"'),s(": ["),e("span",{class:"hljs-string"},'"photo"'),s(", "),e("span",{class:"hljs-string"},'"pretty"'),s(`],
33
+ `),e("span",{class:"hljs-attr"},'"metadata"'),s(`: {
34
+ `),e("span",{class:"hljs-attr"},'"icc"'),s(`: {
35
+ `),e("span",{class:"hljs-attr"},'"version"'),s(": "),e("span",{class:"hljs-string"},'"2.1"'),s(`,
36
+ `),e("span",{class:"hljs-attr"},'"intent"'),s(": "),e("span",{class:"hljs-string"},'"Perceptual"'),s(`,
37
+ `),e("span",{class:"hljs-attr"},'"cmm"'),s(": "),e("span",{class:"hljs-string"},'"lcms"'),s(`,
38
+ `),e("span",{class:"hljs-attr"},'"deviceClass"'),s(": "),e("span",{class:"hljs-string"},'"Monitor"'),s(`,
39
+ `),e("span",{class:"hljs-attr"},'"colorSpace"'),s(": "),e("span",{class:"hljs-string"},'"RGB"'),s(`,
40
+ `),e("span",{class:"hljs-attr"},'"connectionSpace"'),s(": "),e("span",{class:"hljs-string"},'"XYZ"'),s(`,
41
+ `),e("span",{class:"hljs-attr"},'"platform"'),s(": "),e("span",{class:"hljs-string"},'"Apple"'),s(`,
42
+ `),e("span",{class:"hljs-attr"},'"creator"'),s(": "),e("span",{class:"hljs-string"},'"lcms"'),s(`,
43
+ `),e("span",{class:"hljs-attr"},'"description"'),s(": "),e("span",{class:"hljs-string"},'"c2"'),s(`,
44
+ `),e("span",{class:"hljs-attr"},'"copyright"'),s(": "),e("span",{class:"hljs-string"},'""'),s(`
45
+ }
46
+ }
47
+ }
48
+ `)])])],-1),Ee=e("hr",null,null,-1),Ae=e("h2",{id:"list-files",tabindex:"-1"},[s("List Files "),e("a",{class:"header-anchor",href:"#list-files"},"#")],-1),De=e("p",null,"List all files that exist in Directus.",-1),Se={class:"two-up"},Fe={class:"left"},Pe=e("h3",{id:"query-parameters",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),Ce=s("Supports all "),Ie=s("global query parameters"),Oe=s("."),Qe=e("h3",{id:"returns",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")],-1),Ue=s("An array of up to "),Be=s("limit"),Le=s(),Xe=e("a",{href:"#the-file-object"},"file objects",-1),Ye=s(". If no items are available, data will be an empty array."),Me={class:"right"},ze=e("h3",{id:"rest-api",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),Ge=e("pre",null,[e("code",null,`GET /files
49
+ SEARCH /files
50
+ `)],-1),Ne=s("Learn more about SEARCH ->"),Ze=e("h3",{id:"graphql",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")],-1),He=e("pre",null,[e("code",null,`POST /graphql/system
51
+ `)],-1),We=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
52
+ files: [directus_files]
53
+ }
54
+ `)])],-1),Ke=e("h5",{id:"example-1",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-1"},"#")],-1),Je=e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
55
+ files {
56
+ id
57
+ filename_disk
58
+ }
59
+ }
60
+ `)])],-1),Ve=e("hr",null,null,-1),$e=e("h2",{id:"retrieve-a-file",tabindex:"-1"},[s("Retrieve a File "),e("a",{class:"header-anchor",href:"#retrieve-a-file"},"#")],-1),es=e("p",null,"Retrieve a single file by primary key.",-1),ss={class:"two-up"},ts={class:"left"},ls=e("h3",{id:"query-parameters-1",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-1"},"#")],-1),as=s("Supports all "),ns=s("global query parameters"),is=s("."),os=e("h3",{id:"returns-1",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-1"},"#")],-1),rs=e("p",null,[s("Returns a "),e("a",{href:"#the-file-object"},"file object"),s(" if a valid primary key was provided.")],-1),ds=e("div",{class:"right"},[e("h3",{id:"rest-api-1",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-1"},"#")]),e("pre",null,[e("code",null,`GET /files/:id
61
+ `)]),e("h5",{id:"example-2",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",null,`GET /files/0fca80c4-d61c-4404-9fd7-6ba86b64154d
62
+ `)]),e("h3",{id:"graphql-1",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-1"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
63
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),s(` {
64
+ files_by_id(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): directus_files
65
+ }
66
+ `)])]),e("h5",{id:"example-3",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-3"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),s(` {
67
+ files_by_id(id: `),e("span",{class:"hljs-string"},'"0fca80c4-d61c-4404-9fd7-6ba86b64154d"'),s(`) {
68
+ id
69
+ filename_disk
70
+ }
71
+ }
72
+ `)])])],-1),cs=e("h2",{id:"upload-a-file",tabindex:"-1"},[s("Upload a File "),e("a",{class:"header-anchor",href:"#upload-a-file"},"#")],-1),hs=e("p",null,"Upload/create a new file.",-1),us={class:"two-up"},ps={class:"left"},fs=e("p",null,[s("To upload a file, use "),e("code",null,"multipart/form-data"),s(" as the encoding type, instead of JSON.")],-1),_s=e("p",null,[s("The file contents has to be provided in a part called "),e("code",null,"file"),s(". All other properties of "),e("a",{href:"#the-file-object"},"the file object"),s(" can be provided as parts as well.")],-1),ms=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Order Matters"),e("p",null,[s("Make sure to define the non-file properties "),e("em",null,"first"),s(". This ensures that the file metadata is associated with the correct file.")])],-1),gs=e("p",null,"You can upload multiple files at a time by repeating the payload with different contents, for example:",-1),bs=e("pre",null,[e("code",null,`--__X_BOUNDARY__
73
+ Content-Disposition: form-data; name="title"
74
+
75
+ Example
76
+ --__X_BOUNDARY__
77
+ Content-Disposition: form-data; name="file"; filename="paulo-silva-vSRgXtQuns8-unsplash.jpg"
78
+ Content-Type: image/jpeg
79
+
80
+ // binary data
81
+
82
+ --__X_BOUNDARY__
83
+ Content-Disposition: form-data; name="title"
84
+
85
+ Another Title
86
+ --__X_BOUNDARY__
87
+ Content-Disposition: form-data; name="file"; filename="mae-mu-GFhqNX1gE9E-unsplash.jpg"
88
+ Content-Type: image/jpeg
89
+
90
+ // binary data
91
+ `)],-1),ys=e("p",null,[s("In JavaScript, this can be achieved using the native "),e("code",null,"FormData"),s(" class:")],-1),js=e("pre",null,[e("code",{class:"language-js"},[e("span",{class:"hljs-keyword"},"import"),s(" axios "),e("span",{class:"hljs-keyword"},"from"),s(),e("span",{class:"hljs-string"},"'axios'"),s(`;
92
+
93
+ `),e("span",{class:"hljs-keyword"},"const"),s(" fileInput = "),e("span",{class:"hljs-built_in"},"document"),s(".querySelector("),e("span",{class:"hljs-string"},`'input[type="file"]'`),s(`);
94
+ `),e("span",{class:"hljs-keyword"},"const"),s(" formData = "),e("span",{class:"hljs-keyword"},"new"),s(` FormData();
95
+
96
+ formData.append(`),e("span",{class:"hljs-string"},"'title'"),s(", "),e("span",{class:"hljs-string"},"'My First File'"),s(`);
97
+ formData.append(`),e("span",{class:"hljs-string"},"'file'"),s(", fileInput.files["),e("span",{class:"hljs-number"},"0"),s(`]);
98
+
99
+ `),e("span",{class:"hljs-keyword"},"await"),s(" axios.post("),e("span",{class:"hljs-string"},"'/files'"),s(`, formData);
100
+ `)])],-1),xs=e("h3",{id:"query-parameters-2",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),vs=s("Supports all "),qs=s("global query parameters"),ws=s("."),Ts=e("h3",{id:"returns-2",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),ks=e("p",null,[s("Returns the "),e("a",{href:"#the-file-object"},"file object"),s(" for the uploaded file, or an array of "),e("a",{href:"#the-file-object"},"file objects"),s(" if multiple files were uploaded at once.")],-1),Rs=e("div",{class:"right"},[e("pre",null,[e("code",null,`POST /files
101
+ `)]),e("pre",null,[e("code",null,`// Request
102
+
103
+ Content-Type: multipart/form-data; charset=utf-8; boundary=__X_BOUNDARY__
104
+ Content-Length: 3442422
105
+
106
+ --__X_BOUNDARY__
107
+ Content-Disposition: form-data; name="file"; filename="paulo-silva-vSRgXtQuns8-unsplash.jpg"
108
+ Content-Type: image/jpeg
109
+
110
+ \xFF\xD8\xFF\xE0JFIFHH\xFF\xE2ICC_PROFILE\flcmsmntrRGB XYZ \x07\xDC)9acspAPPL\xF6\xD6\xD3-lcms
111
+ desc\xFC^cprt\\\vwtpthbkpt|rXYZ\x90gXYZ\xA4bXYZ\xB8rTRC\xCC@gTRC\xCC@bTRC\xCC@descc2textIXXYZ \xF6\xD6\xD3-XYZ 3\xA4XYZ o\xA28\xF5\x90XYZ b\x99\xB7\x85\xDAXYZ $\xA0\x84\xB6\xCFcurv\xCB\xC9c\x92\bk\v\xF6?Q\x1B4!\xF1)\x902;\x92FQw]\xEDkpz\x89\xB1\x9A|\xACi\xBF}\xD3\xC3\xE90\xFF\xFF\xFF\xDB\x84\b\b\x07\x07
112
+ `)])],-1),Es=e("hr",null,null,-1),As=e("h2",{id:"import-a-file",tabindex:"-1"},[s("Import a File "),e("a",{class:"header-anchor",href:"#import-a-file"},"#")],-1),Ds=e("p",null,"Import a file from the web",-1),Ss={class:"two-up"},Fs={class:"left"},Ps=e("h3",{id:"query-parameters-3",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),Cs=s("Supports all "),Is=s("global query parameters"),Os=s("."),Qs=e("h3",{id:"request-body",tabindex:"-1"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Us=e("div",{class:"definitions"},[e("p",null,[e("code",null,"url"),s(),e("strong",null,"Required"),e("br"),s(" The URL to download the file from.")]),e("p",null,[e("code",null,"data"),e("br"),s(" Any of "),e("a",{href:"#the-file-object"},"the file object"),s("\u2019s properties.")])],-1),Bs=e("h3",{id:"returns-3",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),Ls=e("p",null,[s("Returns the "),e("a",{href:"#the-file-object"},"file object"),s(" for the imported file.")],-1),Xs=e("div",{class:"right"},[e("h3",{id:"rest-api-2",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",null,`POST /files/import
113
+ `)]),e("h5",{id:"example-4",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-4"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /files/import"),s(`
114
+
115
+ {
116
+ `),e("span",{class:"hljs-attr"},'"url"'),s(": "),e("span",{class:"hljs-string"},'"https://source.unsplash.com/random"'),s(`,
117
+ `),e("span",{class:"hljs-attr"},'"data"'),s(`: {
118
+ `),e("span",{class:"hljs-attr"},'"title"'),s(": "),e("span",{class:"hljs-string"},'"Example"'),s(`
119
+ }
120
+ }
121
+ `)])]),e("h3",{id:"graphql-2",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
122
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
123
+ import_file(url:`),e("span",{class:"hljs-type"}," String"),s(`!, data: create_directus_files_input!): directus_files
124
+ }
125
+ `)])]),e("h5",{id:"example-5",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-5"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
126
+ import_file(url: `),e("span",{class:"hljs-string"},'"https://source.unsplash.com/random"'),s(", data: { title: "),e("span",{class:"hljs-string"},'"Example"'),s(` }) {
127
+ id
128
+ }
129
+ }
130
+ `)])])],-1),Ys=e("hr",null,null,-1),Ms=e("h2",{id:"update-a-file",tabindex:"-1"},[s("Update a File "),e("a",{class:"header-anchor",href:"#update-a-file"},"#")],-1),zs=e("p",null,"Update an existing file, and/or replace it\u2019s file contents.",-1),Gs={class:"two-up"},Ns={class:"left"},Zs=e("h3",{id:"query-parameters-4",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),Hs=s("Supports all "),Ws=s("global query parameters"),Ks=s("."),Js=e("h3",{id:"request-body-1",tabindex:"-1"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-1"},"#")],-1),Vs=e("p",null,[s("You can either submit a JSON object consisting of a partial "),e("a",{href:"#the-file-object"},"file object"),s(" to update the file meta, or send a multipart/form-data request to replace the file contents on disk. See "),e("a",{href:"#upload-a-file"},"Upload a File"),s(" for more information on the structure of this "),e("code",null,"multipart/form-data"),s(" request.")],-1),$s=e("h3",{id:"returns-4",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),et=e("p",null,[s("Returns the "),e("a",{href:"#the-file-object"},"file object"),s(" for the updated file.")],-1),st=e("div",{class:"right"},[e("h3",{id:"rest-api-3",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",null,`PATCH /files/:id
131
+ `)]),e("h5",{id:"example-6",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /files/0fca80c4-d61c-4404-9fd7-6ba86b64154d"),s(`
132
+
133
+ {
134
+ `),e("span",{class:"hljs-attr"},'"title"'),s(": "),e("span",{class:"hljs-string"},'"Example"'),s(`
135
+ }
136
+ `)])]),e("h3",{id:"graphql-3",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
137
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
138
+ update_files_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!, data: update_directus_files_input!): directus_files
139
+ }
140
+ `)])]),e("h5",{id:"example-7",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-7"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
141
+ update_files_item(id: `),e("span",{class:"hljs-string"},'"0fca80c4-d61c-4404-9fd7-6ba86b64154d"'),s(", data: { title: "),e("span",{class:"hljs-string"},'"Example"'),s(` }) {
142
+ id
143
+ title
144
+ }
145
+ }
146
+ `)])])],-1),tt=e("hr",null,null,-1),lt=e("h2",{id:"update-multiple-files",tabindex:"-1"},[s("Update Multiple Files "),e("a",{class:"header-anchor",href:"#update-multiple-files"},"#")],-1),at=e("p",null,"Update multiple files at the same time.",-1),nt={class:"two-up"},it={class:"left"},ot=e("h3",{id:"query-parameters-5",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),rt=s("Supports all "),dt=s("global query parameters"),ct=s("."),ht=e("h3",{id:"request-body-2",tabindex:"-1"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),ut=e("div",{class:"definitions"},[e("p",null,[e("code",null,"keys"),s(),e("strong",null,"Required"),e("br"),s(" Array of primary keys of the files you\u2019d like to update.")]),e("p",null,[e("code",null,"data"),s(),e("strong",null,"Required"),e("br"),s(" Any of "),e("a",{href:"#the-file-object"},"the file object"),s("\u2019s properties.")])],-1),pt=e("h3",{id:"returns-5",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),ft=e("p",null,[s("Returns the "),e("a",{href:"#the-file-object"},"file objects"),s(" for the updated files.")],-1),_t=e("div",{class:"right"},[e("h3",{id:"rest-api-4",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`PATCH /files
147
+ `)]),e("h5",{id:"example-8",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /files"),s(`
148
+
149
+ {
150
+ `),e("span",{class:"hljs-attr"},'"keys"'),s(": ["),e("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),s(", "),e("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),s(`],
151
+ `),e("span",{class:"hljs-attr"},'"data"'),s(`: {
152
+ `),e("span",{class:"hljs-attr"},'"tags"'),s(": ["),e("span",{class:"hljs-string"},'"cities"'),s(`]
153
+ }
154
+ }
155
+ `)])]),e("h3",{id:"graphql-4",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
156
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
157
+ update_files_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!, data: update_directus_files!): [directus_files]
158
+ }
159
+ `)])]),e("h5",{id:"example-9",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-9"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
160
+ update_files_items(
161
+ ids: [`),e("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),s(", "),e("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),s(`]
162
+ data: { tags: [`),e("span",{class:"hljs-string"},'"cities"'),s(`] }
163
+ )
164
+ }
165
+ `)])])],-1),mt=e("hr",null,null,-1),gt=e("h2",{id:"delete-a-file",tabindex:"-1"},[s("Delete a File "),e("a",{class:"header-anchor",href:"#delete-a-file"},"#")],-1),bt=e("p",null,"Delete an existing file.",-1),yt={class:"two-up"},jt={class:"left"},xt=e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Destructive"),e("p",null,"This will also delete the file from disk.")],-1),vt=e("h3",{id:"query-parameters-6",tabindex:"-1"},[s("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),qt=s("Supports all "),wt=s("global query parameters"),Tt=s("."),kt=e("h3",{id:"returns-6",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),Rt=e("p",null,"Empty response.",-1),Et=e("div",{class:"right"},[e("h3",{id:"rest-api-5",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`DELETE /files/:id
166
+ `)]),e("h5",{id:"example-10",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",null,`DELETE /files/0fca80c4-d61c-4404-9fd7-6ba86b64154d
167
+ `)]),e("h3",{id:"graphql-5",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
168
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
169
+ delete_files_item(id:`),e("span",{class:"hljs-literal"}," ID"),s(`!): delete_one
170
+ }
171
+ `)])]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
172
+ delete_files_item(id: `),e("span",{class:"hljs-string"},'"0fca80c4-d61c-4404-9fd7-6ba86b64154d"'),s(`) {
173
+ id
174
+ }
175
+ }
176
+ `)])])],-1),At=e("hr",null,null,-1),Dt=e("h2",{id:"delete-multiple-files",tabindex:"-1"},[s("Delete Multiple Files "),e("a",{class:"header-anchor",href:"#delete-multiple-files"},"#")],-1),St=e("p",null,"Delete multiple files at once.",-1),Ft=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"danger hint"},[e("div",{class:"hint-title"},"Destructive"),e("p",null,"This will also delete the files from disk.")]),e("h3",{id:"request-body-3",tabindex:"-1"},[s("Request Body "),e("a",{class:"header-anchor",href:"#request-body-3"},"#")]),e("p",null,"Array of file primary keys"),e("h3",{id:"returns-7",tabindex:"-1"},[s("Returns "),e("a",{class:"header-anchor",href:"#returns-7"},"#")]),e("p",null,"Empty response.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-6",tabindex:"-1"},[s("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`DELETE /files
177
+ `)]),e("h5",{id:"example-11",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-11"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// DELETE /files"),s(`
178
+
179
+ [`),e("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),s(", "),e("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),s(`]
180
+ `)])]),e("h3",{id:"graphql-6",tabindex:"-1"},[s("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
181
+ `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),s(` {
182
+ delete_files_items(ids: `),e("span",{class:"hljs-literal"},"[ID"),s(`!]!): delete_many
183
+ }
184
+ `)])]),e("h5",{id:"example-12",tabindex:"-1"},[s("Example "),e("a",{class:"header-anchor",href:"#example-12"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),s(` {
185
+ delete_files_items(ids: [`),e("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),s(", "),e("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),s(`]) {
186
+ ids
187
+ }
188
+ }
189
+ `)])])])],-1),Qt="Accessing Files",Ut=!1,Bt="page-reference",Lt={name:"files",setup(Pt,{expose:o}){const n={title:"Accessing Files",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:n}),(Ct,It)=>{const l=i("router-link"),r=i("docs-wrapper");return d(),c(r,{frontmatter:n},{default:t(()=>[e("div",h,[u,p,f,_,m,g,b,y,j,e("div",x,[e("div",v,[q,w,e("ul",null,[e("li",null,[T,k,R,E,a(l,{to:"/docs/configuration/project-settings/#files-thumbnails"},{default:t(()=>[A]),_:1}),D])]),S,F,P,C,I,O,Q,U]),B]),L,X,e("div",Y,[e("div",M,[e("div",z,[G,N,Z,H,W,K,e("p",null,[J,V,$,ee,se,a(l,{to:"/docs/reference/system/folders/"},{default:t(()=>[te]),_:1}),le]),e("p",null,[ae,ne,ie,oe,re,a(l,{to:"/docs/reference/system/users/"},{default:t(()=>[de]),_:1}),ce]),he,e("p",null,[ue,pe,fe,_e,me,a(l,{to:"/docs/reference/system/users/"},{default:t(()=>[ge]),_:1}),be]),ye,je,xe,ve,qe,we,Te,ke])]),Re]),Ee,Ae,De,e("div",Se,[e("div",Fe,[Pe,e("p",null,[Ce,a(l,{to:"/docs/reference/query"},{default:t(()=>[Ie]),_:1}),Oe]),Qe,e("p",null,[Ue,a(l,{to:"/docs/reference/query/#limit"},{default:t(()=>[Be]),_:1}),Le,Xe,Ye])]),e("div",Me,[ze,Ge,e("p",null,[a(l,{to:"/docs/reference/introduction/#search-http-method"},{default:t(()=>[Ne]),_:1})]),Ze,He,We,Ke,Je])]),Ve,$e,es,e("div",ss,[e("div",ts,[ls,e("p",null,[as,a(l,{to:"/docs/reference/query"},{default:t(()=>[ns]),_:1}),is]),os,rs]),ds]),cs,hs,e("div",us,[e("div",ps,[fs,_s,ms,gs,bs,ys,js,xs,e("p",null,[vs,a(l,{to:"/docs/reference/query"},{default:t(()=>[qs]),_:1}),ws]),Ts,ks]),Rs]),Es,As,Ds,e("div",Ss,[e("div",Fs,[Ps,e("p",null,[Cs,a(l,{to:"/docs/reference/query"},{default:t(()=>[Is]),_:1}),Os]),Qs,Us,Bs,Ls]),Xs]),Ys,Ms,zs,e("div",Gs,[e("div",Ns,[Zs,e("p",null,[Hs,a(l,{to:"/docs/reference/query"},{default:t(()=>[Ws]),_:1}),Ks]),Js,Vs,$s,et]),st]),tt,lt,at,e("div",nt,[e("div",it,[ot,e("p",null,[rt,a(l,{to:"/docs/reference/query"},{default:t(()=>[dt]),_:1}),ct]),ht,ut,pt,ft]),_t]),mt,gt,bt,e("div",yt,[e("div",jt,[xt,vt,e("p",null,[qt,a(l,{to:"/docs/reference/query"},{default:t(()=>[wt]),_:1}),Tt]),kt,Rt]),Et]),At,Dt,St,Ft])]),_:1})}}};export{Lt as default,Ut as modularExtension,Bt as pageClass,Qt as title};