Update an Action

This service is used to update certain attributes associated with an action.

Request

URI: /v1/actions

HTTP Method: PUT

Authorization: OAuth

Request Example: /v1/actions

Request Headers

Header Required Values
Authorization Yes Bearer <access-token>
Content-Type Yes application/json

Request Body

Payload

{
  "guid":"<guid>",
   "actionRunResults": [],
    "actionType": "EMAIL",
    "eventName": null,
    "eventType": "com.sap.appiot.eventtypes:RulesFiredEventType",
    "eventGUID": "4043",
    "name": "test public API",
    "description": "EMAIL",
    "thingTypeGUID": "iotae.automobiles:ABCXSeries",
    "status": 1,
    "severity": 2,
    "methodType": null,
    "authType": null,
    "destinationName": null,
    "triggeredEventOutbound": false,
    "outboundEventName": null,
    "respDocType": null,
    "invocationType": "AUTO",
    "header": "test",
    "body": "test",
    "requestBody": null,
    "notificationTemplateId": null,
    "notificationTypeKey": null,
    "notificationTypeVersion": null,
    "notificationLanguage": null,
    "notificationTemplateContent": null,
    "url": "",
  "actionParameters": [
    {
      "name": "thing",
      "path": "thing.id",
      "type": "THING",
      "namedPst": null
    },
    {
      "name": "thing",
      "path": "thing.description",
      "type": "THING",
      "namedPst": null
    }
   ],
    "actionRecipients": [
            "<email>"
        
    ]
}

Response

Action saved. Guid is: “<guid>”

Response Status and Error Codes

Code Description
202 Accepted Action saved
400 Bad Request Action was empty
401 Unauthorized Authorization details are invalid/ expired/ not provided
500 Internal Server Action Guid is missing