MENU

Description

お知らせ情報の既読・未読ステータス変更

Request URL

billing API v1

PUT /v1/{tenant_id}/notifications/{notification_code}

Request Paramters

Parameter Value Style Description
X-Auth-Token Userトークン header トークンID
tenant_id Tenant ID URI テナントID
notification_code URI ノティフィケーションコード
read_status [“Unread”|“ReadTitleOnly”|“Read”] plain 既読・未読ステータス

Request Json

{
    "notification": {
        "read_status": “Read”
    }
}

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl -X PUT \
-H "Accept: application/json" \
-H "X-Auth-Token: e6c83a30eec54332939cdbe363b7fadf" \
-d '{"notification": {"read_status": "Read"}}' \
https://account.tyo1.conoha.io/v1/487727e3921d44e3bfe7ebb337bf085e/notifications/1
  • RES
HTTP/1.1 200 OK
Date: Wed, 24 Dec 2014 04:14:20 GMT
Server: Apache
Content-Length: 2092
Content-Type: application/json

{
  "notification": {
    "notification_code": 20150506,
    "type": null,
    "title": "サービス品質保証制度(SLA)の提供を開始しました",
    "contents": "2015年1月13日よりサービス品質保証制度(以下SLA)の提供を開始しました。",
    "read_status": "Read",
    "start_date": "2015-05-06T21:51:00"
  }
}