# 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

  1. Upload file(s) to create layer. This layer is unassigned by default.
  2. Query the list of unassigned layers to identify the layerId of the layer that will be added to a directory.
  3. 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.
  4. 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

  1. Query the existing directories to find the id of the directory and to find the layer id that will be unassigned.
  2. Unassign the layer from the directory.

# Move layer into a different directory

  1. Repeat steps outlined in unassigning a layer.
  2. Repeat steps in either assigning a layer to a new directory or an existing directory.
Last Updated: 02/05/2024