Yeni Seri Oluşturur

Yeni seri oluşturur.

POST/edespatch/Series
Body
Namenullable string
IsActiveboolean
IsDefaultboolean
Response

Yeni seri oluşturur

Body
IDinteger (int32)
Namenullable string
IsDefaultboolean
IsActiveboolean
CreatedDatestring (date-time)
Detailsnullable array of SerieDetailResponse (object)
Request
const response = await fetch('/edespatch/Series', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "Name": "text",
  "IsDefault": false,
  "IsActive": false,
  "CreatedDate": "2024-05-29T23:20:23.265Z",
  "Details": [
    {
      "Year": "text",
      "LastIssueDate": "2024-05-29T23:20:23.265Z"
    }
  ]
}
var client = new RestClient("https://apitest.nilvera.com/edespatch/Series");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{"Name": "string",
  "IsActive": true,
  "IsDefault": true}";
request.AddParameter("application/json", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);