A PARTIAL update: every field from POST /v1/company/pickup-points is accepted here and all are optional, so send only what changes. Anything you do send is validated by the same rules.
Returns the same object as Create a pickup point (POST /v1/company/pickup-points), described in full there.
Example
{"id":11,"label":"Barcelona main warehouse","type":"warehouse","address":{"street":"Carrer Gran 42","city":"Barcelona","county":"Barcelona","postal_code":"08001","country_code":"ES"},"contact":{"phone":"+34600000000","email":"[email protected]"},"is_default":true,"is_active":true}
Failures use the shared error envelope — a machine-readable code and a request_id to quote to support. Error handling.
using System.Net.Http;
using System.Net.Http.Headers;
var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", "bk_test_YOUR_KEY");
var request = new HttpRequestMessage(
new HttpMethod("PUT"),
"https://sandbox-api.biklo.com/v1/company/pickup-points/711");
request.Content = new StringContent(
@"{ ""label"": ""Barcelona main warehouse"" }",
System.Text.Encoding.UTF8,
"application/json");
var response = await client.SendAsync(request);
var json = await response.Content.ReadAsStringAsync();
import requests
response = requests.put(
"https://sandbox-api.biklo.com/v1/company/pickup-points/711",
headers={"Authorization": "Bearer bk_test_YOUR_KEY"},
json={
"label": "Barcelona main warehouse"
},
)
data = response.json()