Versions Compared

Key

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

...

Sv translation
languageja

/api/users/:id/status

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

リソース情報

リソースURL

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

HTTP方法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ステータスコードと空の本文で応答します。