Skip to content
NewDatafor 10.02 is out: subscriptions and metric alerts, in Slack and Teams
Datafor

Connections

Check if a connection exists

Check whether a data connection name is in use and readable by the caller.

Reports whether a data connection with the given name exists and the caller can read it.

Method and path GET /plugin/datafor-modeler/api/connection/checkexists
Permission Any signed-in user
Content type none (query string)

exists is false both when no connection has the name and when the caller cannot read it, so a false does not guarantee that Add a connection will accept the name.

Parameters

Name In Type Required Description
name query string Yes Connection name.

Example

curl -u admin:password -G \
  "http://localhost:28080/datafor/plugin/datafor-modeler/api/connection/checkexists" \
  --data-urlencode "name=Sales DW"
{ "success": true, "exists": true }

Errors

Response When
{"success": false, "msg": "..."} The check failed, for example in a shared-link session.

Related: Get connections