Skip to main content
Version: v1.1.1

Update one environment

Update one environment

PUT 

undefined/functions/v1/environments/:environmentIdentifier

Update one environment

Request

Path Parameters

    environmentIdentifier stringrequired

    The ID or Name of the environment

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: >= 3 characters and <= 30 characters, Value must match regular expression ^[a-z0-9]([a-z0-9-]*[a-z0-9])?$

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
    data object
    idstring
    Default value: 1231f891-5db6-419a-8a9c-3963b2bcb425
    namestring
    Default value: Test organization
    descriptionstring
    Default value: test description

Authorization: x-api-key

name: x-api-keytype: apiKeyin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "undefined/functions/v1/environments/:environmentIdentifier");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("x-api-key", "<x-api-key>");
var content = new StringContent("{\n \"name\": \"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
— pathrequired
— header
— header
— header
Body required
{
  "name": "string"
}
ResponseClear

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