Versions Compared

Key

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

...

Table of Contents
maxLevel3
typeflat

...

Overview

The following operations allow you to work with cases. Click an operation name to see details on how to use it.

For a sample proxy service that illustrates how to work with cases, see Sample configuration.

Operation details

This section provides further details on the operations related to cases.

Anchor
createCase
createCase
Creating a case

The createCase operation adds a new case.

Code Block
languagexml
titlecreateCase
<clevertimcrm.createCase>
	<name>{$ctx:name}</name>
	<tags>{$ctx:tags}</tags> 
    <customFields>{$ctx:customFields}</customFields> 
    <description>{$ctx:description}</description> 
    <name>{$ctx:name}</name> 
    <leadUser>{$ctx:leadUser}</leadUser> 
    <customer>{$ctx:customer}</customer> 
</clevertimcrm.createCase> 
Properties
  • name: Required - The name of the case.
  • tags: The tags associated with the case.
  • customFields: The custom fields associated with the case.
  • description: The description of the case.
  • name: The name of the case.
  • leadUser: The lead user of the case.
  • customer: The customer belonging to the case.
Anchor
request
request
Sample request

Following is a sample REST/JSON request that can be handled by the createCase operation.

Code Block
languagexml
titleSample Request for createCase
{ 
	"apiUrl":"https://www.clevertim.com", 
	"apiKey":"7hRfxQ3mXxLrnAmiIYxSIsFTlGdCYNfnqjY4pXtaAhYEe04HP3Z11751", 
	"name":"testSOAPCase7", 
	"description":"first description", 
	"tags": ["case", "support", "open"], 
	"customFields": {"460": "user1", "461": "user2"}, 
	"leadUser": 11752, 
	"customer": 117010 
} 
Related Clevertim CRM documentation

https://github.com/clevertim/clevertim-crm-api/blob/master/resources/case.md#add-a-new-case

Anchor
updateCase
updateCase
Updating a case

The updateCase operation updates the specified case.

Code Block
languagexml
titleupdateCases
<clevertimcrm.updateCase> 
	<tags><id>{$ctx:tagsid}</tags>id> 
    <id>	<tags>{$ctx:idtags}</id>tags> 
    <customFields>{$ctx:customFields}</customFields> 
    <description>{$ctx:description}</description> 
    <name>{$ctx:name}</name> 
    <leadUser>{$ctx:leadUser}</leadUser> 
    <customer>{$ctx:customer}</customer> 
</clevertimcrm.updateCase> 
Properties
  • id: Required - The ID of the case.
  • tags: The tags associated with the case.id: The ID of the case.
  • customFields: The custom fields associated with the case.
  • description: The description of the case.
  • name: The name of the case.
  • leadUser: The lead user of the case.
  • customer: The customer who belongs to the case.
Sample request

Following is a sample REST/JSON request that can be handled by the updateCase  operation.

Code Block
languagexml
titleupdateCase
{ 
	"apiUrl":"https://www.clevertim.com", 
	"apiKey":"tPnLGkETTPFbxfu0oIJtchPDxzBWzXaTSOStS4B6aGHIszKFrCZ11557", 
	"id":"22019", 
	"description":"Second description" 
} 
Related Clevertim CRM documentation

https://github.com/clevertim/clevertim-crm-api/blob/master/resources/case.md#update-an-existing-case

Anchor
listCases
listCases
Listing cases

The listCases operation retrieves all cases.

Code Block
languagexml
titlelistCases
<clevertimcrm.listCases/> 
Sample request

Following is a sample REST/JSON request that can be handled by the listCases operation.

Code Block
languagexml
titlelistCases
{ 
	"apiUrl":"https://www.clevertim.com", 
	"apiKey":"tPnLGkETTPFbxfu0oIJtchPDxzBWzXaTSOStS4B6aGHIszKFrCZ11557" 
} 
Related Clevertim CRM documentation

https://github.com/clevertim/clevertim-crm-api/blob/master/resources/case.md#get-all-cases

Anchor
sample
sample

Sample configuration

Following is a sample proxy service that illustrates how to connect to Clevertim CRM with the init operation and use the createCase operation. The sample request for this proxy can be found in createCase sample request. You can use this sample as a template for using other operations in this category.

...