Şablonu Siler

Şablonu siler.

DELETE/evoucher/Templates/{id}
Path parameters
id*integer (int32)
Response

Şablonu siler.

Body
IDinteger (int32)
UUIDnullable string
Namenullable string
IsActiveboolean
IsDefaultboolean
CreationDatestring (date-time)
TemplateIDinteger (int32)
Request
const response = await fetch('/evoucher/Templates/{id}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "UUID": "text",
  "Name": "text",
  "IsActive": false,
  "IsDefault": false,
  "CreationDate": "2024-06-21T16:33:35.805Z"
}
var client = new RestClient("https://apitest.nilvera.com/evoucher/Templates/123456");
client.Timeout = -1;
var request = new RestRequest(Method.DELETE);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"["3fa85f64-5717-4562-b3fc-2c963f66afa6"]";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);