Utilities are the various helper endpoints located within the API.
Generate a Hash
Generate a hash for a given string.
String to hash.
Verify a Hash
Verify a string with a hash.
Hash you want to verify against.
Manually Sort Items in Collection
If a collection has a sort field, this util can be used to move items in that manual order.
Primary key of the item you're moving in the collection.
Primary key of the item you're moving the source item too.
Import Data from File
Import multiple records from a JSON or CSV file into a collection.
The import endpoint expects the file structure to match the export query parameter. For JSON, this is an array of objects, where every object is an item. For CSV, the first line has to be the columns header.
Send the file in a
multipart/form-data request. See Upload a File for more information.
Export Data to a File
Export a larger data set to a file in the File Library
Doesn't use any query parameters.
What file format to save the export to. One of
The query object to use for the export. Supports the global query parameters.
file File Object
Partial file object to tweak where / how the export file is saved.
Clear the Internal Cache
Resets both the data and schema cache of Directus. This endpoint is only available to admin users.