# Overview
The layer directory api offers various approaches to organize your layer directory structure according to your needs. Here are a few common workflows to get you started.
# Layer Directory Workflows
# Assign or reassign a layer to a new or existing directory
- Upload file(s) to create layer. This layer is unassigned by default.
- Query the list of unassigned layers to identify the
layerId
of the layer that will be added to a directory. - If adding layer to an existing directory or reassigning a layer that is already assigned, you can query the existing directory structure to find the details of the details that you need.
- Finally, you can make a PUT request to the layer-directory endpoint
OR
make a POST request to add the layer to the root directory or a sub-directory.
# Unassign a layer from a directory
- Query the existing directories to find the
id
of the directory and to find the layerid
that will be unassigned. - Unassign the layer from the directory.
# Move layer into a different directory
- Repeat steps outlined in unassigning a layer.
- Repeat steps in either assigning a layer to a new directory or an existing directory.