Skip to content

Удалить услугу из сравнения

Request

Удаляет услугу только из списка текущего пользователя. Тело запроса не требуется.

Security
bearerAuth or jwtCookie
Path
serviceIdinteger, (int64), >= 1required

ID услуги.

curl -i -X DELETE \
  'https://felmee.com/api/comparison/{serviceId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Услуга удалена из сравнения.

Bodyapplication/json
codeErrorstring or nullrequired

Устаревший camelCase-alias поля error_code; при ошибке оба поля содержат одинаковое значение.

successbooleanrequired

Флаг успешного выполнения запроса

Example:true
messagestringrequired

Человекочитаемое описание результата

Example:"OK"
error_codestring or null(ERROR_CODE)required

Код ошибки. Для успешных ответов всегда null.

Enum:"invalid_body""unauthorized""not_found""conflict""object_modified_by_another_thread""action_too_late""too_many_request""code_is_gone""forbidden""user_blocked"
Example:null
dataany or nullrequired

Полезная нагрузка. Может быть объектом, массивом или null.

Example:null
Response
{ "success": true, "message": "Service deleted from comparison successfully", "codeError": null, "error_code": null, "data": null }