Activity
Create Activity
Create an Activity
envianceSdk.activities.createActivity
[
{
"name": "Activity Name",
"description": "Activity Description",
"templateIdOrName": "Template Name",
"fields": [
{
"name": "Aspect",
"values": [
"Air pollution control waste"
]
},
{
"name": "Start Date",
"values": [
"2012-09-19T20:00:00"
]
},
{
"name": "Type",
"values": [
"Spill",
"Near Miss"
]
}
],
"properties": [
{
"propertyIdOrName": "suv property name"
},
{
"propertyIdOrName": "avbp propertie name",
"valueHistory": [
{
"beginDate": "2012-01-19T20:00:00",
"endDate": "2012-02-19T20:00:00",
"value": "1"
},
{
"beginDate": "2012-02-19T20:00:00",
"endDate": "2012-03-19T20:00:00",
"value": "2"
}
]
}
]
},
"onsuccess",
"onerror"
]
post/ver2/ActivityService.svc/activities
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.