POST Environment (Create)

POST Environment (Create)

To create an Environment account, use a POST with the Environment API found at our API Explorer.

On our Cloud service, this API is available via SSL secured HTTPS connection using the REST GET, POST and PUT verbs.

The format query string parameter controls the desired response format.  Specify either XML or JSON.

/api/v2/environment?format=xml/json

This API endpoint implements pagination, and as such, you must cater for this when you connect to our platform. You can learn more about pagination in our API overview.


Endpoints & API Explorer

NodeAPI EndpointAPI Explorer
USapi/v2/environmentModel Description/Schema & Parameters

Parameters #

The POST verb on the Environment API allows you to create a new environment in your Enterprise Toolkit Master account. The required and optional parameters for a POST call to the User API are outlined below: 

NameTypeDescriptionRequired
NameStringName of the new environment you want to create
DescriptionStringA description of the new environment you want to create
CountryStringThe ISO 3166-2 code for this Enterprise Toolkit account’s base country.
TimeZoneStringName of timezone, must match exactly with one of the values in this list
DateFormatString
TimeFormatString
FillRepeatRowsBooleanWhether or not to copy down repeatable answer values when exporting repeatable data to tabular formats like CSV
SendInviteEmailsToString
DefaultSenderEmailStringThe email address to use as the default for emails sent from the platform by this Enterprise Toolkit account
DefaultSenderNameStringThe sender name to use as the default for emails sent from the platform by this Enterprise Toolkit account
GlobalFormRESTUrlString
GlobalTaskRESTUrlString
GlobalDataSourceGETUrlString
RetireDateDate
IndustryString
AddSupportUserBooleanWhether or not to automatically create a support user as part of the Enterprise Toolkit creation
SupportUserEmailStringAllows you to specify the email address of the support user to be created. If blank, then DefaultSenderEmail is used.
CopyCustomIconsBooleanBy default, custom icons are not copied into new contexts. Set to ‘True’ to preserve the custom icon settings.
IntegrationKeyStringYour unique Integration Key found on the Organisation Setup page of the secure website.
MasterIdIntegerThe Organization ID of your Master account.

Example

Given that the API is REST-based, you can access the API directly via your web browser to test it using a REST plugin like the Postman plugin for Google Chrome.

Request URL

https://eforms.mobileform.net:443/api/v2/environment

Request Body

{
"Name": "UK Environment",
"Description": "New Location Environment",
"Country": "GB",
"TimeZone": "GMT Standard Time",
"DateFormat": "dd-MM-yyyy",
"TimeFormat": "HH:mm",
"DefaultSenderEmail": "defaultsender@testorg.com",
"DefaultSenderName": "Support User",
"Industry": "Industry Example",
"AddSupportUser": true,
"SupportUserEmail": "supportuser@testorg.com",
"IntegrationKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"MasterId": xxxxx
}

Response Code

200

Response Body

{
"Environment": {
"Id": xxxxx,
"TimeZoneOffSet": 0,
"Status": "Active",
"IntegrationKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"MasterId": xxxxx
},
"SupportUser": {
"Id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Type": "Premium",
"FirstName": "Environment",
"LastName": "Support",
"Email": "defaultsender@testorg.com",
"Status": "Invited",
"TimeZone": "GMT Standard Time",
"TimeZoneOffSet": 60,
"Country": "GB",
"CreatedDate": "2020-08-18T13:51:24.7204761Z",
"LastUpdated": "2020-08-18T13:51:24.7517519Z",
"LastActivity": "1990-01-01T00:00:01.0000000Z",
"Folders": ["Test Folder", "Admin Folder", "User Folder"],
"Groups": ["Test Group", "Admin Group", "User Group"],
"CompanyId": xxxxx
}
}
    • Related Articles

    • PUT Environment (Update)

      To update an Environment account, use a PUT with the Environment API found at our API Explorer. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST GET verb. The format query string parameter controls the desired ...
    • POST Repository API (Create Installations)

      Using this API endpoint and the POST verb, you can install/update repository item content in a target company account. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST POST verb. The format query string parameter ...
    • POST Repository API (Create)

      The POST Repository API registers new content from a company account into the Repository. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST POST verb. The format query string parameter controls the desired response ...
    • POST Folder

      The POST Folder API creates a new folder in the company’s account. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST POST verb. The format query string parameter controls the desired response format. Specify either ...
    • POST Usergroup

      This API allows you to create a new user group. On the Cloud, this API is available via SSL-secured HTTPS connection using the REST POST verb. The format query string parameter controls the desired response format. Specify either XML or JSON. ...