- # As no POST route is supported by the API, check for existing records and include them in the PATCH request in order not delete them.
- # This is required to support ACME v2 wildcard certificate creation, where two TXT records for the same domain name are created.
-
- _ionos_get_existing_records "$fulldomain" "$_zone_id"
-
- if [ "$_existing_records" ]; then
- _body="[$_new_record,$_existing_records]"
- else
- _body="[$_new_record]"
- fi
-
- if _ionos_rest PATCH "$IONOS_ROUTE_ZONES/$_zone_id" "$_body" && [ -z "$response" ]; then