Endpoint ID: | 9004 | ||||||||||||||||||||||||||||||||||
Method: | |||||||||||||||||||||||||||||||||||
URL: | /content/tagged/dp-key/{dp-key}/search | ||||||||||||||||||||||||||||||||||
dp-key | dialogportal™ master key that uniquely identifies an entity | ||||||||||||||||||||||||||||||||||
ext-key | External key that uniquely identifies an entity | ||||||||||||||||||||||||||||||||||
ext-type | Type of external key | ||||||||||||||||||||||||||||||||||
Request body: | A JSON object describing the search parameters.
Example { "tags": [ "tag1", "tag2" ], "preferPrivate": false, "fromDate": "2014-01-01T01:00Z", "limit": 2, "offset": 10, "data": [ { "key": "a", "compare": ">=", "compareValue": 5.1 }, { "key": "a", "compare": "<=", "compareValue": 5.9 }, { "key": "x", "compare": "isempty" } ] } | ||||||||||||||||||||||||||||||||||
Response body: | JSON data with an array of content. The result also contains a Example { "content": [ { /* public content - no dpKey */ "tags": [ "tag1", "tag2" ], "content": "PGh0bWw+PGJvZHk+TW9yZSBIVE1MIGNvbnRlbnQ8L2JvZHk+PC9odG1sPg==", "contentType": "text/html", "data": { "width": "300px", "height": "50px", "a": 5.5, "b": 15 }, "created": "2014-02-10T12:53:42Z", "activeFrom": "2014-03-01T12:00:00Z", "activeTo": "2014-03-08T12:00:00Z" }, { /* private content - has dpKey */ "dpKey": 12345, "tags": [ "tag1", "tag2", "tag3" ], "content": "PGh0bWw+PGJvZHk+SFRNTCBjb250ZW50PC9ib2R5PjwvaHRtbD4=", "contentType": "text/html", "data": { "a": 5.9 }, "created": "2014-02-08T09:00:34Z" } ], "paging": { "offset": 10, "count": 2, "more": true } } | ||||||||||||||||||||||||||||||||||
Status codes: | 200 | OK | |||||||||||||||||||||||||||||||||
404.1 | Entity not found | ||||||||||||||||||||||||||||||||||
404.2 | External entity not found | ||||||||||||||||||||||||||||||||||
404.4 | Content not found |