@directus/app 9.15.0 → 9.16.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 (413) hide show
  1. package/dist/assets/accounts.2e114db8.js +1 -0
  2. package/dist/assets/{active-line.37204566.js → active-line.c78f18d1.js} +1 -1
  3. package/dist/assets/activity-log.86a173c5.js +1 -0
  4. package/dist/assets/activity.5589dea9.js +80 -0
  5. package/dist/assets/af-ZA.2bf28c7c.js +1 -0
  6. package/dist/assets/{apl.aa72adb8.js → apl.3bd507ca.js} +1 -1
  7. package/dist/assets/ar-SA.a723a027.js +1 -0
  8. package/dist/assets/{architecture.a1dad632.js → architecture.d16e36b1.js} +1 -1
  9. package/dist/assets/{asciiarmor.67b12091.js → asciiarmor.23cc7d28.js} +1 -1
  10. package/dist/assets/{asn.1.c5725a55.js → asn.1.914dce71.js} +1 -1
  11. package/dist/assets/{asterisk.0f667406.js → asterisk.960196ef.js} +1 -1
  12. package/dist/assets/authentication.ee6465fd.js +73 -0
  13. package/dist/assets/{autorefresh.e9c801fd.js → autorefresh.9c9423b3.js} +1 -1
  14. package/dist/assets/avatar-placeholder.446bf113.svg +6 -0
  15. package/dist/assets/aws.8fa603ce.js +1 -0
  16. package/dist/assets/backing-directus.450274bb.js +1 -0
  17. package/dist/assets/bg-BG.6ccbe392.js +1 -0
  18. package/dist/assets/br-FR.cfebb858.js +1 -0
  19. package/dist/assets/{brainfuck.e73b74b2.js → brainfuck.652d067a.js} +1 -1
  20. package/dist/assets/ca-ES.4c8abcd5.js +1 -0
  21. package/dist/assets/ckb-IR.51f9d580.js +1 -0
  22. package/dist/assets/cli.495194f0.js +19 -0
  23. package/dist/assets/{cli.acbc6a21.js → cli.f4f23732.js} +4 -4
  24. package/dist/assets/{clike.296c3a16.js → clike.d1e347d7.js} +1 -1
  25. package/dist/assets/{clojure.d9687d7c.js → clojure.0ed660e3.js} +1 -1
  26. package/dist/assets/cloudron.aa3368a8.js +1 -0
  27. package/dist/assets/{cmake.c00d972a.js → cmake.795b52a3.js} +1 -1
  28. package/dist/assets/{cobol.029a8cf3.js → cobol.dadc6a67.js} +1 -1
  29. package/dist/assets/codebase-overview.cf29e0f6.js +1 -0
  30. package/dist/assets/{coffeescript.8aefc36c.js → coffeescript.ebb229e0.js} +1 -1
  31. package/dist/assets/collections.74218877.js +2 -0
  32. package/dist/assets/collections.7776a374.js +2 -0
  33. package/dist/assets/collections.9e3af468.js +106 -0
  34. package/dist/assets/{commonlisp.0b15e5a5.js → commonlisp.3ab42a16.js} +1 -1
  35. package/dist/assets/conditions.1d6c9ac3.js +1 -0
  36. package/dist/assets/config-options.3845d956.js +138 -0
  37. package/dist/assets/content.84d14f92.js +1 -0
  38. package/dist/assets/{creating-extensions.028151bd.js → creating-extensions.50afb69b.js} +3 -3
  39. package/dist/assets/{crystal.e19a3a38.js → crystal.efbb1bd7.js} +1 -1
  40. package/dist/assets/cs-CZ.3f25becd.js +1 -0
  41. package/dist/assets/{css.2715c204.js → css.6fb39c02.js} +1 -1
  42. package/dist/assets/{cypher.00e9acae.js → cypher.62403d7d.js} +1 -1
  43. package/dist/assets/{d.5a35cc30.js → d.3e09de4f.js} +1 -1
  44. package/dist/assets/da-DK.3460bab1.js +1 -0
  45. package/dist/assets/{dart.a107f6c3.js → dart.41841dee.js} +1 -1
  46. package/dist/assets/data-model.ef4eedaf.js +45 -0
  47. package/dist/assets/de-DE.980a9df8.js +1 -0
  48. package/dist/assets/{diff.035b0e41.js → diff.545183ee.js} +1 -1
  49. package/dist/assets/{digitalocean-app-platform.542bac85.js → digitalocean-app-platform.5dd9a78b.js} +2 -2
  50. package/dist/assets/display-templates.6412d9bf.js +1 -0
  51. package/dist/assets/display.c9e4c238.js +1 -0
  52. package/dist/assets/{displays.027c9ffc.js → displays.c3b9934b.js} +4 -4
  53. package/dist/assets/{django.771bf030.js → django.17509d05.js} +1 -1
  54. package/dist/assets/{docker.ce60011d.js → docker.2130afa6.js} +3 -3
  55. package/dist/assets/{dockerfile.69a18e53.js → dockerfile.8e4c8627.js} +1 -1
  56. package/dist/assets/{documentation.d5124166.js → documentation.e232fdb2.js} +1 -1
  57. package/dist/assets/{dtd.df94c92f.js → dtd.c5634f07.js} +1 -1
  58. package/dist/assets/{dylan.4f1df30d.js → dylan.ed64e93d.js} +1 -1
  59. package/dist/assets/{ebnf.5b209db0.js → ebnf.f0a160c2.js} +1 -1
  60. package/dist/assets/{ecl.7e72deb8.js → ecl.f410edf0.js} +1 -1
  61. package/dist/assets/{eiffel.9bf84ee8.js → eiffel.fc6fa090.js} +1 -1
  62. package/dist/assets/{el-GR.60ea8245.js → el-GR.99b9567f.js} +1 -1
  63. package/dist/assets/{elm.46445fd8.js → elm.d1f7e66b.js} +1 -1
  64. package/dist/assets/email-templates.0aa59541.js +2 -0
  65. package/dist/assets/en-CA.25c4512b.js +1 -0
  66. package/dist/assets/en-GB.24d2e667.js +1 -0
  67. package/dist/assets/{endpoints.0f025685.js → endpoints.b664ef10.js} +1 -1
  68. package/dist/assets/{erlang.50accc38.js → erlang.f5c5e431.js} +1 -1
  69. package/dist/assets/es-419.b77b2103.js +1 -0
  70. package/dist/assets/es-CL.e5af69da.js +1 -0
  71. package/dist/assets/es-ES.7fd65f45.js +1 -0
  72. package/dist/assets/es-MX.84fb11f1.js +1 -0
  73. package/dist/assets/et-EE.e10031cf.js +3 -0
  74. package/dist/assets/extensions.e511fc6d.js +12 -0
  75. package/dist/assets/fa-IR.3c0a7985.js +1 -0
  76. package/dist/assets/{factor.164d6f9d.js → factor.fdee7d27.js} +1 -1
  77. package/dist/assets/faq.cc159e10.js +2 -0
  78. package/dist/assets/{fcl.2c3dc0b9.js → fcl.8ef841db.js} +1 -1
  79. package/dist/assets/fi-FI.f2ba369a.js +1 -0
  80. package/dist/assets/field-types.129a2c41.js +1 -0
  81. package/dist/assets/field.3061af3d.js +1 -0
  82. package/dist/assets/fields.1a3f05d2.js +1 -0
  83. package/dist/assets/fields.9e13d3e0.js +135 -0
  84. package/dist/assets/file-library.531c267c.js +1 -0
  85. package/dist/assets/files.af2c1a43.js +189 -0
  86. package/dist/assets/{filter-rules.f7296d23.js → filter-rules.454352d1.js} +17 -8
  87. package/dist/assets/filters.57f37ec6.js +1 -0
  88. package/dist/assets/flows.4d2856ca.js +172 -0
  89. package/dist/assets/flows.c21cd837.js +16 -0
  90. package/dist/assets/folders.10accc4b.js +132 -0
  91. package/dist/assets/{forth.49d85bf7.js → forth.2b2f71e9.js} +1 -1
  92. package/dist/assets/{fortran.12803734.js → fortran.eeb26d81.js} +1 -1
  93. package/dist/assets/fr-CA.bd73b96f.js +1 -0
  94. package/dist/assets/fr-FR.f86a9f41.js +1 -0
  95. package/dist/assets/{gas.912b174f.js → gas.12f084f2.js} +1 -1
  96. package/dist/assets/{gcp.8ca78211.js → gcp.c7937b1a.js} +6 -6
  97. package/dist/assets/{gfm.95f7b838.js → gfm.3b66480c.js} +1 -1
  98. package/dist/assets/{gherkin.ef890b31.js → gherkin.91e46d93.js} +1 -1
  99. package/dist/assets/{github-ci.40c9d16d.js → github-ci.f7ee57b8.js} +2 -2
  100. package/dist/assets/glossary.80e53e05.js +1 -0
  101. package/dist/assets/glossary.c84cb559.js +1 -0
  102. package/dist/assets/{go.ec5a1c94.js → go.b86f91ab.js} +1 -1
  103. package/dist/assets/{groovy.0da0e846.js → groovy.cd378bb4.js} +1 -1
  104. package/dist/assets/{haml.0ccf17af.js → haml.a6cabf01.js} +1 -1
  105. package/dist/assets/{handlebars.c8657b1d.js → handlebars.5c6be823.js} +1 -1
  106. package/dist/assets/{haskell-literate.8c4cf534.js → haskell-literate.c38a1697.js} +1 -1
  107. package/dist/assets/{haskell.0a0dfa79.js → haskell.a43190de.js} +1 -1
  108. package/dist/assets/{haxe.72a9d4fd.js → haxe.67ea76a0.js} +1 -1
  109. package/dist/assets/{hooks.5488f34d.js → hooks.d1b00fc1.js} +2 -2
  110. package/dist/assets/hr-HR.649970ba.js +1 -0
  111. package/dist/assets/{htmlembedded.ea02349b.js → htmlembedded.d7fc4ddf.js} +1 -1
  112. package/dist/assets/{htmlmixed.71c55a95.js → htmlmixed.42236134.js} +1 -1
  113. package/dist/assets/{http.e373a3b6.js → http.8876645f.js} +1 -1
  114. package/dist/assets/{hu-HU.3c8e2cdc.js → hu-HU.2407b23f.js} +1 -1
  115. package/dist/assets/id-ID.46c8c32a.js +1 -0
  116. package/dist/assets/{idl.9bc82209.js → idl.1e06cb13.js} +1 -1
  117. package/dist/assets/{iis.9e682df0.js → iis.2b991a80.js} +1 -1
  118. package/dist/assets/import-export.74a08d53.js +2 -0
  119. package/dist/assets/index.03840c13.css +1 -0
  120. package/dist/assets/index.4894f51e.js +1 -0
  121. package/dist/assets/{index.e00d2c6d.entry.js → index.5552d1ba.entry.js} +188 -185
  122. package/dist/assets/{index.ec7b5840.js → index.791e9a3d.js} +1 -1
  123. package/dist/assets/index.cd90c757.js +1 -0
  124. package/dist/assets/{input-rich-text-html.0b6df824.js → input-rich-text-html.c3a5d829.js} +42 -42
  125. package/dist/assets/{input-rich-text-html.49906812.css → input-rich-text-html.c883b2df.css} +1 -1
  126. package/dist/assets/insights.0f2b188e.js +2 -0
  127. package/dist/assets/installation.131e828a.js +1 -0
  128. package/dist/assets/interface.aa4f61a0.js +1 -0
  129. package/dist/assets/{interfaces.38099de0.js → interfaces.fc4c7384.js} +3 -3
  130. package/dist/assets/introduction.0f06a30b.js +1 -0
  131. package/dist/assets/introduction.24acabd2.js +90 -0
  132. package/dist/assets/{introduction.e6dc6284.js → introduction.b1da78a4.js} +2 -2
  133. package/dist/assets/introduction.e8ce5583.js +1 -0
  134. package/dist/assets/it-IT.922112b6.js +1 -0
  135. package/dist/assets/items.b5bb1efd.js +1 -0
  136. package/dist/assets/items.cc5ed80d.js +136 -0
  137. package/dist/assets/{ja-JP.bfb2f81a.js → ja-JP.01e593ca.js} +1 -1
  138. package/dist/assets/{javascript-hint.bd8ca2b7.js → javascript-hint.6d6f81e5.js} +1 -1
  139. package/dist/assets/{javascript.498e8ddb.js → javascript.b46feeed.js} +1 -1
  140. package/dist/assets/{jinja2.54efd8a5.js → jinja2.b4f1b6ad.js} +1 -1
  141. package/dist/assets/{jsx.efc77b84.js → jsx.211683b6.js} +1 -1
  142. package/dist/assets/{julia.90341379.js → julia.baee0bfc.js} +1 -1
  143. package/dist/assets/kmr-TR.2c6e59b8.js +1 -0
  144. package/dist/assets/layouts.1b59a4c4.js +1 -0
  145. package/dist/assets/{layouts.f9cfede4.js → layouts.2759613b.js} +4 -4
  146. package/dist/assets/{livescript.cb85e981.js → livescript.cce15eeb.js} +1 -1
  147. package/dist/assets/localization.854fe2a6.js +1 -0
  148. package/dist/assets/lt-LT.18f09ae6.js +1 -0
  149. package/dist/assets/{lua.cc15c79a.js → lua.2285f263.js} +1 -1
  150. package/dist/assets/{manual.cc05cff9.js → manual.e19c207e.js} +5 -5
  151. package/dist/assets/{mark-selection.cfa3fcec.js → mark-selection.4abbe02e.js} +1 -1
  152. package/dist/assets/{match-highlighter.bd16b014.js → match-highlighter.28d31a20.js} +1 -1
  153. package/dist/assets/{mathematica.17c84e9b.js → mathematica.326d84f6.js} +1 -1
  154. package/dist/assets/{mbox.c07261a5.js → mbox.0bf9befe.js} +1 -1
  155. package/dist/assets/migrations.70984e94.js +19 -0
  156. package/dist/assets/{mirc.6c81e0d9.js → mirc.6eedfef8.js} +1 -1
  157. package/dist/assets/{mllike.647fee7d.js → mllike.96a9792b.js} +1 -1
  158. package/dist/assets/{modelica.7f095a0c.js → modelica.a729f46d.js} +1 -1
  159. package/dist/assets/{modules.aed8795b.js → modules.368e658d.js} +3 -3
  160. package/dist/assets/{mscgen.e7ec6db0.js → mscgen.fcbf244c.js} +1 -1
  161. package/dist/assets/{multiplex.b20d59d9.js → multiplex.e75d927b.js} +1 -1
  162. package/dist/assets/{mumps.e1926e1a.js → mumps.b063975e.js} +1 -1
  163. package/dist/assets/{nginx.3e60b1d8.js → nginx.486ac0b3.js} +1 -1
  164. package/dist/assets/nl-NL.57220fbc.js +1 -0
  165. package/dist/assets/{no-NO.59f9d425.js → no-NO.3bb25fb7.js} +1 -1
  166. package/dist/assets/notifications.71793dcb.js +153 -0
  167. package/dist/assets/{nsis.b4d2f79d.js → nsis.1f1f7f19.js} +1 -1
  168. package/dist/assets/{ntriples.23fe57b5.js → ntriples.23df3a06.js} +1 -1
  169. package/dist/assets/{octave.bc18fbba.js → octave.a7c39dfd.js} +1 -1
  170. package/dist/assets/operations.3a53915d.js +169 -0
  171. package/dist/assets/{operations.a263ba49.js → operations.687b2da1.js} +1 -1
  172. package/dist/assets/operations.845da620.js +1 -0
  173. package/dist/assets/{overlay.914efac4.js → overlay.25718331.js} +1 -1
  174. package/dist/assets/overview.2aef2737.js +1 -0
  175. package/dist/assets/overview.42c9bc71.js +1 -0
  176. package/dist/assets/{overview.21a42c2e.js → overview.77c84906.js} +0 -0
  177. package/dist/assets/{oz.467f2daf.js → oz.50920854.js} +1 -1
  178. package/dist/assets/{panels.d307c197.js → panels.1c9e59a5.js} +3 -3
  179. package/dist/assets/{pascal.3b07fc1d.js → pascal.254524bf.js} +1 -1
  180. package/dist/assets/{pegjs.d8aa363f.js → pegjs.109b328f.js} +1 -1
  181. package/dist/assets/{perl.5b744b42.js → perl.a6a13b0b.js} +1 -1
  182. package/dist/assets/permissions.7c6e7d90.js +178 -0
  183. package/dist/assets/{php.139f8b23.js → php.ffc2eaca.js} +1 -1
  184. package/dist/assets/{pig.df6cedd4.js → pig.5098455f.js} +1 -1
  185. package/dist/assets/pl-PL.dfc1a032.js +1 -0
  186. package/dist/assets/plesk.09c47961.js +27 -0
  187. package/dist/assets/{powershell.b3b5efd9.js → powershell.1a2fb8e0.js} +1 -1
  188. package/dist/assets/{presets-bookmarks.668779cf.js → presets-bookmarks.3d6f189f.js} +1 -1
  189. package/dist/assets/presets.a6220515.js +164 -0
  190. package/dist/assets/project-settings.5ba0a483.js +1 -0
  191. package/dist/assets/projects.7b210ac2.js +1 -0
  192. package/dist/assets/{properties.7b21f6e1.js → properties.f55a4bf0.js} +1 -1
  193. package/dist/assets/{protobuf.a9cd2a14.js → protobuf.9cc87b15.js} +1 -1
  194. package/dist/assets/pt-BR.a8e95f48.js +1 -0
  195. package/dist/assets/pt-PT.2233fb43.js +1 -0
  196. package/dist/assets/{pug.1187ae8d.js → pug.09de4b33.js} +1 -1
  197. package/dist/assets/{puppet.19c616b8.js → puppet.7cd5c3df.js} +1 -1
  198. package/dist/assets/{python.ccb55c13.js → python.8647bbb6.js} +1 -1
  199. package/dist/assets/{q.24958204.js → q.83eacee3.js} +1 -1
  200. package/dist/assets/query.b72e23c9.js +152 -0
  201. package/dist/assets/quickstart.0e152d2a.js +20 -0
  202. package/dist/assets/quickstart.1d485356.js +9 -0
  203. package/dist/assets/{r.acb07d5a.js → r.22d59660.js} +1 -1
  204. package/dist/assets/readme.a5652282.js +1 -0
  205. package/dist/assets/relations.804b318b.js +115 -0
  206. package/dist/assets/relationship.040a5095.js +1 -0
  207. package/dist/assets/relationships.ff02a9ff.js +82 -0
  208. package/dist/assets/resources.efe9810e.js +1 -0
  209. package/dist/assets/revisions.121cb7de.js +40 -0
  210. package/dist/assets/ro-RO.52012f13.js +1 -0
  211. package/dist/assets/roles.680acff2.js +171 -0
  212. package/dist/assets/{rpm.f085c147.js → rpm.45123b1f.js} +1 -1
  213. package/dist/assets/{rst.d419af03.js → rst.0d2ffa96.js} +1 -1
  214. package/dist/assets/ru-RU.9f19c25d.js +1 -0
  215. package/dist/assets/{ruby.43be0a34.js → ruby.0befbc72.js} +1 -1
  216. package/dist/assets/running-locally.4b4aa0d8.js +27 -0
  217. package/dist/assets/{rust.cce3b400.js → rust.0aadcb17.js} +1 -1
  218. package/dist/assets/{sas.16484722.js → sas.6509cc75.js} +1 -1
  219. package/dist/assets/{sass.7051c1f1.js → sass.3fef2c5c.js} +1 -1
  220. package/dist/assets/schema.5f5eb18e.js +1 -0
  221. package/dist/assets/{scheme.ca9d730a.js → scheme.6583195f.js} +1 -1
  222. package/dist/assets/{sdk.ea5b0946.js → sdk.84d76266.js} +76 -70
  223. package/dist/assets/security.6a8942ba.js +1 -0
  224. package/dist/assets/server.b24a421b.js +114 -0
  225. package/dist/assets/settings.d3a9b46c.js +58 -0
  226. package/dist/assets/settings.d91e399d.js +1 -0
  227. package/dist/assets/shares.6bb87993.js +1 -0
  228. package/dist/assets/{shell.459f40ee.js → shell.c33a256a.js} +1 -1
  229. package/dist/assets/{show-hint.e01428dd.js → show-hint.e10f26ff.js} +1 -1
  230. package/dist/assets/{sieve.0bc80c89.js → sieve.adb9c5cd.js} +1 -1
  231. package/dist/assets/sl-SI.8f397c20.js +2 -0
  232. package/dist/assets/{slim.2d290285.js → slim.34875ef9.js} +1 -1
  233. package/dist/assets/{smalltalk.41636747.js → smalltalk.ce10cb5f.js} +1 -1
  234. package/dist/assets/{smarty.d1631985.js → smarty.42882935.js} +1 -1
  235. package/dist/assets/{solr.b1df9d52.js → solr.5286f18c.js} +1 -1
  236. package/dist/assets/{soy.99e75aa8.js → soy.4f95bef4.js} +1 -1
  237. package/dist/assets/{sparql.d5b1eee4.js → sparql.771a3939.js} +1 -1
  238. package/dist/assets/{spreadsheet.29a03e30.js → spreadsheet.84749884.js} +1 -1
  239. package/dist/assets/{sql.3413d6f9.js → sql.e6ae0ded.js} +1 -1
  240. package/dist/assets/sr-CS.8082fb81.js +1 -0
  241. package/dist/assets/sr-SP.3f95d056.js +1 -0
  242. package/dist/assets/{sso-examples.ad647c9c.js → sso-examples.eb8e7423.js} +2 -2
  243. package/dist/assets/{sso.cf805e38.js → sso.c929d07f.js} +3 -3
  244. package/dist/assets/{stex.7276068b.js → stex.248311c6.js} +1 -1
  245. package/dist/assets/{stylus.ed00f8db.js → stylus.75da53bc.js} +1 -1
  246. package/dist/assets/support.09b549ef.js +1 -0
  247. package/dist/assets/sv-SE.08585432.js +1 -0
  248. package/dist/assets/{swift.26ec0a65.js → swift.9d07c193.js} +1 -1
  249. package/dist/assets/{tcl.ebb4437a.js → tcl.7a1d8f5e.js} +1 -1
  250. package/dist/assets/teams.ab67345b.js +1 -0
  251. package/dist/assets/{textile.7ff1ea5c.js → textile.3f318174.js} +1 -1
  252. package/dist/assets/th-TH.8a058ef9.js +2 -0
  253. package/dist/assets/{themes.3d802c3b.js → themes.078e9124.js} +2 -2
  254. package/dist/assets/{tiddlywiki.36daf39b.js → tiddlywiki.70063591.js} +1 -1
  255. package/dist/assets/{tiki.c1a7e00c.js → tiki.be5148f3.js} +1 -1
  256. package/dist/assets/{toml.16e84917.js → toml.1c4a2454.js} +1 -1
  257. package/dist/assets/{tornado.9b8dbfb8.js → tornado.2951da45.js} +1 -1
  258. package/dist/assets/tr-TR.039a12a9.js +1 -0
  259. package/dist/assets/translation-strings.2e3ee87a.js +1 -0
  260. package/dist/assets/translations.36a34606.js +1 -0
  261. package/dist/assets/translations.fb062afb.js +1 -0
  262. package/dist/assets/triggers.44226865.js +1 -0
  263. package/dist/assets/{troff.a86a07b9.js → troff.87ee9d68.js} +1 -1
  264. package/dist/assets/{ttcn-cfg.df680d6a.js → ttcn-cfg.c84cc180.js} +1 -1
  265. package/dist/assets/{ttcn.33574dcc.js → ttcn.2e4df029.js} +1 -1
  266. package/dist/assets/{turtle.93ac23eb.js → turtle.95894809.js} +1 -1
  267. package/dist/assets/{twig.04df7bbf.js → twig.d66473bf.js} +1 -1
  268. package/dist/assets/ubuntu.79ece84b.js +11 -0
  269. package/dist/assets/uk-UA.e0916a2f.js +1 -0
  270. package/dist/assets/upgrades-migrations.ea8bea7b.js +1 -0
  271. package/dist/assets/user-directory.bac5f2ee.js +1 -0
  272. package/dist/assets/users-roles-permissions.e36d0bc8.js +1 -0
  273. package/dist/assets/users.a9ad4dd9.js +252 -0
  274. package/dist/assets/utilities.00432834.js +74 -0
  275. package/dist/assets/validation.2c0c5444.js +1 -0
  276. package/dist/assets/{vb.44c875a2.js → vb.6fa3f35c.js} +1 -1
  277. package/dist/assets/{vbscript.87bdeb77.js → vbscript.9733613a.js} +1 -1
  278. package/dist/assets/{velocity.cc1dfc19.js → velocity.01fb0be3.js} +1 -1
  279. package/dist/assets/{verilog.0f07ab6c.js → verilog.424d22ca.js} +1 -1
  280. package/dist/assets/{vhdl.41fb7cf9.js → vhdl.f35cfe5f.js} +1 -1
  281. package/dist/assets/vi-VN.fff05bda.js +1 -0
  282. package/dist/assets/{vue.5d653ac7.js → vue.00bb2733.js} +1 -1
  283. package/dist/assets/{wast.0d4923e5.js → wast.70fe5a84.js} +1 -1
  284. package/dist/assets/webhooks.e7e122b7.js +147 -0
  285. package/dist/assets/webhooks.f0dfc270.js +1 -0
  286. package/dist/assets/{webidl.e399c0a3.js → webidl.b85758c5.js} +1 -1
  287. package/dist/assets/{xquery.45a960e6.js → xquery.ac0d6186.js} +1 -1
  288. package/dist/assets/{yacas.842e0a74.js → yacas.bbc1de95.js} +1 -1
  289. package/dist/assets/{yaml-frontmatter.93f99653.js → yaml-frontmatter.bcf994b4.js} +1 -1
  290. package/dist/assets/{yaml.da4da1d2.js → yaml.aa565fd3.js} +1 -1
  291. package/dist/assets/{z80.e8d0aed2.js → z80.6ef87436.js} +1 -1
  292. package/dist/assets/zh-CN.e03e0e56.js +1 -0
  293. package/dist/assets/zh-TW.453f1e60.js +1 -0
  294. package/dist/index.html +2 -2
  295. package/package.json +3 -3
  296. package/dist/assets/accounts.8fbf8699.js +0 -1
  297. package/dist/assets/activity-log.edaa174f.js +0 -1
  298. package/dist/assets/activity.f03e4c50.js +0 -80
  299. package/dist/assets/af-ZA.c9c94fcd.js +0 -1
  300. package/dist/assets/app-overview.6445a201.svg +0 -86
  301. package/dist/assets/ar-SA.52ee85f9.js +0 -1
  302. package/dist/assets/authentication.a37290ac.js +0 -73
  303. package/dist/assets/aws.81dde688.js +0 -1
  304. package/dist/assets/backing-directus.877781ff.js +0 -1
  305. package/dist/assets/bg-BG.8d8c105a.js +0 -1
  306. package/dist/assets/br-FR.d3564938.js +0 -1
  307. package/dist/assets/ca-ES.f3dfdef6.js +0 -1
  308. package/dist/assets/cli.e9c97474.js +0 -19
  309. package/dist/assets/cloudron.ccb9f60b.js +0 -1
  310. package/dist/assets/codebase-overview.2867468d.js +0 -1
  311. package/dist/assets/collections.09fe8eef.js +0 -106
  312. package/dist/assets/collections.d440e2c1.js +0 -2
  313. package/dist/assets/config-options.592aab17.js +0 -138
  314. package/dist/assets/content.d6024fae.js +0 -1
  315. package/dist/assets/cs-CZ.ba778ad2.js +0 -1
  316. package/dist/assets/da-DK.38409d46.js +0 -1
  317. package/dist/assets/data-model.b806a25a.js +0 -1
  318. package/dist/assets/de-DE.8d6a71ed.js +0 -1
  319. package/dist/assets/display-templates.af38b75d.js +0 -1
  320. package/dist/assets/email-templates.cf7de2aa.js +0 -2
  321. package/dist/assets/en-CA.9ad3a3ab.js +0 -1
  322. package/dist/assets/en-GB.61c87be5.js +0 -1
  323. package/dist/assets/es-419.ca94d216.js +0 -1
  324. package/dist/assets/es-CL.ae584c00.js +0 -1
  325. package/dist/assets/es-ES.3ff9088e.js +0 -1
  326. package/dist/assets/es-MX.059cc750.js +0 -1
  327. package/dist/assets/et-EE.fb46a361.js +0 -3
  328. package/dist/assets/extensions.27ee4742.js +0 -12
  329. package/dist/assets/fa-IR.b864f77c.js +0 -1
  330. package/dist/assets/faq.633c25f1.js +0 -2
  331. package/dist/assets/fi-FI.14f31cb4.js +0 -1
  332. package/dist/assets/fields.47aabeca.js +0 -135
  333. package/dist/assets/file-library.82e96a16.js +0 -1
  334. package/dist/assets/files.97dd14f6.js +0 -189
  335. package/dist/assets/filters.b1397c95.js +0 -1
  336. package/dist/assets/flows.0173f6d4.js +0 -172
  337. package/dist/assets/flows.7116f535.js +0 -15
  338. package/dist/assets/folders.0622ae98.js +0 -132
  339. package/dist/assets/fr-CA.87857f82.js +0 -1
  340. package/dist/assets/fr-FR.43594476.js +0 -1
  341. package/dist/assets/glossary.38068d72.js +0 -1
  342. package/dist/assets/glossary.ecc8e7cf.js +0 -1
  343. package/dist/assets/hr-HR.467388ee.js +0 -1
  344. package/dist/assets/id-ID.8089647c.js +0 -1
  345. package/dist/assets/import-export.2114c732.js +0 -2
  346. package/dist/assets/index.8627ddb4.js +0 -1
  347. package/dist/assets/index.b9f1c213.css +0 -1
  348. package/dist/assets/insights.7988716a.js +0 -2
  349. package/dist/assets/installation.5215ce07.js +0 -1
  350. package/dist/assets/introduction.807bce52.js +0 -1
  351. package/dist/assets/introduction.a173e7ad.js +0 -90
  352. package/dist/assets/introduction.a6b2c1f0.js +0 -1
  353. package/dist/assets/it-IT.39e71c5e.js +0 -1
  354. package/dist/assets/items.02ad4f11.js +0 -1
  355. package/dist/assets/items.ba1efbf4.js +0 -136
  356. package/dist/assets/layouts.dded37a5.js +0 -1
  357. package/dist/assets/localization.f384f316.js +0 -1
  358. package/dist/assets/lt-LT.f2d719ff.js +0 -1
  359. package/dist/assets/migrations.fa20b23d.js +0 -19
  360. package/dist/assets/nl-NL.e613d40a.js +0 -1
  361. package/dist/assets/notifications.5186ee54.js +0 -153
  362. package/dist/assets/operations.51c06345.js +0 -1
  363. package/dist/assets/operations.eaacfa1d.js +0 -169
  364. package/dist/assets/overview.0fe284a4.js +0 -1
  365. package/dist/assets/overview.a1598534.js +0 -1
  366. package/dist/assets/permissions.355cb88d.js +0 -178
  367. package/dist/assets/pl-PL.91a0c1e6.js +0 -1
  368. package/dist/assets/plesk-screenshot.00f26a33.png +0 -0
  369. package/dist/assets/plesk.c1379970.js +0 -27
  370. package/dist/assets/presets.0d5dc9c6.js +0 -164
  371. package/dist/assets/project-settings.2a64f071.js +0 -1
  372. package/dist/assets/projects.f82931e8.js +0 -1
  373. package/dist/assets/pt-BR.ce1fdc59.js +0 -1
  374. package/dist/assets/pt-PT.f5bc9b8e.js +0 -1
  375. package/dist/assets/query.8fb6cf04.js +0 -152
  376. package/dist/assets/quickstart.c0e4b8bd.js +0 -20
  377. package/dist/assets/quickstart.f2432960.js +0 -9
  378. package/dist/assets/relations.2dfa7993.js +0 -115
  379. package/dist/assets/relationships.eb7e340c.js +0 -55
  380. package/dist/assets/resources.b4808e35.js +0 -1
  381. package/dist/assets/revisions.cf799486.js +0 -40
  382. package/dist/assets/ro-RO.a1adfb6a.js +0 -1
  383. package/dist/assets/roles.b0107422.js +0 -171
  384. package/dist/assets/ru-RU.74ac881b.js +0 -1
  385. package/dist/assets/running-locally.a3ec7567.js +0 -27
  386. package/dist/assets/security.b7fcc1c2.js +0 -1
  387. package/dist/assets/server.22f6f2c1.js +0 -114
  388. package/dist/assets/settings.509b7560.js +0 -1
  389. package/dist/assets/settings.c4a634ae.js +0 -51
  390. package/dist/assets/shares.4d7659d8.js +0 -1
  391. package/dist/assets/sl-SI.632899f8.js +0 -2
  392. package/dist/assets/sr-CS.2e5b18be.js +0 -1
  393. package/dist/assets/sr-SP.f91eaaca.js +0 -1
  394. package/dist/assets/support.6594facf.js +0 -1
  395. package/dist/assets/sv-SE.d485ddd3.js +0 -1
  396. package/dist/assets/teams.f575332d.js +0 -1
  397. package/dist/assets/th-TH.1e9ab13f.js +0 -2
  398. package/dist/assets/tr-TR.feb24957.js +0 -1
  399. package/dist/assets/translation-strings.fe88793b.js +0 -1
  400. package/dist/assets/translations.4be9ec77.js +0 -1
  401. package/dist/assets/triggers.c34177a3.js +0 -1
  402. package/dist/assets/ubuntu.cc908491.js +0 -11
  403. package/dist/assets/uk-UA.0e92f9a4.js +0 -1
  404. package/dist/assets/upgrades-migrations.a57ef987.js +0 -1
  405. package/dist/assets/user-directory.7b875602.js +0 -1
  406. package/dist/assets/users-roles-permissions.00ffdc25.js +0 -1
  407. package/dist/assets/users.0638ab5f.js +0 -252
  408. package/dist/assets/utilities.b2f15bfd.js +0 -74
  409. package/dist/assets/vi-VN.3e9c985f.js +0 -1
  410. package/dist/assets/webhooks.1f89f80a.js +0 -147
  411. package/dist/assets/webhooks.3d6334e9.js +0 -1
  412. package/dist/assets/zh-CN.5f89875e.js +0 -1
  413. package/dist/assets/zh-TW.2ac2bb07.js +0 -1
@@ -1,189 +0,0 @@
1
- import{a as i,o as c,b as h,w as a,g as s,e as l,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},u=s("div",{class:"two-up"},[s("div",{class:"left"},[s("blockquote",null,[s("p",null,[e("Every file managed by the platform is uploaded to the configured storage adapter, and its associated metadata is tracked within the "),s("code",null,"directus_files"),e(" system collection. Any requested file transformations are handled on the fly, and are only saved to storage.")])])]),s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#accessing-a-file"}," Accessing a File")]),s("li",null,[s("a",{href:"#downloading-a-file"}," Downloading a File")]),s("li",null,[s("a",{href:"#requesting-a-thumbnail"}," Requesting a Thumbnail")]),s("li",null,[s("a",{href:"#the-file-object"}," The File Object")]),s("li",null,[s("a",{href:"#list-files"}," List Files")]),s("li",null,[s("a",{href:"#retrieve-a-file"}," Retrieve a File")]),s("li",null,[s("a",{href:"#upload-a-file"}," Upload a File")]),s("li",null,[s("a",{href:"#import-a-file"}," Import a File")]),s("li",null,[s("a",{href:"#update-a-file"}," Update a File")]),s("li",null,[s("a",{href:"#update-multiple-files"}," Update Multiple Files")]),s("li",null,[s("a",{href:"#delete-a-file"}," Delete a File")]),s("li",null,[s("a",{href:"#delete-multiple-files"}," Delete Multiple Files")])])])])])],-1),p=s("hr",null,null,-1),f=s("h2",{id:"accessing-a-file",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#accessing-a-file"},"#"),e(" Accessing a File")],-1),_=s("div",{class:"two-up"},[s("div",{class:"left"},[s("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."),s("pre",null,[s("code",null,`example.com/assets/<file-id>
2
- example.com/assets/1ac73658-8b62-4dea-b6da-529fbc9d01a4
3
- `)]),s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"SEO"),s("p",null,"You can provide an optional filename after the UUID to optimize for SEO, for example:"),s("pre",null,[s("code",null,`example.com/assets/<file-id>/<filename>
4
- example.com/assets/1ac73658-8b62-4dea-b6da-529fbc9d01a4/directus-logo.png
5
- `)]),s("p",null,[e("This optional filename is also used in the Content-Disposition header when the "),s("code",null,"?download"),e(" query parameter is used.")])]),s("div",{class:"warning hint"},[s("div",{class:"hint-title"},"Direct File Access"),s("p",null,[e("While you may "),s("em",null,"technically"),e(" 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.")])])]),s("div",{class:"right"},[s("p",null,[s("img",{src:"https://cdn.directus.io/docs/v9/reference/files/original-20220216A.jpg",alt:"Original File"}),e(),s("em",null,"Original File Used \u2014 602KB and 1800x1200")])])],-1),m=s("hr",null,null,-1),g=s("h2",{id:"downloading-a-file",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#downloading-a-file"},"#"),e(" Downloading a File")],-1),j=s("div",{class:"two-up"},[s("div",{class:"left"},[s("p",null,[e("To download an asset with the correct filename, you need to add the "),s("code",null,"?download"),e(" query parameter to the request and the "),s("code",null,"download"),e(" attribute to your anchor tag. This will ensure the appropriate "),s("a",{href:"https://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html",target:"_blank",rel:"noopener noreferrer"},"Content-Disposition"),e(" headers are added. Without this, the download will work on the "),s("em",null,"same"),e(" domain, however it will have the file\u2019s \u201Cid\u201D as the filename for cross-origin requests.")])]),s("div",{class:"right"},[s("h3",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-html"},[s("span",{class:"hljs-tag"},[e("<"),s("span",{class:"hljs-name"},"a"),e(),s("span",{class:"hljs-attr"},"href"),e("="),s("span",{class:"hljs-string"},'"https://your-directus.com/assets/<file-id>?download"'),e(),s("span",{class:"hljs-attr"},"target"),e("="),s("span",{class:"hljs-string"},'"_blank"'),e(),s("span",{class:"hljs-attr"},"download"),e("="),s("span",{class:"hljs-string"},'"Your File.pdf"'),e(">")]),e("Download"),s("span",{class:"hljs-tag"},[e("</"),s("span",{class:"hljs-name"},"a"),e(">")]),e(`
6
- `)])])])],-1),b=s("hr",null,null,-1),y=s("h2",{id:"requesting-a-thumbnail",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#requesting-a-thumbnail"},"#"),e(" Requesting a Thumbnail")],-1),x={class:"two-up"},v={class:"left"},w=s("p",null,[e("Fetching thumbnails is as easy as adding a "),s("code",null,"key"),e(" 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),q=s("h3",{id:"preset-transformations",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#preset-transformations"},"#"),e(" Preset Transformations")],-1),T=s("strong",null,[s("code",null,"key")],-1),k=e(" \u2014 This "),R=s("strong",null,"key",-1),E=e(" of the "),A=e("Storage Asset Preset"),D=e(", a shortcut for the below parameters"),S=s("h3",{id:"custom-transformations",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#custom-transformations"},"#"),e(" Custom Transformations")],-1),F=s("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=s("ul",null,[s("li",null,[s("strong",null,[s("code",null,"fit")]),e(" \u2014 The "),s("strong",null,"fit"),e(" of the thumbnail while always preserving the aspect ratio, can be any of the following options: "),s("ul",null,[s("li",null,[s("code",null,"cover"),e(" \u2014 Covers both width/height by cropping/clipping to fit")]),s("li",null,[s("code",null,"contain"),e(" \u2014 Contain within both width/height using \u201Cletterboxing\u201D as needed")]),s("li",null,[s("code",null,"inside"),e(" \u2014 Resize to be as large as possible, ensuring dimensions are less than or equal to the requested width and height")]),s("li",null,[s("code",null,"outside"),e(" \u2014 Resize to be as small as possible, ensuring dimensions are greater than or equal to the requested width and height")])])]),s("li",null,[s("strong",null,[s("code",null,"width")]),e(" \u2014 The "),s("strong",null,"width"),e(" of the thumbnail in pixels")]),s("li",null,[s("strong",null,[s("code",null,"height")]),e(" \u2014 The "),s("strong",null,"height"),e(" of the thumbnail in pixels")]),s("li",null,[s("strong",null,[s("code",null,"quality")]),e(" \u2014 The optional "),s("strong",null,"quality"),e(" of the thumbnail ("),s("code",null,"1"),e(" to "),s("code",null,"100"),e(")")]),s("li",null,[s("strong",null,[s("code",null,"withoutEnlargement")]),e(" \u2014 Disable image up-scaling")]),s("li",null,[s("strong",null,[s("code",null,"format")]),e(" \u2014 What file format to return the thumbnail in. One of "),s("code",null,"jpg"),e(", "),s("code",null,"png"),e(", "),s("code",null,"webp"),e(", "),s("code",null,"tiff")])],-1),C=s("h3",{id:"advanced-transformations",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#advanced-transformations"},"#"),e(" Advanced Transformations")],-1),I=s("p",null,[e("For even more advanced control over the file generation, Directus exposes "),s("a",{href:"https://sharp.pixelplumbing.com/api-operation",target:"_blank",rel:"noopener noreferrer"},[e("the full "),s("code",null,"sharp"),e(" API")]),e(" through the "),s("code",null,"transforms"),e(" query parameter. This parameter accepts a two-dimensional array with the format "),s("code",null,"[Operation, ...arguments]"),e(".")],-1),O=s("h3",{id:"quality-vs-filesize",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#quality-vs-filesize"},"#"),e(" Quality vs Filesize")],-1),Q=s("p",null,[e("The quality parameter can be any integer from "),s("code",null,"0-100"),e(". Qualities closer to "),s("code",null,"0"),e(" have lower filesizes, but also poor image quality due to compression artifacts. Values closer to "),s("code",null,"100"),e(" 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=s("table",null,[s("thead",null,[s("tr",null,[s("th",null,"25%"),s("th",null,"50%"),s("th",null,"75%"),s("th",null,"100%")])]),s("tbody",null,[s("tr",null,[s("td",null,[s("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-25-20220216A.jpg",alt:"25%"}),s("br"),s("em",null,"4KB")]),s("td",null,[s("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-50-20220216A.jpg",alt:"50%"}),s("br"),s("em",null,"6KB")]),s("td",null,[s("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-75-20220216A.jpg",alt:"75%"}),s("br"),s("em",null,"8KB")]),s("td",null,[s("img",{src:"https://cdn.directus.io/docs/v9/reference/files/200-200-cover-100-20220216A.jpg",alt:"100%"}),s("br"),s("em",null,"38KB")])])])],-1),B=s("div",{class:"right"},[s("h3",{id:"preset",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#preset"},"#"),e(" Preset")]),s("pre",null,[s("code",null,`example.com/assets/<file-id>?key=<key>
7
- `)]),s("h3",{id:"custom",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#custom"},"#"),e(" Custom")]),s("pre",null,[s("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
- `)]),s("h3",{id:"advanced",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#advanced"},"#"),e(" Advanced")]),s("pre",null,[s("code",null,`?transforms=[
10
- ["blur", 45],
11
- ["tint", "rgb(255, 0, 0)"],
12
- ["expand", { "right": 200, "bottom": 150 }]
13
- ]
14
- `)])],-1),L=s("hr",null,null,-1),X=s("h2",{id:"the-file-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-file-object"},"#"),e(" The File Object")],-1),Y={class:"two-up"},M={class:"left"},z={class:"definitions"},G=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the file")],-1),N=s("p",null,[s("code",null,"storage"),e(),s("strong",null,"string"),s("br"),e(" Storage adapter used for the file.")],-1),Z=s("p",null,[s("code",null,"filename_disk"),e(),s("strong",null,"string"),s("br"),e(" Name of the file as saved on the storage adapter.")],-1),H=s("p",null,[s("code",null,"filename_download"),e(),s("strong",null,"string"),s("br"),e(" Preferred filename when file is downloaded.")],-1),W=s("p",null,[s("code",null,"title"),e(),s("strong",null,"string"),s("br"),e(" Title for the file.")],-1),K=s("p",null,[s("code",null,"type"),e(),s("strong",null,"string"),s("br"),e(" Mimetype of the file.")],-1),J=s("code",null,"folder",-1),V=e(),$=s("strong",null,"many-to-one",-1),ss=s("br",null,null,-1),es=e(" What (virtual) folder the file is in. Many-to-one to "),as=e("folders"),ts=e("."),ls=s("code",null,"uploaded_by",-1),ns=e(),is=s("strong",null,"many-to-one",-1),os=s("br",null,null,-1),rs=e(" Who uploaded the file. Many-to-one to "),cs=e("users"),hs=e("."),ds=s("p",null,[s("code",null,"uploaded_on"),e(),s("strong",null,"datetime"),s("br"),e(" When the file was uploaded.")],-1),us=s("code",null,"modified_by",-1),ps=e(),fs=s("strong",null,"many-to-one",-1),_s=s("br",null,null,-1),ms=e(" Who updated the file last. Many-to-one to "),gs=e("users"),js=e("."),bs=s("p",null,[s("code",null,"filesize"),e(),s("strong",null,"number"),s("br"),e(" Size of the file in bytes.")],-1),ys=s("p",null,[s("code",null,"width"),e(),s("strong",null,"number"),s("br"),e(" If the file is a(n) image/video, it\u2019s the width in px.")],-1),xs=s("p",null,[s("code",null,"height"),e(),s("strong",null,"number"),s("br"),e(" If the file is a(n) image/video, it\u2019s the height in px.")],-1),vs=s("p",null,[s("code",null,"duration"),e(),s("strong",null,"number"),s("br"),e(" If the file contains audio/video, it\u2019s the duration in milliseconds.")],-1),ws=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description of the file.")],-1),qs=s("p",null,[s("code",null,"location"),e(),s("strong",null,"string"),s("br"),e(" Location of the file.")],-1),Ts=s("p",null,[s("code",null,"tags"),e(),s("strong",null,"array"),s("br"),e(" Tags for the file.")],-1),ks=s("p",null,[s("code",null,"metadata"),e(),s("strong",null,"object"),s("br"),e(" Any additional metadata Directus was able to scrape from the file. For images, this includes EXIF, IPTC, and ICC information.")],-1),Rs=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
15
- `),s("span",{class:"hljs-attr"},'"id"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"4f4b14fa-a43a-46d0-b7ad-90af5919bebb"'),s("span",{class:"hljs-punctuation"},","),e(`
16
- `),s("span",{class:"hljs-attr"},'"storage"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"local"'),s("span",{class:"hljs-punctuation"},","),e(`
17
- `),s("span",{class:"hljs-attr"},'"filename_disk"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"4f4b14fa-a43a-46d0-b7ad-90af5919bebb.jpeg"'),s("span",{class:"hljs-punctuation"},","),e(`
18
- `),s("span",{class:"hljs-attr"},'"filename_download"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"paulo-silva-vSRgXtQuns8-unsplash.jpg"'),s("span",{class:"hljs-punctuation"},","),e(`
19
- `),s("span",{class:"hljs-attr"},'"title"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Paulo Silva (via Unsplash)"'),s("span",{class:"hljs-punctuation"},","),e(`
20
- `),s("span",{class:"hljs-attr"},'"type"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"image/jpeg"'),s("span",{class:"hljs-punctuation"},","),e(`
21
- `),s("span",{class:"hljs-attr"},'"folder"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),s("span",{class:"hljs-punctuation"},","),e(`
22
- `),s("span",{class:"hljs-attr"},'"uploaded_by"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"0bc7b36a-9ba9-4ce0-83f0-0a526f354e07"'),s("span",{class:"hljs-punctuation"},","),e(`
23
- `),s("span",{class:"hljs-attr"},'"uploaded_on"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"2021-02-04T11:37:41-05:00"'),s("span",{class:"hljs-punctuation"},","),e(`
24
- `),s("span",{class:"hljs-attr"},'"modified_by"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),s("span",{class:"hljs-punctuation"},","),e(`
25
- `),s("span",{class:"hljs-attr"},'"modified_on"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"2021-02-04T11:37:42-05:00"'),s("span",{class:"hljs-punctuation"},","),e(`
26
- `),s("span",{class:"hljs-attr"},'"filesize"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-number"},"3442252"),s("span",{class:"hljs-punctuation"},","),e(`
27
- `),s("span",{class:"hljs-attr"},'"width"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-number"},"3456"),s("span",{class:"hljs-punctuation"},","),e(`
28
- `),s("span",{class:"hljs-attr"},'"height"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-number"},"5184"),s("span",{class:"hljs-punctuation"},","),e(`
29
- `),s("span",{class:"hljs-attr"},'"duration"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),s("span",{class:"hljs-punctuation"},","),e(`
30
- `),s("span",{class:"hljs-attr"},'"description"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),s("span",{class:"hljs-punctuation"},","),e(`
31
- `),s("span",{class:"hljs-attr"},'"location"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),s("span",{class:"hljs-punctuation"},","),e(`
32
- `),s("span",{class:"hljs-attr"},'"tags"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"photo"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"pretty"'),s("span",{class:"hljs-punctuation"},"]"),s("span",{class:"hljs-punctuation"},","),e(`
33
- `),s("span",{class:"hljs-attr"},'"metadata"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"{"),e(`
34
- `),s("span",{class:"hljs-attr"},'"icc"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"{"),e(`
35
- `),s("span",{class:"hljs-attr"},'"version"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"2.1"'),s("span",{class:"hljs-punctuation"},","),e(`
36
- `),s("span",{class:"hljs-attr"},'"intent"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Perceptual"'),s("span",{class:"hljs-punctuation"},","),e(`
37
- `),s("span",{class:"hljs-attr"},'"cmm"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"lcms"'),s("span",{class:"hljs-punctuation"},","),e(`
38
- `),s("span",{class:"hljs-attr"},'"deviceClass"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Monitor"'),s("span",{class:"hljs-punctuation"},","),e(`
39
- `),s("span",{class:"hljs-attr"},'"colorSpace"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"RGB"'),s("span",{class:"hljs-punctuation"},","),e(`
40
- `),s("span",{class:"hljs-attr"},'"connectionSpace"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"XYZ"'),s("span",{class:"hljs-punctuation"},","),e(`
41
- `),s("span",{class:"hljs-attr"},'"platform"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Apple"'),s("span",{class:"hljs-punctuation"},","),e(`
42
- `),s("span",{class:"hljs-attr"},'"creator"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"lcms"'),s("span",{class:"hljs-punctuation"},","),e(`
43
- `),s("span",{class:"hljs-attr"},'"description"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"c2"'),s("span",{class:"hljs-punctuation"},","),e(`
44
- `),s("span",{class:"hljs-attr"},'"copyright"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'""'),e(`
45
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
46
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
47
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
48
- `)])])],-1),Es=s("hr",null,null,-1),As=s("h2",{id:"list-files",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-files"},"#"),e(" List Files")],-1),Ds=s("p",null,"List all files that exist in Directus.",-1),Ss={class:"two-up"},Fs={class:"left"},Ps=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),Cs=e("Supports all "),Is=e("global query parameters"),Os=e("."),Qs=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),Us=e("An array of up to "),Bs=e("limit"),Ls=e(),Xs=s("a",{href:"#the-file-object"},"file objects",-1),Ys=e(". If no items are available, data will be an empty array."),Ms={class:"right"},zs=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),Gs=s("pre",null,[s("code",null,`GET /files
49
- SEARCH /files
50
- `)],-1),Ns=e("Learn more about SEARCH ->"),Zs=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),e(" GraphQL")],-1),Hs=s("pre",null,[s("code",null,`POST /graphql/system
51
- `)],-1),Ws=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
52
- files: [directus_files]
53
- }
54
- `)])],-1),Ks=s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),e(" Example")],-1),Js=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
55
- files {
56
- id
57
- filename_disk
58
- }
59
- }
60
- `)])],-1),Vs=s("hr",null,null,-1),$s=s("h2",{id:"retrieve-a-file",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-file"},"#"),e(" Retrieve a File")],-1),se=s("p",null,"Retrieve a single file by primary key.",-1),ee={class:"two-up"},ae={class:"left"},te=s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),e(" Query Parameters")],-1),le=e("Supports all "),ne=e("global query parameters"),ie=e("."),oe=s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),e(" Returns")],-1),re=s("p",null,[e("Returns a "),s("a",{href:"#the-file-object"},"file object"),e(" if a valid primary key was provided.")],-1),ce=s("div",{class:"right"},[s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`GET /files/:id
61
- `)]),s("h5",{id:"example-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-2"},"#"),e(" Example")]),s("pre",null,[s("code",null,`GET /files/0fca80c4-d61c-4404-9fd7-6ba86b64154d
62
- `)]),s("h3",{id:"graphql-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-1"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
63
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
64
- files_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_files
65
- }
66
- `)])]),s("h5",{id:"example-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-3"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
67
- files_by_id(id: `),s("span",{class:"hljs-string"},'"0fca80c4-d61c-4404-9fd7-6ba86b64154d"'),e(`) {
68
- id
69
- filename_disk
70
- }
71
- }
72
- `)])])],-1),he=s("h2",{id:"upload-a-file",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#upload-a-file"},"#"),e(" Upload a File")],-1),de=s("p",null,"Upload/create a new file.",-1),ue={class:"two-up"},pe={class:"left"},fe=s("p",null,[e("To upload a file, use "),s("code",null,"multipart/form-data"),e(" as the encoding type, instead of JSON.")],-1),_e=s("p",null,[e("The file contents has to be provided in a part called "),s("code",null,"file"),e(". All other properties of "),s("a",{href:"#the-file-object"},"the file object"),e(" can be provided as parts as well.")],-1),me=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Order Matters"),s("p",null,[e("Make sure to define the non-file properties "),s("em",null,"first"),e(". This ensures that the file metadata is associated with the correct file.")])],-1),ge=s("p",null,"You can upload multiple files at a time by repeating the payload with different contents, for example:",-1),je=s("pre",null,[s("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),be=s("p",null,[e("In JavaScript, this can be achieved using the native "),s("code",null,"FormData"),e(" class:")],-1),ye=s("pre",null,[s("code",{class:"language-js"},[s("span",{class:"hljs-keyword"},"import"),e(" axios "),s("span",{class:"hljs-keyword"},"from"),e(),s("span",{class:"hljs-string"},"'axios'"),e(`;
92
-
93
- `),s("span",{class:"hljs-keyword"},"const"),e(" fileInput = "),s("span",{class:"hljs-variable language_"},"document"),e("."),s("span",{class:"hljs-title function_"},"querySelector"),e("("),s("span",{class:"hljs-string"},`'input[type="file"]'`),e(`);
94
- `),s("span",{class:"hljs-keyword"},"const"),e(" formData = "),s("span",{class:"hljs-keyword"},"new"),e(),s("span",{class:"hljs-title class_"},"FormData"),e(`();
95
-
96
- formData.`),s("span",{class:"hljs-title function_"},"append"),e("("),s("span",{class:"hljs-string"},"'title'"),e(", "),s("span",{class:"hljs-string"},"'My First File'"),e(`);
97
- formData.`),s("span",{class:"hljs-title function_"},"append"),e("("),s("span",{class:"hljs-string"},"'file'"),e(", fileInput."),s("span",{class:"hljs-property"},"files"),e("["),s("span",{class:"hljs-number"},"0"),e(`]);
98
-
99
- `),s("span",{class:"hljs-keyword"},"await"),e(" axios."),s("span",{class:"hljs-title function_"},"post"),e("("),s("span",{class:"hljs-string"},"'/files'"),e(`, formData);
100
- `)])],-1),xe=s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),e(" Query Parameters")],-1),ve=e("Supports all "),we=e("global query parameters"),qe=e("."),Te=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),e(" Returns")],-1),ke=s("p",null,[e("Returns the "),s("a",{href:"#the-file-object"},"file object"),e(" for the uploaded file, or an array of "),s("a",{href:"#the-file-object"},"file objects"),e(" if multiple files were uploaded at once.")],-1),Re=s("div",{class:"right"},[s("pre",null,[s("code",null,`POST /files
101
- `)]),s("pre",null,[s("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),Ee=s("hr",null,null,-1),Ae=s("h2",{id:"import-a-file",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#import-a-file"},"#"),e(" Import a File")],-1),De=s("p",null,"Import a file from the web",-1),Se={class:"two-up"},Fe={class:"left"},Pe=s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),e(" Query Parameters")],-1),Ce=e("Supports all "),Ie=e("global query parameters"),Oe=e("."),Qe=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),e(" Request Body")],-1),Ue=s("div",{class:"definitions"},[s("p",null,[s("code",null,"url"),e(),s("strong",null,"Required"),s("br"),e(" The URL to download the file from.")]),s("p",null,[s("code",null,"data"),s("br"),e(" Any of "),s("a",{href:"#the-file-object"},"the file object"),e("\u2019s properties.")])],-1),Be=s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),e(" Returns")],-1),Le=s("p",null,[e("Returns the "),s("a",{href:"#the-file-object"},"file object"),e(" for the imported file.")],-1),Xe=s("div",{class:"right"},[s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`POST /files/import
113
- `)]),s("h5",{id:"example-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-4"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /files/import"),e(`
114
-
115
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
116
- `),s("span",{class:"hljs-attr"},'"url"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"https://source.unsplash.com/random"'),s("span",{class:"hljs-punctuation"},","),e(`
117
- `),s("span",{class:"hljs-attr"},'"data"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"{"),e(`
118
- `),s("span",{class:"hljs-attr"},'"title"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Example"'),e(`
119
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
120
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
121
- `)])]),s("h3",{id:"graphql-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-2"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
122
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
123
- import_file(url:`),s("span",{class:"hljs-type"}," String"),e(`!, data: create_directus_files_input!): directus_files
124
- }
125
- `)])]),s("h5",{id:"example-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-5"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
126
- import_file(url: `),s("span",{class:"hljs-string"},'"https://source.unsplash.com/random"'),e(", data: { title: "),s("span",{class:"hljs-string"},'"Example"'),e(` }) {
127
- id
128
- }
129
- }
130
- `)])])],-1),Ye=s("hr",null,null,-1),Me=s("h2",{id:"update-a-file",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-a-file"},"#"),e(" Update a File")],-1),ze=s("p",null,"Update an existing file, and/or replace it\u2019s file contents.",-1),Ge={class:"two-up"},Ne={class:"left"},Ze=s("h3",{id:"query-parameters-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-4"},"#"),e(" Query Parameters")],-1),He=e("Supports all "),We=e("global query parameters"),Ke=e("."),Je=s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),e(" Request Body")],-1),Ve=s("p",null,[e("You can either submit a JSON object consisting of a partial "),s("a",{href:"#the-file-object"},"file object"),e(" to update the file meta, or send a multipart/form-data request to replace the file contents on disk. See "),s("a",{href:"#upload-a-file"},"Upload a File"),e(" for more information on the structure of this "),s("code",null,"multipart/form-data"),e(" request.")],-1),$e=s("h3",{id:"returns-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-4"},"#"),e(" Returns")],-1),sa=s("p",null,[e("Returns the "),s("a",{href:"#the-file-object"},"file object"),e(" for the updated file.")],-1),ea=s("div",{class:"right"},[s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`PATCH /files/:id
131
- `)]),s("h5",{id:"example-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-6"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /files/0fca80c4-d61c-4404-9fd7-6ba86b64154d"),e(`
132
-
133
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
134
- `),s("span",{class:"hljs-attr"},'"title"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Example"'),e(`
135
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
136
- `)])]),s("h3",{id:"graphql-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-3"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
137
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
138
- update_files_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!, data: update_directus_files_input!): directus_files
139
- }
140
- `)])]),s("h5",{id:"example-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-7"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
141
- update_files_item(id: `),s("span",{class:"hljs-string"},'"0fca80c4-d61c-4404-9fd7-6ba86b64154d"'),e(", data: { title: "),s("span",{class:"hljs-string"},'"Example"'),e(` }) {
142
- id
143
- title
144
- }
145
- }
146
- `)])])],-1),aa=s("hr",null,null,-1),ta=s("h2",{id:"update-multiple-files",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-multiple-files"},"#"),e(" Update Multiple Files")],-1),la=s("p",null,"Update multiple files at the same time.",-1),na={class:"two-up"},ia={class:"left"},oa=s("h3",{id:"query-parameters-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-5"},"#"),e(" Query Parameters")],-1),ra=e("Supports all "),ca=e("global query parameters"),ha=e("."),da=s("h3",{id:"request-body-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-2"},"#"),e(" Request Body")],-1),ua=s("div",{class:"definitions"},[s("p",null,[s("code",null,"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the files you\u2019d like to update.")]),s("p",null,[s("code",null,"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-file-object"},"the file object"),e("\u2019s properties.")])],-1),pa=s("h3",{id:"returns-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-5"},"#"),e(" Returns")],-1),fa=s("p",null,[e("Returns the "),s("a",{href:"#the-file-object"},"file objects"),e(" for the updated files.")],-1),_a=s("div",{class:"right"},[s("h3",{id:"rest-api-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-4"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`PATCH /files
147
- `)]),s("h5",{id:"example-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-8"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /files"),e(`
148
-
149
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
150
- `),s("span",{class:"hljs-attr"},'"keys"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),s("span",{class:"hljs-punctuation"},"]"),s("span",{class:"hljs-punctuation"},","),e(`
151
- `),s("span",{class:"hljs-attr"},'"data"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"{"),e(`
152
- `),s("span",{class:"hljs-attr"},'"tags"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"cities"'),s("span",{class:"hljs-punctuation"},"]"),e(`
153
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
154
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
155
- `)])]),s("h3",{id:"graphql-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-4"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
156
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
157
- update_files_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!, data: update_directus_files!): [directus_files]
158
- }
159
- `)])]),s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
160
- update_files_items(
161
- ids: [`),s("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),e(", "),s("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),e(`]
162
- data: { tags: [`),s("span",{class:"hljs-string"},'"cities"'),e(`] }
163
- )
164
- }
165
- `)])])],-1),ma=s("hr",null,null,-1),ga=s("h2",{id:"delete-a-file",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-a-file"},"#"),e(" Delete a File")],-1),ja=s("p",null,"Delete an existing file.",-1),ba={class:"two-up"},ya={class:"left"},xa=s("div",{class:"danger hint"},[s("div",{class:"hint-title"},"Destructive"),s("p",null,"This will also delete the file from disk.")],-1),va=s("h3",{id:"query-parameters-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-6"},"#"),e(" Query Parameters")],-1),wa=e("Supports all "),qa=e("global query parameters"),Ta=e("."),ka=s("h3",{id:"returns-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-6"},"#"),e(" Returns")],-1),Ra=s("p",null,"Empty response.",-1),Ea=s("div",{class:"right"},[s("h3",{id:"rest-api-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-5"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`DELETE /files/:id
166
- `)]),s("h5",{id:"example-10",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-10"},"#"),e(" Example")]),s("pre",null,[s("code",null,`DELETE /files/0fca80c4-d61c-4404-9fd7-6ba86b64154d
167
- `)]),s("h3",{id:"graphql-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-5"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
168
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
169
- delete_files_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): delete_one
170
- }
171
- `)])]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
172
- delete_files_item(id: `),s("span",{class:"hljs-string"},'"0fca80c4-d61c-4404-9fd7-6ba86b64154d"'),e(`) {
173
- id
174
- }
175
- }
176
- `)])])],-1),Aa=s("hr",null,null,-1),Da=s("h2",{id:"delete-multiple-files",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-multiple-files"},"#"),e(" Delete Multiple Files")],-1),Sa=s("p",null,"Delete multiple files at once.",-1),Fa=s("div",{class:"two-up"},[s("div",{class:"left"},[s("div",{class:"danger hint"},[s("div",{class:"hint-title"},"Destructive"),s("p",null,"This will also delete the files from disk.")]),s("h3",{id:"request-body-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-3"},"#"),e(" Request Body")]),s("p",null,"Array of file primary keys"),s("h3",{id:"returns-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-7"},"#"),e(" Returns")]),s("p",null,"Empty response.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-6"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`DELETE /files
177
- `)]),s("h5",{id:"example-11",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-11"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// DELETE /files"),e(`
178
-
179
- `),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),s("span",{class:"hljs-punctuation"},"]"),e(`
180
- `)])]),s("h3",{id:"graphql-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-6"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
181
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
182
- delete_files_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!): delete_many
183
- }
184
- `)])]),s("h5",{id:"example-12",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-12"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
185
- delete_files_items(ids: [`),s("span",{class:"hljs-string"},'"d17c10aa-0bad-4864-9296-84f522c753e5"'),e(", "),s("span",{class:"hljs-string"},'"b6123925-2fc0-4a30-9d86-863eafc0a6e7"'),e(`]) {
186
- ids
187
- }
188
- }
189
- `)])])])],-1),Qa="Accessing Files",Ua=!1,Ba="page-reference",La={name:"files",setup(Pa,{expose:o}){const n={title:"Accessing Files",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:n}),(Ca,Ia)=>{const t=i("router-link"),r=i("docs-wrapper");return c(),h(r,{frontmatter:n},{default:a(()=>[s("div",d,[u,p,f,_,m,g,j,b,y,s("div",x,[s("div",v,[w,q,s("ul",null,[s("li",null,[T,k,R,E,l(t,{to:"/docs/configuration/project-settings/#files-thumbnails"},{default:a(()=>[A]),_:1}),D])]),S,F,P,C,I,O,Q,U]),B]),L,X,s("div",Y,[s("div",M,[s("div",z,[G,N,Z,H,W,K,s("p",null,[J,V,$,ss,es,l(t,{to:"/docs/reference/system/folders/"},{default:a(()=>[as]),_:1}),ts]),s("p",null,[ls,ns,is,os,rs,l(t,{to:"/docs/reference/system/users/"},{default:a(()=>[cs]),_:1}),hs]),ds,s("p",null,[us,ps,fs,_s,ms,l(t,{to:"/docs/reference/system/users/"},{default:a(()=>[gs]),_:1}),js]),bs,ys,xs,vs,ws,qs,Ts,ks])]),Rs]),Es,As,Ds,s("div",Ss,[s("div",Fs,[Ps,s("p",null,[Cs,l(t,{to:"/docs/reference/query"},{default:a(()=>[Is]),_:1}),Os]),Qs,s("p",null,[Us,l(t,{to:"/docs/reference/query/#limit"},{default:a(()=>[Bs]),_:1}),Ls,Xs,Ys])]),s("div",Ms,[zs,Gs,s("p",null,[l(t,{to:"/docs/reference/introduction/#search-http-method"},{default:a(()=>[Ns]),_:1})]),Zs,Hs,Ws,Ks,Js])]),Vs,$s,se,s("div",ee,[s("div",ae,[te,s("p",null,[le,l(t,{to:"/docs/reference/query"},{default:a(()=>[ne]),_:1}),ie]),oe,re]),ce]),he,de,s("div",ue,[s("div",pe,[fe,_e,me,ge,je,be,ye,xe,s("p",null,[ve,l(t,{to:"/docs/reference/query"},{default:a(()=>[we]),_:1}),qe]),Te,ke]),Re]),Ee,Ae,De,s("div",Se,[s("div",Fe,[Pe,s("p",null,[Ce,l(t,{to:"/docs/reference/query"},{default:a(()=>[Ie]),_:1}),Oe]),Qe,Ue,Be,Le]),Xe]),Ye,Me,ze,s("div",Ge,[s("div",Ne,[Ze,s("p",null,[He,l(t,{to:"/docs/reference/query"},{default:a(()=>[We]),_:1}),Ke]),Je,Ve,$e,sa]),ea]),aa,ta,la,s("div",na,[s("div",ia,[oa,s("p",null,[ra,l(t,{to:"/docs/reference/query"},{default:a(()=>[ca]),_:1}),ha]),da,ua,pa,fa]),_a]),ma,ga,ja,s("div",ba,[s("div",ya,[xa,va,s("p",null,[wa,l(t,{to:"/docs/reference/query"},{default:a(()=>[qa]),_:1}),Ta]),ka,Ra]),Ea]),Aa,Da,Sa,Fa])]),_:1})}}};export{La as default,Ua as modularExtension,Ba as pageClass,Qa as title};
@@ -1 +0,0 @@
1
- import{a as n,o as d,b as c,w as o,g as e,e as i,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const u={class:"markdown-body"},h=e("blockquote",null,[e("p",null,"Filters allow you to conditionally select Items from a Collection. Use-cases include customizing Item search results, restricting Item access permissions for specific Users or Roles, building dashboard analytics with the Insights module, and more.")],-1),_=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/filters/filters-20220303A/filters-20220303A.webp",alt:"Filters"})],-1),p=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:"#and%2For-groups"}," AND/OR Groups")]),e("li",null,[e("a",{href:"#dynamic-variables"}," Dynamic Variables")]),e("li",null,[e("a",{href:"#filtering-by-related-collections"}," Filtering by Related Collections")]),e("li",null,[e("a",{href:"#unfilterable-fields"}," Unfilterable Fields")]),e("li",null,[e("a",{href:"#extensibility-options"}," Extensibility Options")]),e("li",null,[e("a",{href:"#more-help"}," More Help")])])])],-1),f={class:"warning hint"},m=e("div",{class:"hint-title"},"There Are Two Filters Documents",-1),b=t("This page is a non-technical guide to using Filters. For more technical info, see "),y=t("Filter-Rules"),g=t("."),w=e("h2",{id:"how-it-works",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#how-it-works"},"#"),t(" How it Works")],-1),F={class:"tip hint"},v=e("div",{class:"hint-title"},"Assumed Knowledge",-1),A=t("Filters are intuitive to use, but get quite nuanced as complexity increases. In order to use Filters effectively, you will need to understand the Field "),k=t("(aka "),C=t("data model"),x=t(")"),O=t(" being filtered as well as any relevant "),R=t("Users, Roles and Permissions"),D=t("."),N=t("A basic filter is composed of 3 parts: A "),G=e("strong",null,"Field",-1),I=t(" from the Collection being Filtered, a logical "),V=t("Operator"),E=t(", and some specified "),H=e("strong",null,"Value",-1),T=t(" to filter for within each Item\u2019s Field."),U=e("video",{autoplay:"",muted:"",loop:"",controls:"",title:"How Filters Work"},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/filters/filters-20220303A/how-filters-work-20220303A.mp4",type:"video/mp4"})],-1),W=e("ol",{start:"2"},[e("li",null,[t("Click "),e("span",{mi:"",icon:""},"filter_list"),t(" or "),e("strong",null,"\u201CAdd Filter\u201D"),t(".")]),e("li",null,"Select the Field to filter by."),e("li",null,"Select the Operator as desired."),e("li",null,"Define the Value to filter for.")],-1),S=e("p",null,[t("From here, you can set multiple Filters at once, filter by "),e("a",{href:"#filtering-by-related-collections"},"Fields in related Collections"),t(", set Values with "),e("a",{href:"#dynamic-variables"},"Dynamic Variables"),t(", as well as apply "),e("a",{href:"#and-or-groups"},"AND/OR Groups"),t(".")],-1),B={class:"tip hint"},$=e("div",{class:"hint-title"},"Operators",-1),j=t("The Field type will determine the kinds of Operators that can be used on it. In fact, some Fields cannot be filtered at all (read more in "),P=e("a",{href:"#unfilterable-fields"},"Unfilterable Fields",-1),q=t("). Once a Field is selected, the permitted operators will automatically display. An exhaustive list of Operators and what they do can be found in the more technical "),L=t("Filter Rules"),M=t(" document."),Y=e("h2",{id:"and%2For-groups",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#and%2For-groups"},"#"),t(" AND/OR Groups")],-1),z=e("p",null,[e("code",null,"AND"),t(" Groups give the option to filter for Items that meet "),e("em",null,"all of several criteria"),t(". On the other hand, "),e("code",null,"OR"),t(" Groups filter for Items that meet "),e("em",null,"any one of several criteria"),t(".")],-1),K=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/filters/filters-20220303A/and-or-groups-20220303A.webp",alt:"AND/OR Groups"})],-1),J=e("ol",null,[e("li",null,"Click \u201CAdd Filter\u201D."),e("li",null,"Click \u201CAnd/OR Group\u201D at the very top of the dropdown menu."),e("li",null,[t("Click the AND/OR text to toggle: "),e("ul",null,[e("li",null,[e("code",null,"AND"),t(" \u2013 Selects Items that meet every single criteria.")]),e("li",null,[e("code",null,"OR"),t(" \u2013 Selects Items that meet one of several criteria.")])])]),e("li",null,"Click \u201CAdd Filter\u201D again."),e("li",null,"Configure the Field, Operator, and Value as desired."),e("li",null,[t("Click and hold "),e("span",{mi:"",icon:""},"drag_indicator"),t(" to drag a Filter and nest it under an AND/OR Group.")])],-1),Q=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Why do we need AND Groups?"),e("p",null,[t("Filters actually default to "),e("code",null,"AND"),t(" Group behavior automatically. However, when Filters are nested inside of an OR Group, they of course switch to "),e("code",null,"OR"),t(" Group behavior. So an AND Group is necessary in cases where you want to meet multiple conditions inside of OR Groups.")])],-1),X=e("h2",{id:"dynamic-variables",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#dynamic-variables"},"#"),t(" Dynamic Variables")],-1),Z=e("p",null,"The following video shows how to filter for Blog posts written within the past 60 days.",-1),ee=e("video",{autoplay:"",muted:"",loop:"",controls:"",title:"How Filters Work"},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/filters/filters-20220303A/dynamic-variables-20220307A.mp4",type:"video/mp4"})],-1),te=t("The following Dynamic Variables are built into Directus to make Filtering easier: "),oe=e("code",null,"$CURRENT_USER",-1),le=t(", "),ie=e("code",null,"$CURRENT_ROLE",-1),se=t(", "),ne=e("code",null,"$NOW",-1),re=t(" and "),ae=e("code",null,"$NOW(<adjustment>)",-1),de=t(". For more information, please see the Dynamic Variables section in "),ce=t("Filter Rules"),ue=t("."),he=e("h2",{id:"filtering-by-related-collections",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#filtering-by-related-collections"},"#"),t(" Filtering by Related Collections")],-1),_e=e("p",null,[t("You may need to run filters on one Collection "),e("em",null,"based on information in another related Collection"),t(". Here are a few examples of when that might happen:")],-1),pe=e("ul",null,[e("li",null,[t("Book authors that also wrote screenplays (filters "),e("code",null,"authors"),t(", uses "),e("code",null,"screenplays"),t(").")]),e("li",null,[t("Products with a 5 star customer review (filters "),e("code",null,"products"),t(", uses "),e("code",null,"reviews"),t(").")]),e("li",null,[t("Accounts with active user login within the last 12 months (filters "),e("code",null,"accounts"),t(", uses "),e("code",null,"logins"),t(").")])],-1),fe=e("p",null,[t("This can span across any number of relationally linked Collections. For example, you could filter for customers that bought rock songs, where the "),e("code",null,"customers"),t(" and "),e("code",null,"genres"),t(" Collections are linked by "),e("code",null,"customers"),t(" -> "),e("code",null,"invoices"),t(" -> "),e("code",null,"invoice-items"),t(" -> "),e("code",null,"tracks"),t(" -> "),e("code",null,"genres"),t(".")],-1),me=t("You will notice a "),be=e("span",{mi:"",icon:""},"chevron_right",-1),ye=t(" icon beside relational Fields. When you click on any "),ge=t("Alias"),we=t(" Field, all the Fields for that associated Collection pop down. If you select one of these Fields, you can run Filters on the current Collection by Field values in a related Collection."),Fe=e("p",null,"Here are step-by-step instructions on how to filter by Fields in other Collections:",-1),ve=e("video",{autoplay:"",muted:"",loop:"",controls:"",title:"How Filters Work"},[e("source",{src:"https://cdn.directus.io/docs/v9/app-guide/filters/filters-20220303A/filtering-by-related-collections-20220303A.mp4",type:"video/mp4"})],-1),Ae=e("ol",null,[e("li",null,"Click \u201CAdd Filter\u201D."),e("li",null,"Click the desired relational Field. This will pop down and display the related Collection Fields."),e("li",null,"Select a Field from this related Collection."),e("li",null,"Set the Operator and Value as desired.")],-1),ke=e("h2",{id:"unfilterable-fields",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#unfilterable-fields"},"#"),t(" Unfilterable Fields")],-1),Ce=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/app-guide/filters/filters-20220303A/unfilterable-fields-20220303A.webp",alt:"Unfilterable Fields"})],-1),xe=e("p",null,[t("Not all Fields can be filtered. As seen above in "),e("a",{href:"#filtering-by-related-collections"},"Filtering by Related Collections"),t(", Alias Fields cannot be filtered; they instead provide a dropdown menu to access Fields from a related Collection. Additionally, the \u201CPresentation\u201D and \u201CGroup\u201D Fields cannot be filtered at all and will not appear as an option in Filters.")],-1),Oe=e("h2",{id:"extensibility-options",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#extensibility-options"},"#"),t(" Extensibility Options")],-1),Re=e("p",null,"Directus Core is completely open-source, modular and extensible. Extensions allow you to expand or modify any part of Directus to fit your needs. Here are some great resources to get started down that track.",-1),De=t("Extensions > Introduction"),Ne=t("Extensions > Creating Extensions"),Ge=t("Contributing > Introduction"),Ie=t("Contributing > Codebase Overview"),Ve=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Accelerated Development"),e("p",null,[t("Working on an enterprise project and looking to outsource or financially sponsor the development of a Shares extension? Contact "),e("a",{href:"https://directus.io/contact/",target:"_blank",rel:"noopener noreferrer"},"our team")])],-1),Ee=e("h2",{id:"more-help",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#more-help"},"#"),t(" More Help")],-1),He=e("p",null,[t("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),Be="Filters",$e=!1,je={name:"filters",setup(Te,{expose:r}){const s={title:"Filters",modularExtension:!1};return r({frontmatter:s}),(Ue,We)=>{const l=n("router-link"),a=n("docs-wrapper");return d(),c(a,{frontmatter:s},{default:o(()=>[e("div",u,[h,_,p,e("div",f,[m,e("p",null,[b,i(l,{to:"/docs/reference/filter-rules/"},{default:o(()=>[y]),_:1}),g])]),w,e("div",F,[v,e("p",null,[A,e("em",null,[k,i(l,{to:"/docs/configuration/data-model/"},{default:o(()=>[C]),_:1}),x]),O,i(l,{to:"/docs/configuration/users-roles-permissions.md"},{default:o(()=>[R]),_:1}),D])]),e("p",null,[N,G,I,i(l,{to:"/docs/reference/filter-rules/#filter-operators"},{default:o(()=>[V]),_:1}),E,H,T]),U,W,S,e("div",B,[$,e("p",null,[j,P,q,i(l,{to:"/docs/reference/filter-rules/#filter-operators"},{default:o(()=>[L]),_:1}),M])]),Y,z,K,J,Q,X,Z,ee,e("p",null,[te,oe,le,ie,se,ne,re,ae,de,i(l,{to:"/docs/reference/filter-rules/"},{default:o(()=>[ce]),_:1}),ue]),he,_e,pe,fe,e("p",null,[me,be,ye,i(l,{to:"/docs/getting-started/glossary/#alias"},{default:o(()=>[ge]),_:1}),we]),Fe,ve,Ae,ke,Ce,xe,Oe,Re,e("ul",null,[e("li",null,[i(l,{to:"/docs/extensions/introduction/"},{default:o(()=>[De]),_:1})]),e("li",null,[i(l,{to:"/docs/extensions/creating-extensions/"},{default:o(()=>[Ne]),_:1})]),e("li",null,[i(l,{to:"/docs/contributing/introduction/"},{default:o(()=>[Ge]),_:1})]),e("li",null,[i(l,{to:"/docs/contributing/codebase-overview/"},{default:o(()=>[Ie]),_:1})])]),Ve,Ee,He])]),_:1})}}};export{je as default,$e as modularExtension,Be as title};
@@ -1,172 +0,0 @@
1
- import{a as o,o as h,b as i,w as a,g as s,e as l,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},p=s("div",{class:"two-up"},[s("div",{class:"left"},[s("blockquote",null,[s("p",null,"Flows enable custom, event-driven data processing and task automation within Directus.")])]),s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-flow-object"}," The Flow Object")]),s("li",null,[s("a",{href:"#list-flows"}," List Flows")]),s("li",null,[s("a",{href:"#retrieve-a-flow"}," Retrieve a flow")]),s("li",null,[s("a",{href:"#create-a-flow"}," Create a Flow")]),s("li",null,[s("a",{href:"#create-multiple-flows"}," Create Multiple Flows")]),s("li",null,[s("a",{href:"#update-a-flow"}," Update a Flow")]),s("li",null,[s("a",{href:"#update-multiple-flows"}," Update Multiple Flows")]),s("li",null,[s("a",{href:"#delete-a-flow"}," Delete a Flow")]),s("li",null,[s("a",{href:"#delete-multiple-flows"}," Delete Multiple Flows")]),s("li",null,[s("a",{href:"#flow-with-get-webhook-trigger"}," Flow with GET webhook trigger")]),s("li",null,[s("a",{href:"#flow-with-post-webhook-trigger"}," Flow with POST webhook trigger")])])])])])],-1),u=s("hr",null,null,-1),f=s("h2",{id:"the-flow-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-flow-object"},"#"),e(" The Flow Object")],-1),_={class:"two-up"},g={class:"left"},w={class:"definitions"},j=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the flow.")],-1),b=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name for the flow.")],-1),m=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon displayed in the Admin App for the flow.")],-1),y=s("p",null,[s("code",null,"color"),e(),s("strong",null,"string"),s("br"),e(" Color of the icon displayed in the Admin App for the flow.")],-1),x=s("p",null,[s("code",null,"note"),e(),s("strong",null,"text"),s("br"),e(" Short description displayed in the Admin App.")],-1),q=s("p",null,[s("code",null,"status"),e(),s("strong",null,"string"),s("br"),e(" Current status of the flow. One of "),s("code",null,"active"),e(", "),s("code",null,"inactive"),e(". Defaults to "),s("code",null,"active"),e(" when not specified.")],-1),v=s("p",null,[s("code",null,"trigger"),e(),s("strong",null,"string"),s("br"),e(" Type of trigger for the flow. One of "),s("code",null,"hook"),e(", "),s("code",null,"webhook"),e(", "),s("code",null,"operation"),e(", "),s("code",null,"schedule"),e(", "),s("code",null,"manual"),e(".")],-1),E=s("p",null,[s("code",null,"options"),e(),s("strong",null,"json"),s("br"),e(" Options of the selected trigger for the flow.")],-1),T=s("p",null,[s("code",null,"accountability"),e(),s("strong",null,"string"),s("br"),e(" The permission used during the flow. One of "),s("code",null,"$public"),e(", "),s("code",null,"$trigger"),e(", "),s("code",null,"$full"),e(", or UUID of a role.")],-1),k=s("p",null,[s("code",null,"date_created"),e(),s("strong",null,"timestamp"),s("br"),e(" Timestamp in ISO8601 when the flow was created.")],-1),P=s("code",null,"user_created",-1),S=e(),R=s("strong",null,"many-to-one",-1),F=s("br",null,null,-1),A=e(" The user who created the flow. Many-to-one to "),O=e("users"),D=e("."),I=s("p",null,[s("code",null,"operation"),e(),s("strong",null,"string"),s("br"),e(" UUID of the operation connected to the trigger in the flow.")],-1),M=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
2
- `),s("span",{class:"hljs-attr"},'"id"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"2fab3b9d-0543-4b87-8a30-3c5ee66fedf1"'),s("span",{class:"hljs-punctuation"},","),e(`
3
- `),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
4
- `),s("span",{class:"hljs-attr"},'"icon"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"bolt"'),s("span",{class:"hljs-punctuation"},","),e(`
5
- `),s("span",{class:"hljs-attr"},'"color"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"#112233"'),s("span",{class:"hljs-punctuation"},","),e(`
6
- `),s("span",{class:"hljs-attr"},'"note"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Note for my flow"'),s("span",{class:"hljs-punctuation"},","),e(`
7
- `),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
8
- `),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"manual"'),s("span",{class:"hljs-punctuation"},","),e(`
9
- `),s("span",{class:"hljs-attr"},'"accountability"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"$trigger"'),s("span",{class:"hljs-punctuation"},","),e(`
10
- `),s("span",{class:"hljs-attr"},'"date_created"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"2022-05-11T13:14:52Z"'),s("span",{class:"hljs-punctuation"},","),e(`
11
- `),s("span",{class:"hljs-attr"},'"user_created"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"12e62fd0-29c7-4fd3-b3d3-c7a39933e8af"'),s("span",{class:"hljs-punctuation"},","),e(`
12
- `),s("span",{class:"hljs-attr"},'"operation"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"92e82998-e421-412f-a513-13701e83e4ce"'),e(`
13
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
14
- `)])])],-1),C=s("hr",null,null,-1),L=s("h2",{id:"list-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-flows"},"#"),e(" List Flows")],-1),G=s("p",null,"List all flows that exist in Directus.",-1),Q={class:"two-up"},U={class:"left"},B=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),H=e("Supports all "),N=e("global query parameters"),$=e("."),V=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),Z=e("An array of up to "),z=e("limit"),J=e(),K=s("a",{href:"#the-flow-object"},"flow objects",-1),W=e(". If no items are available, data will be an empty array."),X={class:"right"},Y=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),ss=s("pre",null,[s("code",null,`GET /flows
15
- SEARCH /flows
16
- `)],-1),es=e("Learn more about SEARCH ->"),as=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),e(" GraphQL")],-1),ts=s("pre",null,[s("code",null,`POST /graphql/system
17
- `)],-1),ls=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
18
- flows: [directus_flows]
19
- }
20
- `)])],-1),ns=s("h5",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),e(" Example")],-1),os=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
21
- flows {
22
- id
23
- name
24
- status
25
- }
26
- }
27
- `)])],-1),rs=s("hr",null,null,-1),cs=s("h2",{id:"retrieve-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-flow"},"#"),e(" Retrieve a flow")],-1),hs=s("p",null,"List an existing flow by primary key.",-1),is={class:"two-up"},ds={class:"left"},ps=s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),e(" Query Parameters")],-1),us=e("Supports all "),fs=e("global query parameters"),_s=e("."),gs=s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),e(" Returns")],-1),ws=s("p",null,[e("Returns the requested "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),js=s("div",{class:"right"},[s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`GET /flows/:id
28
- `)]),s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),e(" Example")]),s("pre",null,[s("code",null,`GET /flows/2fc325fb-299b-4d20-a9e7-a34349dee8b2
29
- `)]),s("h3",{id:"graphql-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-1"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
30
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
31
- flows_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_flows
32
- }
33
- `)])]),s("h5",{id:"example-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-2"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
34
- flows_by_id(id: `),s("span",{class:"hljs-string"},'"2fc325fb-299b-4d20-a9e7-a34349dee8b2"'),e(`) {
35
- id
36
- name
37
- status
38
- }
39
- }
40
- `)])])],-1),bs=s("hr",null,null,-1),ms=s("h2",{id:"create-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-a-flow"},"#"),e(" Create a Flow")],-1),ys=s("p",null,"Create a new flow.",-1),xs={class:"two-up"},qs={class:"left"},vs=s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),e(" Query Parameters")],-1),Es=e("Supports all "),Ts=e("global query parameters"),ks=e("."),Ps=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),e(" Request Body")],-1),Ss=s("p",null,[e("A partial "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),Rs=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),e(" Returns")],-1),Fs=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the created flow.")],-1),As=s("div",{class:"right"},[s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`POST /flows
41
- `)]),s("h5",{id:"example-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-3"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /flows"),e(`
42
-
43
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
44
- `),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
45
- `),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
46
- `),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"manual"'),e(`
47
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
48
- `)])]),s("h3",{id:"graphql-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-2"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
49
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
50
- create_flows_item(data: create_directus_flows_input!): directus_flows
51
- }
52
- `)])]),s("h5",{id:"example-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-4"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
53
- create_flows_item(data: { name: `),s("span",{class:"hljs-string"},'"My Flow"'),e(", status: "),s("span",{class:"hljs-string"},'"active"'),e(", trigger: "),s("span",{class:"hljs-string"},'"manual"'),e(` }) {
54
- id
55
- name
56
- status
57
- }
58
- }
59
- `)])])],-1),Os=s("hr",null,null,-1),Ds=s("h2",{id:"create-multiple-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-multiple-flows"},"#"),e(" Create Multiple Flows")],-1),Is=s("p",null,"Create multiple new flows.",-1),Ms={class:"two-up"},Cs={class:"left"},Ls=s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),e(" Query Parameters")],-1),Gs=e("Supports all "),Qs=e("global query parameters"),Us=e("."),Bs=s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),e(" Request Body")],-1),Hs=s("p",null,[e("An array of partial "),s("a",{href:"#the-flow-object"},"flow objects"),e(".")],-1),Ns=s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),e(" Returns")],-1),$s=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the created flow.")],-1),Vs=s("div",{class:"right"},[s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`POST /flows
60
- `)]),s("h5",{id:"example-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-5"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /flows"),e(`
61
-
62
- `),s("span",{class:"hljs-punctuation"},"["),e(`
63
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
64
- `),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
65
- `),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
66
- `),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"manual"'),e(`
67
- `),s("span",{class:"hljs-punctuation"},"}"),s("span",{class:"hljs-punctuation"},","),e(`
68
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
69
- `),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Another Flow"'),s("span",{class:"hljs-punctuation"},","),e(`
70
- `),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"active"'),s("span",{class:"hljs-punctuation"},","),e(`
71
- `),s("span",{class:"hljs-attr"},'"trigger"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"webhook"'),e(`
72
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
73
- `),s("span",{class:"hljs-punctuation"},"]"),e(`
74
- `)])]),s("h3",{id:"graphql-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-3"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
75
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
76
- create_flows_items(data: [create_directus_flows_input!]!): [directus_flows]
77
- }
78
- `)])]),s("h5",{id:"example-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-6"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
79
- create_flows_items(
80
- data: [
81
- {
82
- `),s("span",{class:"hljs-string"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"My Flow"'),e(`,
83
- `),s("span",{class:"hljs-string"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
84
- `),s("span",{class:"hljs-string"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"manual"'),e(`
85
- },
86
- {
87
- `),s("span",{class:"hljs-string"},'"name"'),e(": "),s("span",{class:"hljs-string"},'"Another Flow"'),e(`,
88
- `),s("span",{class:"hljs-string"},'"status"'),e(": "),s("span",{class:"hljs-string"},'"active"'),e(`,
89
- `),s("span",{class:"hljs-string"},'"trigger"'),e(": "),s("span",{class:"hljs-string"},'"webhook"'),e(`
90
- }
91
- ]
92
- ) {
93
- id
94
- name
95
- status
96
- }
97
- }
98
- `)])])],-1),Zs=s("hr",null,null,-1),zs=s("h2",{id:"update-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-a-flow"},"#"),e(" Update a Flow")],-1),Js=s("p",null,"Update an existing flow.",-1),Ks={class:"two-up"},Ws={class:"left"},Xs=s("h3",{id:"query-parameters-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-4"},"#"),e(" Query Parameters")],-1),Ys=e("Supports all "),se=e("global query parameters"),ee=e("."),ae=s("h3",{id:"request-body-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-2"},"#"),e(" Request Body")],-1),te=s("p",null,[e("A partial "),s("a",{href:"#the-flow-object"},"flow object"),e(".")],-1),le=s("h3",{id:"returns-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-4"},"#"),e(" Returns")],-1),ne=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow object"),e(" for the updated flow.")],-1),oe=s("div",{class:"right"},[s("h3",{id:"rest-api-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-4"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`PATCH /flows/:id
99
- `)]),s("h5",{id:"example-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-7"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /flows/2fc325fb-299b-4d20-a9e7-a34349dee8b2"),e(`
100
-
101
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
102
- `),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"My Updated Flow"'),e(`
103
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
104
- `)])]),s("h3",{id:"graphql-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-4"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
105
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
106
- update_flows_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!, data: update_directus_flows_input): directus_flows
107
- }
108
- `)])]),s("h5",{id:"example-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-8"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
109
- update_flows_item(id: `),s("span",{class:"hljs-string"},'"2fc325fb-299b-4d20-a9e7-a34349dee8b2"'),e(", data: { name: "),s("span",{class:"hljs-string"},'"My Updated Flow"'),e(` }) {
110
- id
111
- name
112
- }
113
- }
114
- `)])])],-1),re=s("hr",null,null,-1),ce=s("h2",{id:"update-multiple-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-multiple-flows"},"#"),e(" Update Multiple Flows")],-1),he=s("p",null,"Update multiple existing flows.",-1),ie={class:"two-up"},de={class:"left"},pe=s("h3",{id:"query-parameters-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-5"},"#"),e(" Query Parameters")],-1),ue=e("Supports all "),fe=e("global query parameters"),_e=e("."),ge=s("h3",{id:"request-body-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-3"},"#"),e(" Request Body")],-1),we=s("div",{class:"definitions"},[s("p",null,[s("code",null,"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the flows you\u2019d like to update.")]),s("p",null,[s("code",null,"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-flow-object"},"the flow object"),e("\u2019s properties.")])],-1),je=s("h3",{id:"returns-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-5"},"#"),e(" Returns")],-1),be=s("p",null,[e("Returns the "),s("a",{href:"#the-flow-object"},"flow objects"),e(" for the updated flows.")],-1),me=s("div",{class:"right"},[s("h3",{id:"rest-api-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-5"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`PATCH /flows
115
- `)]),s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /flows"),e(`
116
-
117
- `),s("span",{class:"hljs-punctuation"},"{"),e(`
118
- `),s("span",{class:"hljs-attr"},'"keys"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"3f2facab-7f05-4ee8-a7a3-d8b9c634a1fc"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"7259bfa8-3786-45c6-8c08-cc688e7ba229"'),s("span",{class:"hljs-punctuation"},"]"),s("span",{class:"hljs-punctuation"},","),e(`
119
- `),s("span",{class:"hljs-attr"},'"data"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"{"),e(`
120
- `),s("span",{class:"hljs-attr"},'"status"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"inactive"'),e(`
121
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
122
- `),s("span",{class:"hljs-punctuation"},"}"),e(`
123
- `)])]),s("h3",{id:"graphql-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-5"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
124
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
125
- update_flows_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!, data: update_directus_flows_input): [directus_flows]
126
- }
127
- `)])]),s("h5",{id:"example-10",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-10"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
128
- update_flows_items(
129
- ids: [`),s("span",{class:"hljs-string"},'"3f2facab-7f05-4ee8-a7a3-d8b9c634a1fc"'),e(", "),s("span",{class:"hljs-string"},'"7259bfa8-3786-45c6-8c08-cc688e7ba229"'),e(`]
130
- data: { status: `),s("span",{class:"hljs-string"},'"inactive"'),e(` }
131
- ) {
132
- id
133
- name
134
- status
135
- }
136
- }
137
- `)])])],-1),ye=s("hr",null,null,-1),xe=s("h2",{id:"delete-a-flow",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-a-flow"},"#"),e(" Delete a Flow")],-1),qe=s("p",null,"Delete an existing flow.",-1),ve=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"returns-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-6"},"#"),e(" Returns")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-6"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`DELETE /flows/:id
138
- `)]),s("h5",{id:"example-11",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-11"},"#"),e(" Example")]),s("pre",null,[s("code",null,`DELETE /flows/12204ee2-2c82-4d9a-b044-2f4842a11dba
139
- `)]),s("h3",{id:"graphql-6",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-6"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
140
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
141
- delete_flows_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): delete_one
142
- }
143
- `)])]),s("h5",{id:"example-12",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-12"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
144
- delete_flows_item(id: `),s("span",{class:"hljs-string"},'"12204ee2-2c82-4d9a-b044-2f4842a11dba"'),e(`) {
145
- id
146
- }
147
- }
148
- `)])])])],-1),Ee=s("hr",null,null,-1),Te=s("h2",{id:"delete-multiple-flows",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-multiple-flows"},"#"),e(" Delete Multiple Flows")],-1),ke=s("p",null,"Delete multiple existing flows.",-1),Pe=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"request-body-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-4"},"#"),e(" Request Body")]),s("p",null,"An array of flows primary keys"),s("h3",{id:"returns-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-7"},"#"),e(" Returns")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-7"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`DELETE /flows
149
- `)]),s("h5",{id:"example-13",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-13"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// DELETE /flows"),e(`
150
- `),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"25821236-8c2a-4f89-8fdc-c7d01f35877d"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"02b9486e-4273-4fd5-b94b-e18fd923d1ed"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"7d62f1e9-a83f-407b-84f8-1c184f014501"'),s("span",{class:"hljs-punctuation"},"]"),e(`
151
- `)])]),s("h3",{id:"graphql-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-7"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
152
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
153
- delete_flows_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!): delete_many
154
- }
155
- `)])]),s("h5",{id:"example-14",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-14"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
156
- delete_flows_items(
157
- ids: [
158
- `),s("span",{class:"hljs-string"},'"25821236-8c2a-4f89-8fdc-c7d01f35877d"'),e(`
159
- `),s("span",{class:"hljs-string"},'"02b9486e-4273-4fd5-b94b-e18fd923d1ed"'),e(`
160
- `),s("span",{class:"hljs-string"},'"7d62f1e9-a83f-407b-84f8-1c184f014501"'),e(`
161
- ]
162
- ) {
163
- ids
164
- }
165
- }
166
- `)])])])],-1),Se=s("h2",{id:"flow-with-get-webhook-trigger",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#flow-with-get-webhook-trigger"},"#"),e(" Flow with GET webhook trigger")],-1),Re=s("p",null,"Start a flow with GET webhook trigger.",-1),Fe=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"returns-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-8"},"#"),e(" Returns")]),s("p",null,"Result of the flow, if any.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-8",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-8"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`GET /flows/trigger/:flow_uuid
167
- `)]),s("h5",{id:"example-15",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-15"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// GET /flows/trigger/202a940b-a00b-47df-b832-369c53f13122"),e(`
168
- `),s("span",{class:"hljs-comment"},"// Payload here"),e(`
169
- `)])])])],-1),Ae=s("h2",{id:"flow-with-post-webhook-trigger",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#flow-with-post-webhook-trigger"},"#"),e(" Flow with POST webhook trigger")],-1),Oe=s("p",null,"Start a flow with POST webhook trigger.",-1),De=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"request-body-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-5"},"#"),e(" Request Body")]),s("p",null,"Payload for the POST request."),s("h3",{id:"returns-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-9"},"#"),e(" Returns")]),s("p",null,"Result of the flow, if any.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-9"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`POST /flows/trigger/:flow_uuid
170
- `)]),s("h5",{id:"example-16",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-16"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /flows/trigger/202a940b-a00b-47df-b832-369c53f13122"),e(`
171
- `),s("span",{class:"hljs-comment"},"// Payload here"),e(`
172
- `)])])])],-1),Ge="Flows",Qe=!1,Ue="page-reference",Be={name:"flows",setup(Ie,{expose:r}){const n={title:"Flows",modularExtension:!1,pageClass:"page-reference"};return r({frontmatter:n}),(Me,Ce)=>{const t=o("router-link"),c=o("docs-wrapper");return h(),i(c,{frontmatter:n},{default:a(()=>[s("div",d,[p,u,f,s("div",_,[s("div",g,[s("div",w,[j,b,m,y,x,q,v,E,T,k,s("p",null,[P,S,R,F,A,l(t,{to:"/docs/reference/system/users/#the-users-object"},{default:a(()=>[O]),_:1}),D]),I])]),M]),C,L,G,s("div",Q,[s("div",U,[B,s("p",null,[H,l(t,{to:"/docs/reference/query"},{default:a(()=>[N]),_:1}),$]),V,s("p",null,[Z,l(t,{to:"/docs/reference/query/#limit"},{default:a(()=>[z]),_:1}),J,K,W])]),s("div",X,[Y,ss,s("p",null,[l(t,{to:"/docs/reference/introduction/#search-http-method"},{default:a(()=>[es]),_:1})]),as,ts,ls,ns,os])]),rs,cs,hs,s("div",is,[s("div",ds,[ps,s("p",null,[us,l(t,{to:"/docs/reference/query"},{default:a(()=>[fs]),_:1}),_s]),gs,ws]),js]),bs,ms,ys,s("div",xs,[s("div",qs,[vs,s("p",null,[Es,l(t,{to:"/docs/reference/query"},{default:a(()=>[Ts]),_:1}),ks]),Ps,Ss,Rs,Fs]),As]),Os,Ds,Is,s("div",Ms,[s("div",Cs,[Ls,s("p",null,[Gs,l(t,{to:"/docs/reference/query"},{default:a(()=>[Qs]),_:1}),Us]),Bs,Hs,Ns,$s]),Vs]),Zs,zs,Js,s("div",Ks,[s("div",Ws,[Xs,s("p",null,[Ys,l(t,{to:"/docs/reference/query"},{default:a(()=>[se]),_:1}),ee]),ae,te,le,ne]),oe]),re,ce,he,s("div",ie,[s("div",de,[pe,s("p",null,[ue,l(t,{to:"/docs/reference/query"},{default:a(()=>[fe]),_:1}),_e]),ge,we,je,be]),me]),ye,xe,qe,ve,Ee,Te,ke,Pe,Se,Re,Fe,Ae,Oe,De])]),_:1})}}};export{Be as default,Qe as modularExtension,Ue as pageClass,Ge as title};