GET /cases/{case_id}/notes
$ curl \
-H 'Authorization: Bearer LLPmMJBrJV7OJgRfZMy44alqohy82kokVH56BYOLiE' \
-H 'Accept: application/xml'
http://api.staging.decisiv.net/platform_api/cases/1234/notes
<?xml version="1.0" encoding="UTF-8"?>
<n:notes xmlns:ct="http://www.decisiv.net/platform_api/0.0.7/Case/CaseTypes"
xmlns:r="http://www.decisiv.net/platform_api/0.0.7/Case/RecipientResponse"
xmlns:s="http://www.decisiv.net/platform_api/0.0.7/Case/SenderResponse"
xmlns:n="http://www.decisiv.net/platform_api/0.0.7/Case/NoteResponse"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.decisiv.net/platform_api/0.0.7/Case/NoteResponse">
<n:note>
<n:URL>URL0</n:URL>
<n:subjectURL>URL0</n:subjectURL>
<n:id>id0</n:id>
<n:message>message0</n:message>
<n:public>false</n:public>
<s:sender>
<s:id>id0</s:id>
<s:name>name0</s:name>
<s:groupName>groupName0</s:groupName>
<s:URL>URL0</s:URL>
</s:sender>
<r:recipients>
<r:recipient>
<r:id>id0</r:id>
<r:URL>URL0</r:URL>
<r:name>name0</r:name>
</r:recipient>
<r:recipient>
<r:id>id1</r:id>
<r:URL>URL1</r:URL>
<r:name>name1</r:name>
</r:recipient>
</r:recipients>
<n:createdAt>2014-06-12T12:47:55Z</n:createdAt>
<n:updatedAt>2014-07-03T19:07:21Z</n:updatedAt>
</n:note>
<n:note>
<n:URL>URL1</n:URL>
<n:subjectURL>URL1</n:subjectURL>
<n:id>id1</n:id>
<n:message>message1</n:message>
<n:public>false</n:public>
<s:sender>
<s:id>id1</s:id>
<s:name>name1</s:name>
<s:groupName>groupName1</s:groupName>
<s:URL>URL1</s:URL>
</s:sender>
<r:recipients>
<r:recipient>
<r:id>id2</r:id>
<r:URL>URL2</r:URL>
<r:name>name2</r:name>
</r:recipient>
<r:recipient>
<r:id>id3</r:id>
<r:URL>URL3</r:URL>
<r:name>name3</r:name>
</r:recipient>
</r:recipients>
<n:createdAt>2014-06-12T12:47:55Z</n:createdAt>
<n:updatedAt>2014-07-03T19:07:21Z</n:updatedAt>
</n:note>
</n:notes>
GET /cases/{case_id}/note/{id}
$ curl \
-H 'Authorization: Bearer LLPmMJBrJV7OJgRfZMy44alqohy82kokVH56BYOLiE' \
-H 'Accept: application/xml'
http://api.staging.decisiv.net/platform_api/cases/1234/notes/1
<?xml version="1.0" encoding="UTF-8"?>
<n:note xmlns:ct="http://www.decisiv.net/platform_api/0.0.7/Case/CaseTypes"
xmlns:r="http://www.decisiv.net/platform_api/0.0.7/Case/RecipientResponse"
xmlns:s="http://www.decisiv.net/platform_api/0.0.7/Case/SenderResponse"
xmlns:n="http://www.decisiv.net/platform_api/0.0.7/Case/NoteResponse"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.decisiv.net/platform_api/0.0.7/Case/NoteResponse">
<n:URL>URL0</n:URL>
<n:subjectURL>URL0</n:subjectURL>
<n:id>id0</n:id>
<n:message>message0</n:message>
<n:public>false</n:public>
<s:sender>
<s:id>id0</s:id>
<s:name>name0</s:name>
<s:groupName>groupName0</s:groupName>
<s:URL>URL0</s:URL>
</s:sender>
<r:recipients>
<r:recipient>
<r:id>id0</r:id>
<r:URL>URL0</r:URL>
<r:name>name0</r:name>
</r:recipient>
<r:recipient>
<r:id>id1</r:id>
<r:URL>URL1</r:URL>
<r:name>name1</r:name>
</r:recipient>
</r:recipients>
<n:createdAt>2014-06-12T12:47:55Z</n:createdAt>
<n:updatedAt>2014-07-03T19:07:21Z</n:updatedAt>
</n:note>
POST /case/{case_id}/notes
Name | Value |
---|---|
message | Note message. |
public | Visibility flag - default ‘private’. |
sender | User that is sending the note. |
recipients | Users that will recieve the note. |
<?xml version="1.0" encoding="UTF-8"?>
<n:note xmlns:ct="http://www.decisiv.net/platform_api/0.0.7/Case/CaseTypes"
xmlns:r="http://www.decisiv.net/platform_api/0.0.7/Case/RecipientRequest"
xmlns:s="http://www.decisiv.net/platform_api/0.0.7/Case/SenderRequest"
xmlns:n="http://www.decisiv.net/platform_api/0.0.7/Case/NoteRequest"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.decisiv.net/platform_api/0.0.7/Case/NoteRequest">
<n:message>message0</n:message>
<n:public>false</n:public>
<s:sender>
<s:id>id0</s:id>
</s:sender>
<r:recipients>
<r:recipient>
<r:id>id0</r:id>
</r:recipient>
<r:recipient>
<r:id>id1</r:id>
</r:recipient>
</r:recipients>
</n:note>
<?xml version="1.0" encoding="UTF-8"?>
<n:note xmlns:ct="http://www.decisiv.net/platform_api/0.0.7/Case/CaseTypes"
xmlns:r="http://www.decisiv.net/platform_api/0.0.7/Case/RecipientResponse"
xmlns:s="http://www.decisiv.net/platform_api/0.0.7/Case/SenderResponse"
xmlns:n="http://www.decisiv.net/platform_api/0.0.7/Case/NoteResponse"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.decisiv.net/platform_api/0.0.7/Case/NoteResponse">
<n:URL>URL0</n:URL>
<n:subjectURL>URL0</n:subjectURL>
<n:id>id0</n:id>
<n:message>message0</n:message>
<n:public>false</n:public>
<s:sender>
<s:id>id0</s:id>
<s:name>name0</s:name>
<s:groupName>groupName0</s:groupName>
<s:URL>URL0</s:URL>
</s:sender>
<r:recipients>
<r:recipient>
<r:id>id0</r:id>
<r:URL>URL0</r:URL>
<r:name>name0</r:name>
</r:recipient>
<r:recipient>
<r:id>id1</r:id>
<r:URL>URL1</r:URL>
<r:name>name1</r:name>
</r:recipient>
</r:recipients>
<n:createdAt>2014-06-12T12:47:55Z</n:createdAt>
<n:updatedAt>2014-07-03T19:07:21Z</n:updatedAt>
</n:note>