ЕСОЗ - публічна документація

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Specification

Apiary
PATCH mithril/api/users/{id}/actions/block
Scopeuser:block

Purpose

Unblock user (via Admin-console).

Request parameters

  • user_id
  • block_reason

Logic WS

  • Validate token & scope
  • Validate user id & user status
  • Update user (set values) by $.user_id
    • is_blocked = TRUE
    • block_reason = $.block_reason
    • update_at = now()
  • Return 200

Response

  • 200 if user successful block  + user_object_view
  • 4xx in other case
  • No labels