Skip to content

Updates a store.

PATCH
/api/chains/{chainId}

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

chainId*
Typestring
Required

Request Body

JSON
{
"name": "MyChain GmbH",
"status": 2,
"headquartersZip": "48149",
"headquartersCity": "Münster",
"headquartersCountry": "Germany",
"allowPress": true,
"forumThread": 12345,
"notes": "Cooperating since 2021",
"commonStoreInformation": "Pickup times between 10:00 and 12:15",
"kams": [
0
],
"estimatedStoreCount": 12
}

Responses

Success
Authorization
api_key
Variables
Key
Value
chainId*
cURL
curl -X PATCH \
'http://localhost/api/chains/{chainId}' \
 --data '{
  "name": "MyChain GmbH",
  "status": 2,
  "headquartersZip": "48149",
  "headquartersCity": "Münster",
  "headquartersCountry": "Germany",
  "allowPress": true,
  "forumThread": 12345,
  "notes": "Cooperating since 2021",
  "commonStoreInformation": "Pickup times between 10:00 and 12:15",
  "kams": [
    0
  ],
  "estimatedStoreCount": 12
}'

Samples

cURL
curl -X PATCH http://localhost/api/chains/{chainId}
JavaScript
fetch("http://localhost/api/chains/{chainId}", { method: "PATCH" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/chains/{chainId}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.patch("http://localhost/api/chains/{chainId}")
print(response.json())