Skip to content

Product flag delete

Request

Deletes the flag. System flags cannot be deleted. A flag assigned to some products can be deleted only with the force query parameter.

Security
shoptetAccessToken or shoptetPrivateApiToken
Path
codestringrequired
Example:action
Query
forceboolean

Delete the flag even if it is assigned to some products; it is removed from those products as well. Without it, deleting a flag in use fails with 422.

Default:false
Example:force=true
Headers
Content-Typestringrequired
Default:"application/json"
curl -i -X DELETE \
  'https://api.docs.shoptet.com/_mock/shoptet-api/openapi/api/products/flags/action?force=true' \
  -H 'Content-Type: application/json' \
  -H 'Shoptet-Access-Token: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
dataobject or nullrequired
errorsArray of objects or null(Errors)required
metadataobject(Metadata)required
Response
{ "data": {}, "errors": [ { … } ], "metadata": { "requestId": "019c8c34-64f3-7328-af43-bf1e34fa39d7" } }