Update Records
It is possible to update existing records using REST. Complete or partial updates can be made by doing an HTTP POST to the record ID that you want to update.
/rest/<type>/<id>
Syntax
https://<username>:<password>@<host>/rest/<type>/<id>
POST
Update an existing container.
Example request
Update container Id 10 with a new name and severity.
curl -k -u admin:changeme https://localhost/rest/container/10 \ -d '[ { "name": "my new container name", "severity": "low" } ]'
Example success response
A successful POST will return the success message and Id.
{ "id": 10, "success": true }
Example failure response
A failed POST will return the failure message and reason.
{ "failed": true, "message": "<reason>" }
Any record that can be created using the REST API can be updated as described.
Query for Data | Bulk Create and Update Records |
This documentation applies to the following versions of Splunk® Phantom (Legacy): 4.8, 4.9, 4.10, 4.10.1, 4.10.2, 4.10.3, 4.10.4, 4.10.6, 4.10.7
Feedback submitted, thanks!