Skip to main content

Updates config info

PUT 

https://apis.<domain>/iot/edge/configs/:configId

Update is performed by replacing the current resource data with values provided in a request payload. Note that the owner, ID, init ID, init key, Connhex Thing ID and key cannot be changed.

Authorization Action:

core:config:update

Request

Path Parameters

    configId uuidrequired

    Unique Config identifier. It's the ID of the corresponding Thing.

Body

JSON-formatted document describing the updated thing.

    contentstringrequired
    namestringrequired

Responses

Config updated.

Authorization: http

name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://apis.<domain>/iot/edge/configs/:configId");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"content\": \"string\",\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
https://apis.<domain>
Auth
Parameters
— pathrequired
Body
{
  "content": "string",
  "name": "string"
}