Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

/api/domains/:id

Modifies the domain specified by ID.

Note

This resource is available only for Global admin or Domain admin.

Resource Information

Request Parameters

Parameter

Detail

Example
idID of the domain to update.123

data

Form contents to submit in following JSON format:

ParameterDetail
descriptionDomain description
dateFormatDomain date format - default: "M/d/yyyy"
timeFormatDomain time format - default: "h:mm:ss a"
timeZone(Optional) Domain time zone
localeDomain locale code of supported language
parameters

(Optional) Array containing all additional parameters.

NameDescription

parameter-name

Parameter name

nonAdminUserVisible

(Optional) Boolean flag indicating if the non-admin users are able to view the flag. Default is false




Code Block
languagejs
{
  "description": "This is my domain description",
  "dateFormat": "yyyy-MM-dd",
  "timeFormat": "hh:mm:ss",
  "timeZone": "Asia/Hong_Kong",
  "locale": "zh",
  "parameters": [
    {
      "myKey1": "myValue1"
    },
    {
      "myKey2": null
    }
  ]
}


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 "data={\"description\":\"New description\",\"dateFormat\":\"yyyy-MM-dd\"\"timeFormat\":\"hh:mm:ss\"\"locale\":\"cs\"}" https://service.belladati.com/api/domains/123

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/domains/:id

IDによって指定されたドメインを変更します。

Note

このリソースは、グローバル管理者またはドメイン管理者のために利用可能です。

リソース情報

リクエストパラメーター

パラメーター

詳細

id更新するためのドメインのID123

data

次のJSON形式で送信するフォームコンテンツ

パラメーター詳細
descriptionドメイン説明
dateFormat

ドメインの日付フォーマット

- デフォルト:"M/d/yyyy"

timeFormat

ドメインの時間フォーマット

- デフォルト:"h:mm:ss a"

timeZone(任意) ドメインのタイムゾーン
locale

ユーザーのロケール

- サポートされる言語のコード

parameters

(任意) 配列がすべての追加のパラメーターを含みます。

説明

parameter-name

パラメーター名

nonAdminUserVisible

(任意) 管理者以外のユーザーがフラグを表示できるかどうかを示すブールフラグ。デフォルトはfalse




Code Block
languagejs
{
  "description": "This is my domain description",
  "dateFormat": "yyyy-MM-dd",
  "timeFormat": "hh:mm:ss",
  "timeZone": "Asia/Hong_Kong",
  "locale": "zh",
  "parameters": [
    {
      "myKey1": "myValue1"
    },
    {
      "myKey2": null
    }
  ]
}


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

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 "data={\"description\":\"New description\",\"dateFormat\":\"yyyy-MM-dd\"\"timeFormat\":\"hh:mm:ss\"\"locale\":\"cs\"}" https://service.belladati.com/api/domains/123

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