Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Private content search

 

Endpoint ID:

9004

Method:

URL:

POST: /user/dp-key/{dpKey}/content/search
POST: /user/ext-key/{extKey}/{extType}/content/search

 dp-keydialogportal™ master key that uniquely identifies the account to connect content.
 ext-keyExternal key that uniquely identifies the account to connect content.
 ext-typeType of external key

Request body:

Example
{
   "tags": [ "tag1", "tag2" ],
   "preferPrivate": false,                     // optional - default to false
   "fromDate": "2014-01-01T01:00Z",            // optional - ISO UTC date
   "limit": 2,                                 // optional - default to 1
   "offset": 10,                               // optional - default to 0
   "compare": "between",                       // optional ["=", "<", ">", "<=", ">=",
                                               //    "between", "empty", "notempty"]
   "compareValue1": 5.1,                       // required for "compare":
                                               //    ["=", "<", ">", "<=", ">=", "between"]
   "compareValue2": 5.9                        // required for "compare": "between"
}

Response body:

JSON data with information about the content and entity.

Example
{
   "content": [
      {                                        // public content - no entityID
         "tags": [ "tag1", "tag2" ],
         "contentType": "text/html",
         "content": "base64 encoded content string",
         "created": "2014-02-10T12:53Z",
         "value": 19.5
      },
      {                                        // private content
         "entityID": 12345,
         "tags": [ "tag1", "tag2" ],
         "contentType": "text/html",
         "content": "base64 encoded content string",
         "created": "2014-02-08T09:00Z"
      }
   ],
   "paging": {
      "offset": 10,
      "count": 2,
      "more": true
   }
}

Status codes:

201

Created

 404.1User not found
 404.2External user could not be found
 404.4

Content not found

  • No labels