Forum Discussion

martek_58308's avatar
martek_58308
Icon for Nimbostratus rankNimbostratus
Aug 03, 2016
Solved

REST - setSyncLeader in device-group

Hi guys,   Need a help with another bit of REST config - bellow is TMSH command to do this   modify cm device-group DEVICE_GROUP_NAME devices modify { DEVICE_NAME { set-sync-leader } }   a...
  • John_Gruber_432's avatar
    Aug 03, 2016

    Terse answer.. I am typing on phone traveling..

     

    You woukd not use POST in the device group as you are working with an existing group, not creating one.

     

    I believe you want to use the PATCH verb on the full devicegroup / devices / device URL.