POST
/
api
/
projects
/
{projectName}
/
jobs
curl --request POST \
  --url http://127.0.0.1:47334/api/projects/{projectName}/jobs \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "query": "<string>",
  "if_query": "<string>",
  "start_at": "2023-11-07T05:31:56Z",
  "end_at": "2023-11-07T05:31:56Z",
  "schedule_str": "<string>"
}'
{
  "name": "<string>",
  "query": "<string>",
  "if_query": "<string>",
  "start_at": "2023-11-07T05:31:56Z",
  "end_at": "2023-11-07T05:31:56Z",
  "schedule_str": "<string>"
}

The REST API endpoints can be used with MindsDB running locally at http://127.0.0.1:47334/api.

Path Parameters

projectName
string
required

The name of the project

Body

application/json
name
string

Name of the job

query
string

Tasks to be executed by the job

if_query
string

Optional. Condition to be fulfilled before the job executes

start_at
string

Optional. Start date/time of the job

end_at
string

Optional. End date/time of the job

schedule_str
string

Periodicity of the job (e.g. every 1 minute)

Response

200
application/json
Job created
name
string
query
string

Tasks to be executed by the job

if_query
string

Optional. Condition to be fulfilled before the job executes

start_at
string

Optional. Start date/time of the job

end_at
string

Optional. End date/time of the job

schedule_str
string

Periodicity of the job (e.g. every 1 minute)