Skip to main content

Get Presets API version

Description: This method returns the Presets API document version. The version changes whenever this API document changes.

Request parameters:​

This method does not require request parameters.

Request example:​

GET
CURL:

curl 'http://localhost:8160/v1/presets/api_version' \
--header 'Api-Token: YOUR_SECRET_TOKEN'

C#:

using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("http://localhost:8160/v1/presets/api_version"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}

Cube:

http://localhost:8160/v1/presets/api_version

API response:​

Response codeResult
200 OKPresets API document version
401 UnauthorizedUnauthorized
403 ForbiddenAccess forbidden

Successful response (200 OK):

"1.0"