Discussion in 'Developers' Forum' started by johannes1985, Oct 31, 2018.

  1. johannes1985

    johannes1985 Member


    I've been going through the json and soap api and noticed some parameters are missing. You can't set the following via the api for example:
    Title (gender in database)
    Contact firstname (contact_firstname in database)
    Webservers (web_servers in database)
    And quite a few more...

    Also, no ability to set CGI available ect...

    Any workaround or will the api be updated in the future?

    Edit - I checked the database, working now :)
    Last edited: Nov 1, 2018
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can set them by simply setting them in params array, they are just not mentioned in the docs yet.
    johannes1985 likes this.
  3. johannes1985

    johannes1985 Member

    Is it possible to generate a dkim key when creating a mail domain via the api?
    Also how to I create a lets encrypt certificate for a web domain via the api?
  4. johannes1985

    johannes1985 Member

    I got the ssl generate working with the following, please tell me if this is fine to do?

    done this with the sites_web_domain_update api endpoint.

    First call (Only if it wasn't already enabled):
    {'ssl': 'y', 'ssl_letsencrypt': 'y'}
    Second call:
    { 'ssl_state': 'Example',
    'ssl_locality': 'Example',
    'ssl_organisation': 'Example',
    'ssl_organisation_unit': 'Example',
    'ssl_country': 'DE',
    'ssl_domain': 'example.com',
    'ssl_action': 'create'
    Third call (After 'create' is not in ssl_action column anymore):
    { 'ssl_action': 'save'}
    ahrasis likes this.

Share This Page