You should use position parameter. For example, using Web-API:
- name: Add rule - Admin access
uri:
url: "https://{{ inventory_hostname }}:443/web_api/add-access-rule"
method: POST
body_format: json
validate_certs: no
headers:
x-chkp-sid: "{{ cp_mgmt_session.json.sid }}"
body: '{ "layer": "{{ cp_mgmt_policy }} Network", "position": { "bottom": "Administration and monitoring" }, "name": "Admin access", "service":[ "SSH", "HTTPS" ], "source": "grp_Admins", "action": "Accept", "track": "Log", "custom-fields": { "field-1": "Ansible automation {{ date }}"} }'
"position": { "bottom": "Administration and monitoring" }
Administration and monitoring is the name of the section in this case.