Yanıt Şablonu Oluşturur

Yanıt şablonu oluşturur.

POST/edespatch/AnswerTemplates
Body
Namenullable string
IsActiveboolean
IsDefaultboolean
Base64Stringnullable string
Response

Yanıt şablonu oluşturur.

Body
IDinteger (int32)
UUIDnullable string
Namenullable string
IsActiveboolean
IsDefaultboolean
CreationDatestring (date-time)
TemplateIDinteger (int32)
Request
const response = await fetch('/edespatch/AnswerTemplates', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "UUID": "text",
  "Name": "text",
  "IsActive": false,
  "IsDefault": false,
  "CreationDate": "2024-11-21T06:29:37.827Z"
}
var options = new RestClientOptions("https://apitest.nilvera.com")
{
    MaxTimeout = -1,
};

var client = new RestClient(options);
var request = new RestRequest("/edespatch/AnswerTemplates", Method.Post);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "APIKEY");

var body = new
{
    Name = "string",
    IsActive = true,
    IsDefault = true,
    Base64String = "string"
};

request.AddJsonBody(body);
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);

Last updated