Yeni Seri Oluşturur

Yeni seri oluşturur.

POST/eproducer/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('/eproducer/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-11-21T09:16:35.567Z",
  "Details": [
    {
      "Year": "text",
      "LastIssueDate": "2024-11-21T09:16:35.567Z"
    }
  ]
}
var client = new RestClient("https://apitest.nilvera.com/eproducer/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);