API - How to create domain with own domain_id?

Discussion in 'Developers' Forum' started by martinhe, Aug 26, 2019.

  1. martinhe

    martinhe New Member

    Hi, please for help.

    1. Using the API I create a domain with "domain_id" = 31
    2. Log in to ISPConfig to verify that the domain has been created.
    3. I find that it was created, but the 31 variable was ignored. Instead, the domain had 65 of the auto increment.

    Do you have any tips why I cannot choose my own domain_id via API?

    Thank you very much.

    $paramsDomena = array(
    'domain_id' => 31,
    'server_id' => 1,
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Use the parameter "_primary_id" to set it.

Share This Page