Versions Compared

Key

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

...

Excerpt

Searches the entire dialogportal™ Rubiq database for accounts that matches which match a given search string.


Note

This endpoint cannot be used when Data Isolation is enabled


 
Endpoint ID:1011
Method:
Status
colourGreen
titlePOST
URL:

/userentity/search/{contract-id}

 


 contract-id

Identifies the type of entities to search for and the contract fields to return. If omitted, all entity types are searched, each type returned using the default contract fields for that type.

Request body:

JSON data with search settings

 
Required fields

searchForThe string to search for in the database
Optional fields

 offsetThe offset in search results from where to return data. If omitted, offset is set to zero

 limitThe maximum number of entities to return. It is not possible to return more than 50 entities per request, and if omitted, limit is set to 50


Code Block
titleExample 1 – Search for “John Doe”:
{
	"searchFor": "John Doe"
}


Code Block
titleExample 2 – Search for “John Doe” with an offset of 40 and return no more than 20 entities:
{
	"searchFor": "John Doe",
	"offset": 40,
	"limit": 20
}



Span
stylewhite-space:pre
Response body:


JSON data with an array of the found entities. The result will also contain an object with properties that specify number of entities returned, the offset and whether there are more entities than the ones returned.

Code Block
titleExample 1 – Search for “John Doe” with a limit of one:
{
	"entities": [
		{
			"id": 12345,
			"name": "John Doe"
		}
	],
	"paging": {
		"offset": 0,
		"count": 1,
		"more": true
	}
}


Code Block
titleExample 2 – Search for “Doe” without limit:
{
	"entities": [
		{
			"id": 12345,
			"name": "John Doe"
		},
		{
			"id": 67890,
			"name": "Johnny Doe"
		}
	],
	"paging": {
		"offset": 0,
		"count": 2,
		"more": false
	}
}


Status codes:  200

One or more entities were found


404

No entities were found