This was a hard one but here it is ;) It consist of 2 playbooks. The main one will get the vm's in the categories via API calls and then call the other playbook to reboot the vm's. When you import it you will see how it is setup. Save the text to .pbk file and import in X-Play (Playbooks).
{"pcVersion":"7.6","pcUuid":"e443344f-02b5-45e7-89d6-9f9b658150a0","hashValue":"gmIPVspyquW7H68SkN87vJAFdM5f91UmEDijvmTOQYU=","actionRuleList":[{"uuid":"42d82c85-58d5-4c5c-baa5-31df22dd51c2","name":"Reboot - Guest reboot VM","isEnabled":true,"validated":true,"triggerList":[{"uuid":"4e03e2c7-4d69-4041-8b03-6cfa74a620e2","triggerType":{"type":"trigger_type","uuid":"","name":"manual_trigger"},"displayName":"Manual","inputParameterList":[{"name":"entity_type","value":"vm"}]}],"actionList":[{"uuid":"b1f512f7-3306-4c40-915b-3b36cd8a9ed9","actionType":{"type":"action_type","uuid":"","name":"vm_reboot_action"},"displayName":"VM Reboot","inputParameterList":[{"name":"is_guest","value":"true"},{"name":"target_vm","value":"{{trigger[0].source_entity_info}}"}],"maxRetries":2,"description":"Guest reboot of the VM"}],"isPrepackaged":false,"checkTriggerValidity":true,"description":"Helper playbook: performs a guest reboot (NGT) of the VM. Started by the playbook Reboot - Sunday 01:00 by category.","triggerFilterableInputParamName":"entity_type","triggerFilterableInputParamValue":"vm","ruleType":"kXPlay"},{"uuid":"ad70b259-fdaa-4271-91ae-2f45bfc345d6","name":"Reboot - Sunday 01:00 by category","isEnabled":false,"validated":true,"triggerList":[{"uuid":"4d2f2baf-4381-469f-96e1-9553a946445d","triggerType":{"type":"trigger_type","uuid":"","name":"time_trigger"},"displayName":"Time","inputParameterList":[{"name":"time_of_day","value":"T01:00:00+01:00"},{"name":"occurrence","value":"recurring"},{"name":"recurrence","value":"weekly"},{"name":"start_date","value":"2026-11-08"},{"name":"week_multiplier","value":"1"},{"name":"day_of_week","value":"0"}]}],"actionList":[{"uuid":"7c04d03b-cd74-410c-819f-1c1d9c92598a","actionType":{"type":"action_type","uuid":"","name":"rest_api_action"},"displayName":"REST API","inputParameterList":[{"name":"request_body","value":"{\"usage_type\": \"APPLIED_TO\", \"group_member_offset\": 0, \"group_member_count\": 500, \"category_filter\": {\"type\": \"CATEGORIES_MATCH_ANY\", \"kind_list\": [\"vm\"], \"params\": {\"Reboot\": [\"Group1\"]}}}"},{"name":"method","value":"POST"},{"name":"credential_type","value":"nutanix"},{"name":"headers","value":"Content-Type: application/json"},{"name":"url","value":"https://localhost:9440/api/nutanix/v3/category/query"},{"name":"auth_type","value":"no_auth"},{"name":"use_credential_store","value":"true"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Get VMs in Reboot:Group1","childActionUuids":["f7da3dfc-ab57-42d9-b4f1-b73f0c701d1e"]},{"uuid":"f7da3dfc-ab57-42d9-b4f1-b73f0c701d1e","actionType":{"type":"action_type","uuid":"","name":"parse_action"},"displayName":"String Parser","inputParameterList":[{"name":"format","value":"json"},{"name":"string_to_parse","value":"{{action[0].response_body}}"},{"name":"json_path","value":"$.results[*].kind_reference_list[*].uuid"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Extract VM UUIDs from Reboot:Group1","childActionUuids":["3a9aa58d-08e9-41aa-9df0-047e865d3432"]},{"uuid":"3a9aa58d-08e9-41aa-9df0-047e865d3432","actionType":{"type":"action_type","uuid":"","name":"string_patch"},"displayName":"String Patch","inputParameterList":[{"name":"replacement_string","value":"{\"action_rule_uuid\":\"42d82c85-58d5-4c5c-baa5-31df22dd51c2\",\"source_entity_info\":\"{\\\"type\\\":\\\"vm\\\",\\\"uuid\\\":\\\"$1\\\"}\"}"},{"name":"source_string","value":"{{action[1].parsed_data}}"},{"name":"template_type","value":"regexp"},{"name":"regexp","value":"\"([0-9a-f-]{36})\""}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Build trigger list for Reboot:Group1","childActionUuids":["65663ccf-f78b-4a8e-9a86-7fda94a5f18e"]},{"uuid":"65663ccf-f78b-4a8e-9a86-7fda94a5f18e","actionType":{"type":"action_type","uuid":"","name":"rest_api_action"},"displayName":"REST API","inputParameterList":[{"name":"request_body","value":"{\"trigger_type\":\"manual_trigger\",\"trigger_instance_list\":{{action[2].output_value}}}"},{"name":"method","value":"POST"},{"name":"credential_type","value":"nutanix"},{"name":"headers","value":"Content-Type: application/json"},{"name":"url","value":"https://localhost:9440/api/nutanix/v3/action_rules/trigger"},{"name":"auth_type","value":"no_auth"},{"name":"use_credential_store","value":"true"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Start guest reboot for Reboot:Group1","childActionUuids":["641d3ff5-74a4-4ba2-92a0-2b3f9a0974f7"]},{"uuid":"641d3ff5-74a4-4ba2-92a0-2b3f9a0974f7","actionType":{"type":"action_type","uuid":"","name":"wait_for_duration"},"displayName":"Wait for Some Time","inputParameterList":[{"name":"block_resume","value":"false"},{"name":"stop_after_time","value":"false"},{"name":"wait_duration","value":"15"},{"name":"post_check_trigger_validity","value":"false"}],"maxRetries":0,"description":"Wait 15 minutes","postCheckTriggerValidity":false,"childActionUuids":["f6736a83-a717-4791-b488-bb941de868ee"]},{"uuid":"f6736a83-a717-4791-b488-bb941de868ee","actionType":{"type":"action_type","uuid":"","name":"rest_api_action"},"displayName":"REST API","inputParameterList":[{"name":"request_body","value":"{\"usage_type\": \"APPLIED_TO\", \"group_member_offset\": 0, \"group_member_count\": 500, \"category_filter\": {\"type\": \"CATEGORIES_MATCH_ANY\", \"kind_list\": [\"vm\"], \"params\": {\"Reboot\": [\"Group2\"]}}}"},{"name":"method","value":"POST"},{"name":"credential_type","value":"nutanix"},{"name":"headers","value":"Content-Type: application/json"},{"name":"url","value":"https://localhost:9440/api/nutanix/v3/category/query"},{"name":"auth_type","value":"no_auth"},{"name":"use_credential_store","value":"true"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Get VMs in Reboot:Group2","childActionUuids":["5f96f695-eeec-46e8-ac26-e01fbc95722f"]},{"uuid":"5f96f695-eeec-46e8-ac26-e01fbc95722f","actionType":{"type":"action_type","uuid":"","name":"parse_action"},"displayName":"String Parser","inputParameterList":[{"name":"format","value":"json"},{"name":"string_to_parse","value":"{{action[5].response_body}}"},{"name":"json_path","value":"$.results[*].kind_reference_list[*].uuid"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Extract VM UUIDs from Reboot:Group2","childActionUuids":["5e4909a8-6552-46cd-ac6c-577bdfb04fba"]},{"uuid":"5e4909a8-6552-46cd-ac6c-577bdfb04fba","actionType":{"type":"action_type","uuid":"","name":"string_patch"},"displayName":"String Patch","inputParameterList":[{"name":"replacement_string","value":"{\"action_rule_uuid\":\"42d82c85-58d5-4c5c-baa5-31df22dd51c2\",\"source_entity_info\":\"{\\\"type\\\":\\\"vm\\\",\\\"uuid\\\":\\\"$1\\\"}\"}"},{"name":"source_string","value":"{{action[6].parsed_data}}"},{"name":"template_type","value":"regexp"},{"name":"regexp","value":"\"([0-9a-f-]{36})\""}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Build trigger list for Reboot:Group2","childActionUuids":["3e28a9f3-5a10-4bab-b99e-8068eced67a4"]},{"uuid":"3e28a9f3-5a10-4bab-b99e-8068eced67a4","actionType":{"type":"action_type","uuid":"","name":"rest_api_action"},"displayName":"REST API","inputParameterList":[{"name":"request_body","value":"{\"trigger_type\":\"manual_trigger\",\"trigger_instance_list\":{{action[7].output_value}}}"},{"name":"method","value":"POST"},{"name":"credential_type","value":"nutanix"},{"name":"headers","value":"Content-Type: application/json"},{"name":"url","value":"https://localhost:9440/api/nutanix/v3/action_rules/trigger"},{"name":"auth_type","value":"no_auth"},{"name":"use_credential_store","value":"true"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Start guest reboot for Reboot:Group2","childActionUuids":["bf7d1bea-1050-4ee3-b316-f61ee367c4c3"]},{"uuid":"bf7d1bea-1050-4ee3-b316-f61ee367c4c3","actionType":{"type":"action_type","uuid":"","name":"wait_for_duration"},"displayName":"Wait for Some Time","inputParameterList":[{"name":"block_resume","value":"false"},{"name":"stop_after_time","value":"false"},{"name":"wait_duration","value":"15"},{"name":"post_check_trigger_validity","value":"false"}],"maxRetries":0,"description":"Wait 15 minutes","postCheckTriggerValidity":false,"childActionUuids":["3f6dec50-489e-424b-9c90-234dbdddb816"]},{"uuid":"3f6dec50-489e-424b-9c90-234dbdddb816","actionType":{"type":"action_type","uuid":"","name":"rest_api_action"},"displayName":"REST API","inputParameterList":[{"name":"request_body","value":"{\"usage_type\": \"APPLIED_TO\", \"group_member_offset\": 0, \"group_member_count\": 500, \"category_filter\": {\"type\": \"CATEGORIES_MATCH_ANY\", \"kind_list\": [\"vm\"], \"params\": {\"Reboot\": [\"Group3\"]}}}"},{"name":"method","value":"POST"},{"name":"credential_type","value":"nutanix"},{"name":"headers","value":"Content-Type: application/json"},{"name":"url","value":"https://localhost:9440/api/nutanix/v3/category/query"},{"name":"auth_type","value":"no_auth"},{"name":"use_credential_store","value":"true"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Get VMs in Reboot:Group3","childActionUuids":["f8225b2c-47e2-4441-9c23-357d49d697d0"]},{"uuid":"f8225b2c-47e2-4441-9c23-357d49d697d0","actionType":{"type":"action_type","uuid":"","name":"parse_action"},"displayName":"String Parser","inputParameterList":[{"name":"format","value":"json"},{"name":"string_to_parse","value":"{{action[10].response_body}}"},{"name":"json_path","value":"$.results[*].kind_reference_list[*].uuid"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Extract VM UUIDs from Reboot:Group3","childActionUuids":["570b78e5-76ed-43de-8cf5-a02c8e288bcb"]},{"uuid":"570b78e5-76ed-43de-8cf5-a02c8e288bcb","actionType":{"type":"action_type","uuid":"","name":"string_patch"},"displayName":"String Patch","inputParameterList":[{"name":"replacement_string","value":"{\"action_rule_uuid\":\"42d82c85-58d5-4c5c-baa5-31df22dd51c2\",\"source_entity_info\":\"{\\\"type\\\":\\\"vm\\\",\\\"uuid\\\":\\\"$1\\\"}\"}"},{"name":"source_string","value":"{{action[11].parsed_data}}"},{"name":"template_type","value":"regexp"},{"name":"regexp","value":"\"([0-9a-f-]{36})\""}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Build trigger list for Reboot:Group3","childActionUuids":["40757010-0f86-4655-88bf-6e1e4ab9b850"]},{"uuid":"40757010-0f86-4655-88bf-6e1e4ab9b850","actionType":{"type":"action_type","uuid":"","name":"rest_api_action"},"displayName":"REST API","inputParameterList":[{"name":"request_body","value":"{\"trigger_type\":\"manual_trigger\",\"trigger_instance_list\":{{action[12].output_value}}}"},{"name":"method","value":"POST"},{"name":"credential_type","value":"nutanix"},{"name":"headers","value":"Content-Type: application/json"},{"name":"url","value":"https://localhost:9440/api/nutanix/v3/action_rules/trigger"},{"name":"auth_type","value":"no_auth"},{"name":"use_credential_store","value":"true"}],"shouldContinueOnFailure":true,"maxRetries":0,"description":"Start guest reboot for Reboot:Group3"}],"isPrepackaged":false,"checkTriggerValidity":true,"description":"Every Sunday at 01:00: guest reboot of all VMs in Reboot:Group1, 15 min later Reboot:Group2, 15 min later Reboot:Group3. Uses the playbook Reboot - Guest reboot VM.","ruleType":"kXPlay"}]}