Task
POST /ver2/TaskService.svc/tasks
envianceSdk.tasks.createTask
[
{
"name": "Task1",
"description": "Perform a spot check every month on the steam valves.",
"dueDate": "2012-12-08T09:00:00",
"timeZone": {
"name": "Pacific Time (US \u0026 Canada) (UTC-08:00) (With DST)"
},
"assignor": "dnk",
"assignees": [
{
"userIdOrName": "dnk"
},
{
"groupIdOrName": "Administrators"
}
],
"calendars": [
"System",
"My"
],
"objects": [
"/1"
],
"documents": [
"/asdf/qktop.ini"
],
"schedules": [
{
"startDate": "2014-02-22T00:00:00",
"recurrenceType": "Monthly",
"startTime": "00:00:00",
"recurrenceInterval": 1,
"dayOfMonth": 31
}
],
"notifications": [
{
"conditions": {
"immediately": true,
"whenDismissed": true,
"byDueDate": {
"conditionType": "IntervalBefore",
"intervalValue": 5,
"intervalType": "Hour"
},
"byCompletionStatus": {
"comparisonLogic": "\u003E=",
"completionPercent": 30
}
},
"recipients": {
"toAssignees": true,
"toAssignor": true,
"users": [
"067A42E1-8FD4-4ADA-A7F5-0007473469AA"
],
"groups": [
"503DFFD2-FB1F-412E-B9C5-034796E4653D"
]
},
"deliveryMethod": "InboxAndEmail",
"comments": "Notification comment 1"
}
],
"workflowtrigger": {
"isautoclosetask": false,
"taskcompletionfields": [
"CostToComplete",
"PercentComplete",
"Comments",
"ComplyStatus",
"Dismissed",
"CompletionDate"
],
"workflows": [
{
"workflowtypeidorname": "b4290540-14e0-4351-aaef-867014c7ed6e",
"workflowname": "Igor WF Name",
"calendars": [
"My",
"System"
],
"duedateflags": [
"Workflow"
],
"duedateamount": {
"value": 2,
"hours": "Hour",
"period": "Before"
},
"timetocreateoptions": [
{
"category": "ByDueDate",
"value": {
"past": false,
"value": 1,
"hours": "Week",
"period": "After"
}
},
{
"category": "ByCompleteStatus",
"value": {
"operation": "OR",
"percent": 10,
"compare": "="
}
},
{
"category": "OnDismissActivate"
}
],
"assignee": [
{
"userIdOrName": "8f17d324-4d92-450e-aaa1-cbbfbc1826f3"
},
{
"groupIdOrName": "fcca10ce-09be-4a6f-a0c7-defb0f124a29"
}
]
}
]
}
},
"onsuccess",
"onerror"
]
Request
- Base URLhttps://api.enviance.com (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
EnvApi-Systemidstring
Specify specific system to run instead of Home
EnvApi-Packageidstring
(optional) Clients application/package ID
EnvApi-Udf-DateTime-Iso-In-CustomFieldsstring
Udfs of DateTime should use Iso
EnvApi-Udf-DateTime-ReadInUserTzstring
(obsolete) Udfs of DateTime type whould be in ReadInUserTz
EnvApi-Udf-Value-Invariantstring
(optional) Udfs - Force Non-Localized (invariant) values
EnvApi-Localization-Allstring
(optional) Extend objects with User-given Localizations
x-client-request-idstring
(optional) Client ID for double submit prevention
Request body
Response
not available
string guid required
Changes
No recorded changes to this operation across all 1 revision of this API.