Stok Günceller
Authorizations
Body
IDinteger · int32Optional
Namestring | nullableOptional
UnitCodestring | nullableOptional
UnitNamestring | nullableOptional
Pricenumber · doubleOptional
SellerCodestring | nullableOptional
BuyerCodestring | nullableOptional
ManufacturerCodestring | nullableOptional
IsActivebooleanOptional
GTIPCodestring | nullableOptional
Brandstring | nullableOptional
Modelstring | nullableOptional
Descriptionstring | nullableOptional
Notestring | nullableOptional
ShippingCodestring | nullableOptional
DeliveryCodestring | nullableOptional
TaxPercentnumber · doubleOptional
Responses
200
Stok Günceller.
application/json
Responseboolean
400
Geçersiz İstek | Gönderdiğiniz istekte geçersiz veriler bulunduğu anlamında gelmektedir | Detaylar için tıklayınız
403
Yetkisiz Erişim | Bu uca erişmek için gerekli yetkiye sahip olmadığınız durumda dönülür
404
Parametrede belirtilen kayıt bulunamadığında dönülür | Detaylar için tıklayınız
put
PUT /general/Stocks HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 291
{
"ID": 1,
"Name": "text",
"UnitCode": "text",
"UnitName": "text",
"Price": 1,
"SellerCode": "text",
"BuyerCode": "text",
"ManufacturerCode": "text",
"IsActive": true,
"GTIPCode": "text",
"Brand": "text",
"Model": "text",
"Description": "text",
"Note": "text",
"ShippingCode": "text",
"DeliveryCode": "text",
"TaxPercent": 1
}
true
var client = new RestClient("https://apitest.nilvera.com/general/Stocks");
client.Timeout = -1;
var request = new RestRequest(Method.PUT);
request.AddHeader("Authorization", "Bearer <API KEY>");
request.AddHeader("Content-Type", "application/json");
var body = @"{"ID": 0,
"Name": "string",
"UnitCode": "string",
"UnitName": "string",
"Price": 0,
"SellerCode": "string",
"BuyerCode": "string",
"ManufacturerCode": "string",
"IsActive": true,
"GTIPCode": "string",
"Brand": "string",
"Model": "string",
"Description": "string",
"Note": "string",
"ShippingCode": "string",
"DeliveryCode": "string",
"TaxPercent": 0}";
request.AddParameter("application/json", body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Last updated