Skip to main content
Version: v1.1.0

Create one environment

Create one environment

POST 

undefined/functions/v1/environments

Create one environment

Request

Header Parameters

    X-Organization-Id string

    The ID of the organization (this parameter is not required when using API key authorization)

    X-Project-Id string

    The ID of the project (Use this if you are not going to use the X-Project-Name)

    X-Project-Name string

    The Name of the project (Use this if you are not going to use the X-Project-Id)

Bodyrequired

    namestringrequired

    The name of the environment

    Possible values: non-empty and <= 30 characters, Value must match regular expression ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$

    connectorIdstring

    The id of the connector

    Possible values: non-empty and <= 32 characters

Responses

Success

Schema
    successboolean
    Default value: true
    timestampstring
    Default value: 2024-01-01T00:00:00.000Z
    statusCodenumber
    Default value: 200
    statusTextstring
    Default value: Success
    messagestring
    Default value: Message successfully
    localizationstring
    Default value: someone-method:success
    dataobject

Authorization: x-api-key

name: x-api-keytype: apiKeyin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "undefined/functions/v1/environments");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("x-api-key", "<x-api-key>");
var content = new StringContent("{\n \"name\": \"string\",\n \"connectorId\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
undefined/functions/v1
Auth
Parameters
— header
— header
— header
Body required
{
  "name": "string",
  "connectorId": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!