Skip to content

Manipulate an event in a timeline

Request

Security
bearerAuth
Bodyapplication/jsonrequired
timeline_idstringrequired

The ID of the timeline where the event will be manipulated

event_idstringrequired

The ID of the event to manipulate

new_outcomeobjectrequired

The details of the new outcome for the event

curl -i -X POST \
  https://aywa-ops-setup.ailytics.ai/_mock/apis/events \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "timeline_id": "string",
    "event_id": "string",
    "new_outcome": {
      "description": "string",
      "changes": [
        {
          "action": "string",
          "time": "2019-08-24T14:15:22Z"
        }
      ]
    }
  }'

Responses

The event was manipulated successfully

Bodyapplication/json
statusstring

Status of the event manipulation operation

new_event_idstring

The ID of the newly created event after manipulation

Response
{ "status": "string", "new_event_id": "string" }