Implement the activities.updated
webhook to know when an activity object is updated.
Activity objects are updated through periodic scanning.
Event
activities.updated
Payload
account string uuid
ID of the account the activities were updated for.
user string uuid
ID of the user associated with the account.
updated_from string timestamp
Represents the start of the time period the activities were updated in. The updated_from
timestamp will precede the updated_to
timestamp.
updated_to string timestamp
Represents the end of the time period the activities were updated in.
updated_count integer
The number of activities that were updated.
updated_activities array of uuids
IDs of the updated activities.
available_from string timestamp
Represents the start of the time period the activities are available for. The available_from
timestamp will precede the available_to
timestamp.
available_to string timestamp
Represents the end of the time period the activities are available for.
available_count integer
The total number of activities associated with the account at the moment the webhook call is made.
Examples
curl -X POST https://api.argyle.com/v1/webhooks \
-u api_key_id:api_key_secret \
-H "Content-Type: application/json" \
-d '{"events": ["activities.updated"],
"secret": "<secret for signature verification>",
"name": "activities.updated",
"url": "https://webhook.site/url"}'
{
"event": "activities.updated",
"name": "Activities updated",
"data": {
"account": "12db5af4-fd5f-4d1f-bd98-0360df770aa8",
"user": "abdb5af4-fd5f-4d1f-bd10-0360df77012c",
"updated_from": "2019-09-10T10:00:00Z",
"updated_to": "2019-09-12T12:00:00Z",
"updated_count": 2,
"updated_activities": [
"d667a477-e252-4f8a-9518-92a51b235187",
"27f3cde1-1ca0-4b5a-940d-337fd33f97b5"
],
"available_from": "2019-03-07T20:12:09Z",
"available_to": "2019-09-23T23:57:31Z",
"available_count": 456
}
}