Skip to navigation

Update Agent Insights job

View as Markdown

Partially updates the Agent Insights job for a project (e.g. status; never deletes). Returns the updated job, or 404 if none exists.

Path parameters

projectIdstringRequiredformat: "uuid"

Request

This endpoint expects an object.
statusenumRequired
New status for the job
Allowed values:

Response

Job updated
project_idstringRead-onlyformat: "uuid"
idstringOptionalRead-onlyformat: "uuid"
statusenumOptionalRead-only
Allowed values:
auto_first_run_enrolledbooleanOptionalRead-only
auto_first_run_atdatetimeOptionalRead-only
last_scan_atdatetimeOptionalRead-only
last_failure_reasonstringOptionalRead-only
last_failure_detailstringOptionalRead-only
last_failed_atdatetimeOptionalRead-only
guidancestringOptionalRead-only

Project guidance sent to every run; null when none

guidance_updated_bystringOptionalRead-only
Who last saved the guidance
guidance_updated_atdatetimeOptionalRead-only
When the guidance was last saved
guidance_versionintegerOptionalRead-only

Bumped each time the guidance text changes; 0 = never saved

results_guidance_versionintegerOptionalRead-only

Guidance version the current results were produced with; null = no run since guidance existed

created_atdatetimeOptionalRead-only
created_bystringOptionalRead-only
last_updated_atdatetimeOptionalRead-only
last_updated_bystringOptionalRead-only

Errors

404
Not Found Error