Show a Case
Retrieve a specific case.
GET /api/kase/:id
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kase>
<id>43</id>
<status>OPEN</status>
<name>Consulting</name>
<description>Scope and design web site shopping cart</description>
<partyId>2</partyId>
<owner>a.user</owner>
<createdOn>2011-04-16T13:59:58Z</createdOn>
<updatedOn>2011-05-11T16:54:23Z</updatedOn>
</kase>
List Cases
Collection of cases on the Capsule account
GET /api/kase
The collection of cases can be filtered using one of the following filters on the URL.
-
?tag=filter by last modified date -
?lastmodified=filter by last modified date
The results can also be paginated using the following options
-
&start=first record to be returned. The results start with an index of 0. -
&limit=the maximum number of matching records to be returned
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kases>
<kase>...</kase>
<kase>...</kase>
</kases>
List Cases for Party
Collection of cases for a specified person or organisation.
GET /api/party/:party-id/kase
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kases>
<kase>...</kase>
<kase>...</kase>
</kases>
Add a Case
Create a new case attached to a specified person or organisation.
POST /api/party/:party-id/kase
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kase>
<status>OPEN</status>
<name>Website design</name>
<description>Design and create website</description>
<owner>a.user</owner>
</kase>
-
namerequired, name for the case -
descriptionoptional description -
owneroptional, if not supplied the authenticated user is used; see users for available options -
statusoptional, if not supplied it defaults toOPEN, available options areOPEN,CLOSED -
closeDateoptional, ignored unlessstatusisCLOSED
Response
HTTP/1.1 201 Created
Location: https://sample.capsulecrm.com/api/kase/59
Update a Case
Update a specified cases, only the fields that are to be updated need to be supplied in the XML or JSON.
PUT /api/kase/:kase-id
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<kase>
<status>CLOSED</status>
</kase>
Response
HTTP/1.1 200 OK
Delete a Case
Delete a specific Case
DELETE /api/kase/:kase-id
Response
HTTP/1.1 200 OK
Deleted Cases
A collection of case id’s that have been deleted since the specified date
GET /api/kase/deleted
-
?since=required, date to start check for delete cases
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<deletedKases>
<deletedKase>
<id>1</id>
<deletedDate>2011-11-16T16:35:31Z</deletedDate>
</deletedKase>
<deletedKase>
<id>6</id>
<deletedDate>2011-12-31T11:16:19Z</deletedDate>
</deletedKase>
</deletedKases>
List Additional Contacts
The collection of additional contacts related to the case.
GET /api/kase/:case-id/party
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<parties>
<person>
<id>100</id>
<firstName>Eric</firstName>
<lastName>Schmidt</lastName>
<createdOn>2011-09-14T15:22:01Z</createdOn>
<updatedOn>2011-12-14T10:45:46Z</updatedOn>
</person>
<person>
<id>101</id>
<firstName>Larry </firstName>
<lastName>Page</lastName>
<createdOn>2011-09-14T15:22:01Z</createdOn>
<updatedOn>2011-11-15T10:50:48Z</updatedOn>
</person>
<organisation>
<id>50</id>
<name>Google Inc</name>
<createdOn>2011-09-14T15:22:01Z</createdOn>
<updatedOn>2011-12-14T10:45:46Z</updatedOn>
</organisation>
</parties>
Add Additional Contact
Add an person or organisation as an additional contact to the case.
POST /api/kase/:case-id/party/:party-id
Response
HTTP/1.1 200 OK
Remove Additional Contact
Remove that person or organisation as an additional contact of the case.
DELETE /api/kase/:case-id/party/:party-id
Reponse
HTTP/1.1 200 OK
