Skip to main content
POST
/
projects
/
{projectName}
/
connections
/
{connectionName}
/
sqlSource
Create SQL source from statement
curl --request POST \
  --url https://{organization}.data.credibledata.com/api/v0/projects/{projectName}/connections/{connectionName}/sqlSource \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sqlStatement": "<string>"
}
'
{
  "resource": "<string>",
  "source": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectName
string
required

Name of the project Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$
connectionName
string
required

Name of the connection Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$

Body

application/json

SQL statement to fetch the SQL source

sqlStatement
string

Response

SQL source information

resource
string

Resource path to the sql source.

source
string