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
Section titled “Layer Directory Workflows”Assign or reassign a layer to a new or existing directory
Section titled “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
layerIdof 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
Section titled “Unassign a layer from a directory”- Query the existing directories to find the
idof the directory and to find the layeridthat will be unassigned. - Unassign the layer from the directory.
Move layer into a different directory
Section titled “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.