Skip to main content

directories/{id}/fields

Retrieves all of the fields of data that make up a directory record within the specified directory.

Arguments:

  • api_key (required)
  • id (required)

Example request:

http://[domain]/api/directories/1/fields.xml?api_key=[api_key]

Example response:

<?xml version="1.0" encoding="utf-8"?>
<fields directory_id="1">
<field id="1" name="Textbox" type="text" mandatory="0"/>
<field id="2" name="Textarea" type="textarea" mandatory="0"/>
<field id="3" name="Selectbox" type="select" mandatory="0"/>
<field id="4" name="Image" type="image" mandatory="0"/>
<field id="5" name="Radio buttons" type="radio" mandatory="0"/>
<field id="6" name="Location" type="map" mandatory="0"/>
</fields>