Skip to main content

Update Process Set Policy

This API updates an existing process set policy, including its name, description, and processes.

Endpoint Details

URL/v1/config-agent/process-sets/id
MethodPUT
AuthorizationBearer Token

Request Headers

HeaderTypeDescription
Content-TypeStringMust be application/json

Request Path

To update an existing process set policy, use the following request format:

/v1/config-agent/process-sets/9cc1e6db-67fa-4867-84bd-a821b7d74e77

Path Parameter

ParameterTypeDescription
idUUIDUnique identifier of the process set policy to update

Request Body

Use the following format to make a request:

JSON Request
{
"name": "dummy process set",
"description": "add description process set",
"processes": [
{
"directory": "/usr/bin",
"file": "python"
}
]
}

Body Parameters

ParameterTypeDescription
nameStringUpdated name of the process set policy
descriptionStringOptional description of the process set policy
processesArrayList of processes included in the policy
directoryStringDirectory path where the process is located
fileStringFile name of the process

Response

Here is an example response when the data is successfully updated:

Response
{
"data": {
"id": "9cc1e6db-67fa-4867-84bd-a821b7d74e77",
"tenant_id": "5ebde17c-01a1-4394-977b-9e611250cf5d",
"name": "Dummy Process Set",
"description": "add description process set",
"processes": [
{
"directory": "/usr/bin",
"file": "python"
}
],
"created_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"created_by_name": "Admin Aplikasi",
"updated_by": "0a937c60-0ed4-4d06-870a-2e284b54287d",
"updated_by_name": "Admin Aplikasi",
"created_at": 1785221207,
"updated_at": 1785221324
}
}

Field Descriptions

FieldTypeDescription
idUUIDUnique identifier of the process set policy
tenant_idUUIDIdentifier of the tenant that owns the process set policy
nameStringName of the process set policy
descriptionStringDescription of the process set policy
processesArrayList of processes included in the policy
directoryStringDirectory path where the process is located
fileStringFile name of the process
created_byUUIDIdentifier of the user who created the policy
created_by_nameStringDisplay name of the user who created the policy
updated_byUUIDIdentifier of the user who last updated the policy
updated_by_nameStringDisplay name of the user who last updated the policy
created_atIntegerCreation timestamp in Unix format
updated_atIntegerLast update timestamp in Unix format

info
  • A valid Bearer Token is required to access this endpoint.
  • The id path parameter must reference an existing process set policy.
  • When file is set to * or left empty, the policy applies to all files in the directory.
  • Unix timestamp fields can be converted to a human-readable date and time format as needed.