<back to all web services
TaskType
The following routes are available for this service:| GET, POST, DELETE | /{Workspace}/TaskType/{Type} | | |
|---|
| GET | /{Workspace}/TaskType | | |
|---|
TaskType Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| Workspace | path | string | No | |
| Type | path | string | No | |
| Icon | body | string | No | |
| SkillTags | body | List<string> | No | |
| MinTimeToComplete | body | double | No | |
| AvgTimeToComplete | body | double | No | |
| MaxTimeToComplete | body | double | No | |
| Template | body | string | No | |
| DocFilter | body | bool | No | |
| ShowRelatedDocs | body | bool | No | |
| AllowedDocTypes | body | List<string> | No | |
| DefaultPriority | body | int? | No | |
| Inactive | body | bool | No | |
| AutoCreateDocuments | body | List<string> | No | |
| PercentCompleteType | body | string | No | |
| UseJobTimers | body | bool | No | |
| InheritAssetTeams | body | bool | No | |
| InheritContactTeams | body | bool | No | |
| EditTeams | body | List<string> | No | |
| UseRequired | body | bool | No | |
| AllowOverride | body | bool | No | |
| RequiredAssets | body | List<RequiredAsset> | No | |
| RequiredInventoryTypes | body | List<RequiredInventoryType> | No | |
| RequiredUsers | body | List<RequiredUser> | No | |
| ActiveLaborTypes | body | Dictionary<string, Object> | No | |
| IndividualUserStatuses | body | bool | No | |
| LockOption | body | bool | No | |
| AutoCreateDocExpressions | body | List<AutoCreateDocExpression> | No | |
| PTO | body | bool | No | |
RequiredAsset Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| Number | form | int | No | |
| Type | form | string | No | |
RequiredInventoryType Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| Number | form | int | No | |
| Type | form | string | No | |
| Name | form | string | No | |
| IsSerialized | form | bool | No | |
| Description | form | string | No | |
RequiredUser Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| Number | form | int | No | |
| SkillTags | form | List<string> | No | |
AutoCreateDocExpression Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| Document | form | string | No | |
| Expression | form | string | No | |
| MultipleCopies | form | bool | No | |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /{Workspace}/TaskType/{Type} HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TaskType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Field2Office.API.Model.Tasks">
<ActiveLaborTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</ActiveLaborTypes>
<AllowOverride>false</AllowOverride>
<AllowedDocTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</AllowedDocTypes>
<AutoCreateDocExpressions xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.DomainObjects.Model">
<d2p1:AutoCreateDocExpression>
<d2p1:Document>String</d2p1:Document>
<d2p1:Expression>String</d2p1:Expression>
<d2p1:MultipleCopies>false</d2p1:MultipleCopies>
</d2p1:AutoCreateDocExpression>
</AutoCreateDocExpressions>
<AutoCreateDocuments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</AutoCreateDocuments>
<AvgTimeToComplete>0</AvgTimeToComplete>
<DefaultPriority>0</DefaultPriority>
<DocFilter>false</DocFilter>
<EditTeams xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</EditTeams>
<Icon>String</Icon>
<Inactive>false</Inactive>
<IndividualUserStatuses>false</IndividualUserStatuses>
<InheritAssetTeams>false</InheritAssetTeams>
<InheritContactTeams>false</InheritContactTeams>
<LockOption>false</LockOption>
<MaxTimeToComplete>0</MaxTimeToComplete>
<MinTimeToComplete>0</MinTimeToComplete>
<PTO>false</PTO>
<PercentCompleteType>String</PercentCompleteType>
<RequiredAssets xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.DomainObjects.Model">
<d2p1:RequiredAsset>
<d2p1:Number>0</d2p1:Number>
<d2p1:Type>String</d2p1:Type>
</d2p1:RequiredAsset>
</RequiredAssets>
<RequiredInventoryTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.DomainObjects.Model">
<d2p1:RequiredInventoryType>
<d2p1:Description>String</d2p1:Description>
<d2p1:IsSerialized>false</d2p1:IsSerialized>
<d2p1:Name>String</d2p1:Name>
<d2p1:Number>0</d2p1:Number>
<d2p1:Type>String</d2p1:Type>
</d2p1:RequiredInventoryType>
</RequiredInventoryTypes>
<RequiredUsers xmlns:d2p1="http://schemas.datacontract.org/2004/07/Field2Office.DomainObjects.Model">
<d2p1:RequiredUser>
<d2p1:Number>0</d2p1:Number>
<d2p1:SkillTags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:SkillTags>
</d2p1:RequiredUser>
</RequiredUsers>
<ShowRelatedDocs>false</ShowRelatedDocs>
<SkillTags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</SkillTags>
<Template>String</Template>
<Type>String</Type>
<UseJobTimers>false</UseJobTimers>
<UseRequired>false</UseRequired>
<Workspace>String</Workspace>
</TaskType>