Update the Current Configuration Settings

Updates the current configuration settings.

Note: For more information about this command, including descriptions of any path and request parameters, request body schema, response codes and schemas, and payload examples, refer to the online API reference for this command at the following web page:

Update the current configuration settings

URI

https://bartendercloud.com/api/librarian/configuration

Note: The bartendercloud.com domain that is referenced in the URI and in the code example that follows must be replaced with the contents of the DataCenterURI claim that is extracted from your access token. For more information, refer to Extracting the DataCenterURI Claim.

Path Parameters

None.

Query Parameters

None.

Example

Request body: UTF8-encoded ConfigurationSettings.

Response: Boolean. True when the update is successful.

Copy
var settings = new ConfigurationSettings();
settings.Aliases = new UriAliases();

// Define a mapping such that "librarian://Main/Design/Source/Folder1/" can be alternatively referenced by using the "librarian://Resources/Folder1/" URI.
settings.Aliases.Add(new UriAliasMap() { Input="librarian://Resources/", Output="librarian://Main/Design/Source"});

HttpClient client = new HttpClient();
HttpRequestMessage request = new HttpRequestMessage(new HttpMethod("PATCH"), new Uri("https://bartendercloud.com/api/librarian/configuration"))
{
   Content = new StringContent(JsonConvert.SerializeObject(settings), Encoding.UTF8, "application/json")
};

HttpResponseMessage msg = await client.SendAsync(request);

if (msg.IsSuccessStatusCode)
{
   return JsonConvert.DeserializeObject<bool>(await msg.Content.ReadAsStringAsync());
}