Biklo for developersTESTsandbox-api.biklo.comchange

Update a pickup point

PUT/v1/company/pickup-points/{id}

scope company.write

Partial — send only what changes. Any address field you do send is re-validated.

Request body#

FieldTypeRequiredDescription
labelstringoptionalA 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.

Example

{
    "label": "Barcelona main warehouse"
}

Response#

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.

curl -X PUT "https://sandbox-api.biklo.com/v1/company/pickup-points/711" \
  -H "Authorization: Bearer bk_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "Barcelona main warehouse"
}'
<?php

$ch = curl_init('https://sandbox-api.biklo.com/v1/company/pickup-points/711');

curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_CUSTOMREQUEST  => 'PUT',
    CURLOPT_HTTPHEADER     => [
        'Authorization: Bearer bk_test_YOUR_KEY',
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS     => json_encode([
      'label' => 'Barcelona main warehouse',
    ]),
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);
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()
const response = await fetch("https://sandbox-api.biklo.com/v1/company/pickup-points/711", {
  method: "PUT",
  headers: {
    Authorization: "Bearer bk_test_YOUR_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
      "label": "Barcelona main warehouse"
  })
});

const data = await response.json();
import java.net.http.*;
import java.net.URI;

var client = HttpClient.newHttpClient();

var request = HttpRequest.newBuilder()
    .uri(URI.create("https://sandbox-api.biklo.com/v1/company/pickup-points/711"))
    .header("Authorization", "Bearer bk_test_YOUR_KEY")
    .header("Content-Type", "application/json")
    .method("PUT", HttpRequest.BodyPublishers.ofString(
        "{ \"label\": \"Barcelona main warehouse\" }"))
    .build();

var response = client.send(request, HttpResponse.BodyHandlers.ofString());