Skip to content

Instantly share code, notes, and snippets.

@IndiceeCoder
Created June 21, 2011 22:02
Show Gist options
  • Save IndiceeCoder/1039034 to your computer and use it in GitHub Desktop.
Save IndiceeCoder/1039034 to your computer and use it in GitHub Desktop.
model dataset table create
POST /api/models/datasets/sheet1.xls/tables/create.xml HTTP/1.1
Authorization: OAuth xxxxxxxxxxx
Content-Type: application/xml
Host: secure.indicee.com
<table>
<name>sheet_sales</name>
<attributes>
<attribute value="true" type="Boolean" name="includeTable" />
<attribute value="CSV" type="String" name="seperator" />
<attribute value="1" type="Integer" name="headerStart" />
<attribute value="2" type="Integer" name="columnStart" />
<attribute value="2" type="Integer" name="dataStart" />
</attributes>
<source_fields>
<source_field>
<name>Customer Type</name>
<attributes>
<attribute value="true" type="Boolean" name="includeField" />
<attribute value="false" type="Boolean" name="isNameless" />
<attribute value="false" type="Boolean" name="hidden" />
<attribute value="{0}" type="String" name="formatting" />
</attributes>
<data_type>STRING</data_type>
</source_field>
</source_fields>
</table>
<?xml version="1.0" encoding="UTF-8"?>
<table>
<uuid>bb407173-03f5-45a3-8b9d-b04bbc9671ae</uuid>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment