Vodia PBX API (version 58.0 and above)

Download and Upload Domain Tar Files

  • The creation of the domain should be the first step which can be seen here Domains
  • Download the TAR File

    /rest/system/domains
    Example:

    Request:

    curl -u admin:password GET -D - http://<PBX_IP:PORT>/rest/system/domains/<domain_name> > Filename.tar

    Upload the TAR File

    /rest/system/domains
    Example:

    Request:

    curl -u username:password --upload-file Filename.tar http://<PBX_IP:PORT>/rest/system/domains/<Existing_domain_name_where_to_upload_tar>

    Response:

    Response Code Description
    Success 200 OK
    Invalid ID supplied 400 Only authenticated a Admins can access the data
    Permission Denied 403 Forbidden
    Not Found 404 The id of the User was not found or there are errors in the URL.