Guest User!

You are not Sophos Staff.

Bulk Isolation API call

I've searched everywhere, but have not found the answer to exactly how to structure the data array for the API for isolation of multiple systems.

When I use the structure documented on the developer site, I can't get anything other than "error": "UnsupportedMediaType", Here is my latest error report:

{
"error": "UnsupportedMediaType",
"correlationId": "a389e2ce-5848-4830-a688-c33a4c868224",
"requestId": "21fc7364-7692-478f-9378-2b705eca5435"
}

The data section I'm using is like this:

--data '{"enabled":true,"ids":["<sophos_id>","<sophos_id>","<sophos_id>"]}'

where "<sophos_id>" can be replaced with the unique endpoint id strings I already retrieved from an endpoints api call. The request section looks like this:

--request POST "">api-<region>.central.sophos.com/.../isolation"

I've also tried using PATCH with the same result. The error I'm getting indicates that the --data request is incorrectly formatted, but no matter what adjustments I make to the array, I get the same error.

What am I missing?