Runs apt update against only the NetSapiens repositories (/etc/apt/sources.list.d/netsapiens-*) on one server. It skips Ubuntu and third-party repositories, so it finishes much faster than POST /apt/update/{hostname}. Run it before POST /apt/install/{hostname} to pick up new NetSapiens package versions. Lists already downloaded for other repositories are kept. It installs nothing. Requires Super User scope. A NetSapiens repository that was removed keeps its lists until the next full POST /apt/update/{hostname}.
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Query Params
Header Params
Body Params application/json
Examples
Responses
🟢200OK
text/plain
apt output as plain text, streamed while the command runs. The connection stays open until apt finishes, which can take several minutes. The text starts with an Executing command: line and ends with Command executed successfully with exit code: 0 or Command failed with exit code: <n>. Both lines carry ANSI color codes. A failed apt run still answers 200, so read the last line, not the status code. If another apt operation holds the apt lock, the request waits up to 20 minutes for it, then answers 409 instead of streaming.