Update a program
/api/v1/programs/{program_uuid}
operationId: program.update
Base: https://portal.watcheye.com.au/api/v1/programs/{program_uuid}
Update an existing program using PATCH semantics: only the fields you supply are changed,
everything else is left as-is. Pass null to clear an optional field.
Note: when changing event_grouping to separate you must also supply
max_separate_events. Conversely, when changing it to grouped, any supplied
max_separate_events is ignored and the stored value is cleared.
Path parameters
| Field | Description |
|---|---|
program_uuidrequired |
string (uuid) The program UUID |
Request body
Content type application/json.
The program fields to update. All fields are optional.
| Field | Description |
|---|---|
program_name |
string [2..255 characters] |
status |
string |
report_emails |
array of strings [max 5 items] or null |
data_retention_months |
integer |
event_grouping |
string |
max_separate_events |
integer [5..100] or null |
default_risk_level |
string or null The risk level pre-filled when a new entity is added to this program. When set to |
Responses
Program updated
application/json
| Field | Description |
|---|---|
data |
object |
data. |
string (uuid) The program's UUID |
data. |
string A short obfuscated public identifier for the program (e.g. "P-123-456-789") |
data. |
string The display name of the program |
data. |
string Lifecycle status of the program:
|
data. |
array of strings Email addresses (max 5) that receive event report notifications for this program |
data. |
integer How long, in months, to keep entity data for. Permitted values: |
data. |
string Whether events from the same entity should be grouped into one event:
|
data. |
integer or null When |
data. |
string or null The risk level pre-filled when a new entity is added to this program:
|
data. |
string (date-time) ISO 8601 timestamp at which the program was created |
data. |
string (date-time) ISO 8601 timestamp at which the program was last updated |
api_reference |
string (uuid) |