To get naming series of Webhook
curl -s -X POST "http://einvoice/api/method/runserverobj" \
-H 'Content-Type: application/json' \
-H "Authorization: token 71d....af2:4eb....19f" \
--data-raw '{ "method": "get_options", "docs": "{\"name\":\"Naming Series\",\"doctype\":\"Naming Series\",\"select_doc_for_series\":\"Webhook\",\"modified\":\"2020-05-12 13:44:39.025598\"}"}'
To update naming series of Webhook
curl -s -X POST "http://einvoice/api/method/runserverobj" \
-H 'Content-Type: application/json' \
-H "Authorization: token 71d....af2:4eb....19f" \
--data-raw '{ "method": "update_series", "docs": "{\"name\":\"Naming Series\",\"doctype\":\"Naming Series\",\"select_doc_for_series\":\"Webhook\",\"set_options\":\"\\nHOOK-.####\\nWHK-.####\",\"modified\":\"2020-05-12 13:44:39.025598\"}"}'
Note: modified date field is required internally. Get modified date of Naming Series before making this call.