Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'
Sv translation
languageen

/api/users/:id/status

Activates/Deactivates user specified by ID.

Resource Information

Request Parameters

ParameterDetailExample
idID of the user to update.123
status

Form parameter containing new user status - one of following options:

  • ACTIVE
  • INACTIVE

ACTIVE

Sample Request / Response

Using curl:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "status=\"ACTIVE\"" https://service.belladati.com/api/users/123/status

When the form has been submitted successfully, the server replies with an HTTP status code of 200 and an empty body.

 

Sv translation
languageja

/api/users/:id/status

IDで指定したユーザーをアクティブ/非アクティブにします。

リソース情報

リソースURL

https://service.belladati.com/api/users/:id/status

HTTPメソッド

POST

リクエストパラメーター

パラメーター詳細
id更新するユーザーのID123
status

フォームパラメータが新しいユーザのステータスを含みます  -  次のいずれかのオプション:

  • アクティブ
  • 非アクティブ

アクティブ

サンプルリクエスト/レスポンス

curlを使用:

Code Block
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "status=\"ACTIVE\"" https://service.belladati.com/api/users/123/status

フォームが正常に送信された場合、サーバはHTTP 200ステータスコードと空の本文で応答します。