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

Skip to end of metadata
Go to start of metadata

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

Compare with Current View Version History

« Previous Version 4 Next »

Specification

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

Purpose

Unblock user (via Admin-console).

Request parameters

  • user_id

Logic WS

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

Response

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