added Rename Agent

A new endpoint has been added to the API to allow users to rename agents. The endpoint accepts a string body parameter called name to rename the agent.

The new endpoint is described in the following table:

New EndpointNameDescription
PATCH /scanners/null/agents/{agent_id}Rename agentRenames an agent


For example, to rename an agent with ID 4248431 to MYAGENT, you could use the following cURL request:

curl --request PATCH \
     --url \
     --header 'Accept: application/json' \
     --header 'Content-Type: application/json' \
     --header 'X-ApiKeys: accessKey=<YOURKEY>;secretKey=<YOURKEY>' \
     --data '{"name":"MYAGENT"}'