Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
 SpecificationSpecification


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

Purpose

Unblock user (via Admin-console).

Request parameters

  • user_id

...

  • reason

Logic WS

  • Validate token & scope
  • Validate user id

...

  • Update user (set values) by $.user_id
    • is_blocked = TRUE
    • block_reason = $.

...

    • reason
    • update_at = now()
  • Return 200

Response

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