Skip to content

Update an Existing Action

Method: PUT

Url: /Actions
Header: DPApiAuthenticationToken={YOUR_API_TOKEN}

Query String: None

Request Body:

Parameter NameData TypeRemarks
ActionID (required)IntegerThe ID of the action to be updated
ActionDescription (required)StringThe action description to be changed. May contain HTML
NewContentInHTMLBooleanWhether the ActionDescription contains HTML

Default: True
CustomFieldsList<CustomField>List of custom fields (key-value pair) for this record
Request Example:
PUT “https://api.dataprise.com/api/v1/Actions/”Header: “DPApiAuthenticationToken=abcxyz0123456789″Body: { “ActionID”: 1234, “ActionDescription”: “Test action from API – Updated”, “NewContentInHTML”: false, “CustomFields”: [{“FieldLabel”: “Source”, “FieldValue”:”Email”}] }

Response:

The API will return the response as under:

PropertyData TypeRemarks
StatusStringStatus of the request. Either “Success” or “Failure”
MessageStringError messages if the request failed (i.e. Status = “Failure”)
IdIntegerThe ID of the updated record if the request succeeded (i.e. Status = “Success”)
Sample Response:
{ “Status”: “Success”, “Message”: “”, “Id”: 1234 }