Delete an activity record
Delete
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | activities.json | |
| General | Yes | Parameters described in API syntax section | Structure of an API call | |
| Action | Yes | The action to perform | action=activitydelete | |
| Input | Yes | JSON string | See below |
| JSON Input | Mandatory | Description | Examples |
|---|---|---|---|
| Identifier | Yes | Data identifying activity to delete | "activityID": 6958 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/activities.json?company=1&&version=6&action=activitydelete&input={
"data": [
{
"activityID": 6958
}
]
}
Example request (legacy username/password):
http://<SERVER>/jsonapi/activities.json?company=1&&version=6&action=activitydelete&input={
"data": [
{
"activityID": 6958
}
]
}&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"activityID": 6958,
"activityuuid": "8F6FBBBF41EA6141AD99E2CA56171C31"
}
]
}