Hello there,
Updating a single existing NS Record using the API requires specific syntax depending on whether you are using REST or SOAP.
/REST/NSRecord/ POST — Create a new NS Record on the zone/node indicated.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–