Skip to main content
Skip table of contents

Delete multiple marks

Removing multiple marks

You can only delete those tags that the user created himself. After deleting the marks, a push will be sent for each deleted mark with the type mark_deleted to the channel user.ID

DELETE /api/v1/marks

Parameters

array marks, An array of mark IDs to remove.

object array

int

 

marks.

 

REQUIRED

, IDs of marks to be removed


200 OK

Successful response

JSON
{
    "status": "ok"
}

401 Unauthorized

Authorization token not sent or not valid

403 Forbidden

If the label cannot be removed

422 Unprocessable Entity

Returns a JSON object with an error.

JSON
{
    "message": "There will be no informative message here",
    "errors": {
        "any_key": [
            "The cause of the error will be described here"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/v1/marks' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "marks": {
        "": 0
    },
    "marks.": "void"
}'
PHP
PHP
$data = array (
  'marks' => 
  array (
    '' => 0,
  ),
  'marks.' => 'void',
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'DELETE',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/marks', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.