# Jobs

Operations for jobs

## Start the job with the given name and group name. The job will only be started, if it is not already running.

> \<b>Required Roles\</b>: \<em>ApiJobs\</em>

```json
{"openapi":"3.0.1","info":{"title":"FactFinder REST API","version":"v5"},"tags":[{"name":"jobs","description":"Operations for jobs"}],"servers":[{"url":"https://vector-demo.fact-finder.de/fact-finder/","description":"Generated server url"}],"security":[{"basicAuth":[]},{"oAuth2":["jobs"]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"},"oAuth2":{"type":"oauth2","flows":{"password":{"tokenUrl":"oauth/token","scopes":{"public_queries":"","import":"","database":"","config":"","analytics":"","jobs":"","monitor":"","manage":"","users":""}}}}},"schemas":{"JobTriggerResult":{"required":["status"],"type":"object","properties":{"errorMessage":{"type":"string","description":"The error message describing why the job could not be completed."},"jobGroup":{"type":"string","description":"The group of the triggered job."},"jobName":{"type":"string","description":"The name of the triggered job."},"status":{"type":"string","description":"Results of the attempt to trigger the job.","enum":["SUCCESS","FAILURE"]}}},"ApiError":{"required":["error"],"type":"object","properties":{"error":{"type":"string","description":"A short error description"},"errorDescription":{"type":"string","description":"A description of the error cause"},"stacktrace":{"type":"array","description":"The stacktrace from the error (will only be transmitted when the query parameter verbose=true was added to the request)","items":{"type":"string"}}},"description":"Contains information which will be returned when an error occurs."}}},"paths":{"/rest/v5/jobs/startJob":{"post":{"tags":["jobs"],"summary":"Start the job with the given name and group name. The job will only be started, if it is not already running.","description":"<b>Required Roles</b>: <em>ApiJobs</em>","operationId":"startJob","parameters":[{"name":"jobGroup","in":"query","required":true,"schema":{"type":"string"}},{"name":"jobName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobTriggerResult"}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}
```

## Start the jobs with the given group name. A job will only be started, if it is not already running.

> \<b>Required Roles\</b>: \<em>ApiJobs\</em>

```json
{"openapi":"3.0.1","info":{"title":"FactFinder REST API","version":"v5"},"tags":[{"name":"jobs","description":"Operations for jobs"}],"servers":[{"url":"https://vector-demo.fact-finder.de/fact-finder/","description":"Generated server url"}],"security":[{"basicAuth":[]},{"oAuth2":["jobs"]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"},"oAuth2":{"type":"oauth2","flows":{"password":{"tokenUrl":"oauth/token","scopes":{"public_queries":"","import":"","database":"","config":"","analytics":"","jobs":"","monitor":"","manage":"","users":""}}}}},"schemas":{"JobTriggerResult":{"required":["status"],"type":"object","properties":{"errorMessage":{"type":"string","description":"The error message describing why the job could not be completed."},"jobGroup":{"type":"string","description":"The group of the triggered job."},"jobName":{"type":"string","description":"The name of the triggered job."},"status":{"type":"string","description":"Results of the attempt to trigger the job.","enum":["SUCCESS","FAILURE"]}}},"ApiError":{"required":["error"],"type":"object","properties":{"error":{"type":"string","description":"A short error description"},"errorDescription":{"type":"string","description":"A description of the error cause"},"stacktrace":{"type":"array","description":"The stacktrace from the error (will only be transmitted when the query parameter verbose=true was added to the request)","items":{"type":"string"}}},"description":"Contains information which will be returned when an error occurs."}}},"paths":{"/rest/v5/jobs/startJobsWithGroupName":{"post":{"tags":["jobs"],"summary":"Start the jobs with the given group name. A job will only be started, if it is not already running.","description":"<b>Required Roles</b>: <em>ApiJobs</em>","operationId":"startJobsWithGroupName","parameters":[{"name":"jobGroup","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobTriggerResult"}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}
```

## Start the jobs with the given name. A job will only be started, if it is not already running.

> \<b>Required Roles\</b>: \<em>ApiJobs\</em>

```json
{"openapi":"3.0.1","info":{"title":"FactFinder REST API","version":"v5"},"tags":[{"name":"jobs","description":"Operations for jobs"}],"servers":[{"url":"https://vector-demo.fact-finder.de/fact-finder/","description":"Generated server url"}],"security":[{"basicAuth":[]},{"oAuth2":["jobs"]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"},"oAuth2":{"type":"oauth2","flows":{"password":{"tokenUrl":"oauth/token","scopes":{"public_queries":"","import":"","database":"","config":"","analytics":"","jobs":"","monitor":"","manage":"","users":""}}}}},"schemas":{"JobTriggerResult":{"required":["status"],"type":"object","properties":{"errorMessage":{"type":"string","description":"The error message describing why the job could not be completed."},"jobGroup":{"type":"string","description":"The group of the triggered job."},"jobName":{"type":"string","description":"The name of the triggered job."},"status":{"type":"string","description":"Results of the attempt to trigger the job.","enum":["SUCCESS","FAILURE"]}}},"ApiError":{"required":["error"],"type":"object","properties":{"error":{"type":"string","description":"A short error description"},"errorDescription":{"type":"string","description":"A description of the error cause"},"stacktrace":{"type":"array","description":"The stacktrace from the error (will only be transmitted when the query parameter verbose=true was added to the request)","items":{"type":"string"}}},"description":"Contains information which will be returned when an error occurs."}}},"paths":{"/rest/v5/jobs/startJobsWithName":{"post":{"tags":["jobs"],"summary":"Start the jobs with the given name. A job will only be started, if it is not already running.","description":"<b>Required Roles</b>: <em>ApiJobs</em>","operationId":"startJobsWithName","parameters":[{"name":"jobName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobTriggerResult"}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fact-finder.com/api-reference/jobs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
