Try Gliffy for FREE
No signup required
BETA - Please note, that the Gliffy API is currently in BETA testing. There may be minor changes to the API that are likely to occur before the product leaves BETA.
A folder is used for organizing documents and for allocating user permissions on documents.
If you plan to offer Gliffy to multiple customers through your Account, you should create nested folders to restrict user access.
| HTTP METHOD | URL |
|---|---|
| GET or POST | $API_ROOT/accounts/$YOUR_ACCOUNT_ID/folders.xml?action=get |
| PARAMETER | REQUIRED | POSSIBLE VALUES | DESCRIPTION |
|---|---|---|---|
| action | Yes | get |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response xmlns="http://www.gliffy.com" success="true">
<folders>
<folder is-default="true">
<name>ROOT</name>
<path>ROOT</path>
<folder is-default="false">
<name>Burns Top Secret</name>
<path>ROOT/Burns Top Secret</path>
</folder>
<folder is-default="false">
<name>Casino</name>
<path>ROOT/Casino</path>
</folder>
<folder is-default="false">
<name>Drunks Only</name>
<path>ROOT/Drunks Only</path>
</folder>
<folder is-default="false">
<name>Simpsons Family</name>
<path>ROOT/Simpsons Family</path>
<folder is-default="false">
<name>Bart Only</name>
<path>ROOT/Simpsons Family/Bart Only</path>
</folder>
<folder is-default="false">
<name>Maggie and Lisas Stuff</name>
<path>ROOT/Simpsons Family/Maggie and Lisas Stuff</path>
</folder>
</folder>
</folder>
</folders>
</response>
Here, $FOLDER_PATH can be a series of folder names delimited with the forward slash ('/'), which imply a nesting/hierarchy of folders. Currently, there can be only one folder at the root, and it is called ROOT. So, any other folder path will be in ROOT, e.g. /accounts/1230043/folders/ROOT/software. Also note that the parent folders must all exist, and that the user executing this must have access to the folder.
Default Folder Permissions - Any user who exists in this Account at the time the Folder is created will get access to this new folder. Any User created after this Folder is created will not have access to this Folder.
| HTTP METHOD | URL |
|---|---|
| POST | $API_ROOT/accounts/$YOUR_ACCOUNT_ID/folders/$FOLDER_PATH.xml?action=create |
| PARAMETER | REQUIRED | POSSIBLE VALUES | DESCRIPTION |
|---|---|---|---|
| action | Yes | create |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response xmlns="http://www.gliffy.com" success="true" />
Here, $FOLDER_PATH can be a series of folder names delimited with the forward slash ('/'), which imply a nesting/hierarchy of folders. You may not delete the ROOT folder, and you may not delete a folder that has any documents or other folders in it.
| HTTP METHOD | URL |
|---|---|
| DELETE or POST | $API_ROOT/accounts/$YOUR_ACCOUNT_ID/folders/$FOLDER_PATH.xml?action=delete |
| PARAMETER | REQUIRED | POSSIBLE VALUES | DESCRIPTION |
|---|---|---|---|
| action | Yes | delete |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response xmlns="http://www.gliffy.com" success="true" />
| HTTP METHOD | URL |
|---|---|
| GET or POST | $API_ROOT/accounts/$YOUR_ACCOUNT_ID/folders/$FOLDER_PATH/documents.xml?action=get |
| PARAMETER | REQUIRED | POSSIBLE VALUES | DESCRIPTION |
|---|---|---|---|
| action | Yes | get |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response xmlns="http://www.gliffy.com" success="true">
<documents>
<document num-versions="4" id="1000000">
<name>Hounds Room</name>
<mod-date>1215538283000</mod-date>
<create-date>1215538283000</create-date>
<published-date>1215538283000</published-date>
<owner id="202">
<username>monty</username>
<email>monty@BurnsODyne.apiuser.gliffy.com</email>
</owner>
</document>
<document is-public="true" num-versions="5" id="1000002">
<name>SNPP Domain Model</name>
<mod-date>1215538283000</mod-date>
<create-date>1215538283000</create-date>
<published-date>1215538283000</published-date>
<owner id="203">
<username>smithers</username>
<email>smithers@BurnsODyne.apiuser.gliffy.com</email>
</owner>
</document>
<document num-versions="2" id="1000001">
<name>World Domination Flow</name>
<mod-date>1215538283000</mod-date>
<create-date>1215538283000</create-date>
<published-date>1215538283000</published-date>
<owner id="202">
<username>monty</username>
<email>monty@BurnsODyne.apiuser.gliffy.com</email>
</owner>
</document>
</documents>
</response>
| HTTP METHOD | URL |
|---|---|
| GET or POST | $API_ROOT/accounts/$YOUR_ACCOUNT_ID/folders/$FOLDER_PATH/users.xml?action=get |
| PARAMETER | REQUIRED | POSSIBLE VALUES | DESCRIPTION |
|---|---|---|---|
| action | Yes | get |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<response xmlns="http://www.gliffy.com" success="true">
<users>
<user id="209">
<username>barney</username>
<email>barney@BurnsODyne.apiuser.gliffy.com</email>
</user>
<user id="205">
<username>bart</username>
<email>bart@BurnsODyne.apiuser.gliffy.com</email>
</user>
<user id="210">
<username>discostu</username>
<email>discostu@BurnsODyne.apiuser.gliffy.com</email>
</user>
<user id="204">
<username>homer</username>
<email>homer@BurnsODyne.apiuser.gliffy.com</email>
</user>
</users>
</response>
This will grant the user access to the given folder and all folders beneath it.
| HTTP METHOD | URL |
|---|---|
| POST | $API_ROOT/accounts/$YOUR_ACCOUNT_ID/folders/$FOLDER_PATH/users/$USERNAME.xml?action=update&read=true&write=true |
| PARAMETER | REQUIRED | POSSIBLE VALUES | DESCRIPTION |
|---|---|---|---|
| action | Yes | update | |
| read | Yes | true | Gives user read access. |
| write | Yes | true | Gives user write access |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response xmlns="http://www.gliffy.com" success="true" />
This will revoke the user's access to the given folder and all folders beneath it. Admin users cannot be removed from a folder.
| HTTP METHOD | URL |
|---|---|
| POST | $API_ROOT/accounts/$YOUR_ACCOUNT_ID/folders/$FOLDER_PATH/users/$USERNAME.xml?action=update&read=false&write=false |
| PARAMETER | REQUIRED | POSSIBLE VALUES | DESCRIPTION |
|---|---|---|---|
| action | Yes | update | |
| read | Yes | false | Gives user read access. |
| write | Yes | false | Gives user write access |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <response xmlns="http://www.gliffy.com" success="true" />