Activity

PUT /ver2/ActivityService.svc/activities/{activityIdOrName}

envianceSdk.activities.updateActivity

[
  "Activity Name",
  {
    "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"
]

Request

Path parameters

activityIdOrNamestring required

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.