Skip to content

Deletes a post from the wall of a store. Returns 200 upon successful deletion, 401 if not logged in, or 403 if you may not remove this particular "wallpost".

DELETE
/api/stores/{storeId}/posts/{postId}

Authorizations

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

Parameters

Path Parameters

storeId*
Typestring
Required
postId*
Typestring
Required

Responses

Authorization
api_key
Variables
Key
Value
storeId*
postId*
cURL
curl -X DELETE \
'http://localhost/api/stores/{storeId}/posts/{postId}'

Samples

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