| GET,PUT,POST,DELETE | /{Workspace}/InventoryItemTemplate |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ObjectId | body | string | No | |
| Workspace | path | string | No | |
| Name | body | string | No | |
| CustomFields | body | List<CustomField> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Key | form | string | No | |
| Label | form | string | No | |
| IsActive | form | bool | No | |
| IsReadOnly | form | bool | No | |
| IsHidden | form | bool | No | |
| IsMandatory | form | bool | No | |
| DisplayOnMap | form | bool | No | |
| CustomFieldDataType | form | CustomFieldDataType | No | |
| Values | form | string | No | |
| Prompt | form | string | No | |
| Default | form | string | No | |
| DefaultAutoUpdate | form | bool | No | |
| RequiredIf | form | string | No | |
| Hidden | form | List<string> | No | |
| ReadOnly | form | List<string> | No | |
| ControlArgs | form | Dictionary<string, Object> | No | |
| IndexSlot | form | string | No | |
| Index | form | string | No |
| Text | |
| Number | |
| Decimal | |
| Money | |
| PhoneNumber | |
| Ssn | |
| List | |
| Date | |
| File | |
| Barcode | |
| GPS | |
| Photo | |
| Spacer | |
| Separator | |
| AutoNumber | |
| TextArea | |
| Contact | |
| User | |
| Asset | |
| Checkbox | |
| CoreAssetList | |
| CoreTaskList | |
| CoreParentTask | |
| CoreContactList | |
| ComboBox | |
| DateTime | |
| Time | |
| Location | |
| CoreLocation | |
| Label | |
| EventLog | |
| Address | |
| Catalog | |
| CoreTeamList | |
| Segment | |
| CoreTimeSeries | |
| TimeSeries | |
| Command | |
| AutoNumberNumeric | |
| CatalogList | |
| CatalogComboBox | |
| DateRange | |
| DocumentGrid | |
| ReportLink | |
| Hyperlink | |
| PercentComplete | |
| Chart | |
| Range | |
| ExternalId | |
| AssetCatalog | |
| Inventory | |
| CoreTaskLaborItemTypes | |
| CoreTaskLaborItems | |
| ObjectList | |
| CoreTimeZone |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/InventoryItemTemplate HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ObjectId: String,
Workspace: String,
Name: String,
CustomFields:
[
{
Key: String,
Label: String,
IsActive: False,
IsReadOnly: False,
IsHidden: False,
IsMandatory: False,
DisplayOnMap: False,
CustomFieldDataType: Text,
Values: String,
Prompt: String,
Default: String,
DefaultAutoUpdate: False,
RequiredIf: String,
Hidden:
[
String
],
ReadOnly:
[
String
],
ControlArgs:
{
String: {}
},
IndexSlot: String,
Index: String
}
]
}