Appearance
project/addjob
Links an existing job to a project.
Method and path
POST /project/addjob
Authentication
Authentication is required. See Authentication.
Permissions
Accessible to tier 1 and 2 users.
Request headers
| Header | Required | Description |
|---|---|---|
X-Api-Key or X_API_KEY | yes | API key. |
Content-Type | yes | application/json. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
project_id | integer | yes | Project identifier. |
job_id | integer | yes | Job identifier. |
Example request
bash
curl -X POST "$SIGNAL_API_BASE_URL/project/addjob" \
-H "X-Api-Key: $SIGNAL_API_KEY" \
-H "Content-Type: application/json" \
-d '{"project_id": 123, "job_id": 456}'json
{
"project_id": 123,
"job_id": 456
}Example response
json
{
"id": 456,
"label": "Example Job",
"type": "tw",
"freq": 3600,
"notes": "Example job notes",
"lastrun": null,
"active": true,
"limited": false,
"searchLang": "en",
"search": "(example OR keyword)",
"options": null,
"toRestart": false,
"efficiency": null,
"projects": [123]
}Response fields
| Field | Type | Description |
|---|---|---|
id | integer | Job identifier. |
label | string | null |
type | string | null |
freq | integer | null |
notes | string | null |
lastrun | integer | null |
active | boolean | null |
limited | boolean | Limited flag. |
searchLang | string | null |
search | string | null |
options | object | null |
toRestart | boolean | null |
efficiency | number | null |
projects | array<integer> | Project IDs currently linked to the job. |
Notes
- Some validation failures are returned as HTTP
200with an error object.