Get a Folder's Metadata

Gets the metadata for a folder.

Metadata is a collection of name-to-object mappings. Data can be bound to the name for later retrieval. The name (or "key") must be unique and is case-sensitive. The developer is responsible for setting the object value that is associated with this key. The recommended data format is JSON.

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:

Get a folder's metadata

URI

https://bartendercloud.com/api/librarian/folders/{folderId}/metadata

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

folderId

Type: String

Specifies the ID of the folder. Required.

Query Parameters

None.

Example

Request body: None.

Response: System.Collections.Generic.Dictionary<string, object>

Copy
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", $"Bearer {accessToken}");

// Assume that folderId is the ID of the target folder.
HttpResponseMessage msg = await client.GetAsync($"https://bartendercloud.com/api/librarian/folders/{folderId}/metadata");

if (msg.IsSuccessStatusCode)
{
   var response = await msg.Content.ReadAsStringAsync();
   return JsonConvert.DeserializeObject<System.Collections.Generic.Dictionary<string, object>>(response);
}