Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

_pageunsigned intThe page of the list to display. For example, 5 will display the fifth page. Each page contains 10 resources.
_limitunsigned intThe maximum number of resources to return. Default is 10 and maximum is 50.
_offsetunsigned intThe position in the list of resources to return from. For example, if you had 20 resources and requested an offset of 10. Resources 10 to 19 would be returned. Offset cannot be used in conjunction with _page.
_fieldspartial stringAllows you to specify optional fields and linked objects to include in the response.
_filterspartial_string 

Filtering Activities

You can filter the returned list using the _filters parameter.

NameExampleDescription
owner_type  

type  

invitation  

readread(no) or read(0) or read(n) 
parent_id  

thread_id  

staff_id  

priority_id  

class_id  

task_id  

message_id  

owner_id  

visibility  

medium  

against_typeagainst_type(company,job)Only return activities against the given type
against_idagainst_id(12,12)Only return activities against object with given ids.
order_by_ascorder_by_asc(date_ended)

date_started, date_created, date_ended, date_logged, date_modified and id

Status
colourGreen
titlenew
billable, nonbillable

order_by_desc 
Same as order_by_asc but opposite direction
date_created_before  

date_created_after  

date_started_before  

date_started_after  

date_logged_before  

date_logged_after  

date_ended_before  

date_ended_after 

 date_modified_after

date_modified_before

max_id  

min_id  

NEW

<field_name>_greater_than(<value>),

<field_name>_less_than(<value>),

<field_name>_greater_than_or_equal(<value>),

<field_name>_less_than_or_equal(<value>)

 


_filters=id_greater_than(5)

Available fields:

id
thread
against_id
owner
staff
priority
class
task

Info

Using the _not suffix (e.g, id_not) on standard in filters will returns results not in.

...


Handling the response

Below is a table of available response fields and objects that are returned within the response object of the returned object. The optional fields and objects can be requested in the _fields parameter; see included examples. Underlined values are default.

idunsignedActivity's unique identifier. This can be used to request other endpoints.
subjectstring 
parentstringParent activity endpoints. For example, /activities/13
parent_idunsignedParent activity identifier. For example, 13.
threadstringThread activity endpoint. For example, /activities/13.
thread_idunsignedThread activity identifier. For example, 13
againststringThe object endpoint the activity is against. For example, /company/14
against_typestringThe object the activity is against. For example, company or staff.
against_idunsignedUnique identifier for the object the activity is against.
ownerstringAn endpoint representing the owner. For example, /staff/15 or /affiliation/14
owner_typestringThe type of owner. For example, staff or affiliation.
owner_idunsignedThe owner's id. For example, 15 or 14.
mediumstringmeeting, note, email, etc
bodystringThe main content of the activity.
visibilitystringprivate, all, confidential
detailsstring 
message_idstringThe custom message id
date_createdunix ts 
date_startedunix ts 
date_endedunix ts 
date_dueunix ts 
date_updatedunix ts 
staffunsigned or object 
priorityunsigned or object 


rateunsigned or object 
rate_chargedunsigned floatThe rate charged for the activity. If the rate has been changed for a particular activity, this will show the changed rate.
classunsigned or objectActivity's class.
taskunsigned or objectThe task the activity is against if any.
interactsN/AAdds an "interacts" array to each activity response. Please see Handling Interacts below for more information.

...


Fields that can be object indicate the field can be requested as a resource. For example.

...