Copter 4.0.3 Geofence protocol

Is the protocol for uploading / downloading the geofences (inclusion / exclusion) documented somewhere? I have a c++ interface I would like to update with it. I don’t see it here: https://ardupilot.org/copter/docs/common-polygon_fence.html and the general mavlink one here https://mavlink.io/en/services/mission.html doesn’t really address how do to multiple of each type of fence.

Thanks

There is a count of vertices which in turns tell the vehicle when that specific fence polygon is done upload. If there are four vertices then there should be four mission items in a row.

Ok I was wondering was that first parameter meant. So if there are eight points and each of the points have 8 as that param, the autopilot will interpret it at one big polygon. If all of the points have 4 as that param then the autopilot will interpret it as two polys of size 4

Correct as far as I remember. I haven’t look back at the code in detail