Update a pack
Spaces method and path for this operation:
<div><span class="operation-verb put">put</span> <span class="operation-path">/s/{space_id}/api/osquery/packs/{id}</span></div>Refer to Spaces for more information.
Update a query pack using the pack ID.
info You cannot update a prebuilt pack.
Path parameters
The ID of the pack.
The pack ID.
Request body
Example request
{
"name": "updated_my_pack_name"
}Response
Indicates a successful call.
Example response
{
"data": {
"created_at": "2025-02-26T13:37:30.452Z",
"created_by": "elastic",
"description": "My pack",
"enabled": true,
"name": "updated_my_pack_name",
"policy_ids": [
"my_policy_id"
],
"queries": {
"ports": {
"ecs_mapping": {
"client.port": {
"field": "port"
}
},
"interval": 60,
"query": "SELECT * FROM listening_ports;",
"removed": false,
"snapshot": true,
"timeout": 120
}
},
"saved_object_id": "1c266590-381f-428c-878f-c80c1334f856",
"shards": {
"47638692-7c4c-4053-aa3e-7186f28df349": 35,
"5e267651-fe50-443e-8d3f-3bbc9171b618": 58
},
"updated_at": "2025-02-26T13:40:16.297Z",
"updated_by": "elastic",
"version": 1
}
}Changes
Changed in 2 of the 176 revisions of this API.12
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
//new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
added the optional property
/to the response with the statusresponse-optional-property-added
- ○
- ○
added the new optional request property
//new-optional-request-property
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
Of the 176 revisions, 20 have no diff computed.