This is an old revision of the document!


/api/metadata/property [POST]

Usage

Creates a new property, or returns the ID of an existing property if one already exists.

Details

DetailValue
GroupAsset
From Server Version0.9.0
PermissionAdmin
MethodsPOST
Parameters
ParameterNotesMeaning
nameString [Required]The name of the new relationship
typeString [Required]logical, physical or hierarchy
optionsString (None)Any options that apply to the new relationship
idInteger]The ID of the existing property (if updating)
formatString (xml)Either 'xml' or 'json'

Examples

Call
[POST] http://ardiserver.com/api/metadata/relation?name=Moves&dsname=Moves&usname=Moved+By&type=physical

The relationship being created is called 'Moves' and it's a physical relationship.

Success (XML)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<success>
   <message>Created</message>
   <id>23</id>
</success>
Success (JSON)
[{
	"message": ["Already Exists"],
	"id": ["31"]
}]

Other Versions