Versions Compared

Key

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

/api/dataSets/formula/validate

Validates the formula of a custom member.

Resource Information

Resource URL

https://service.belladati.com/api/dataSets/formula/validate

HTTP Method

POST

Request Parameters

data

Form contents to submit in following JSON format:

formulaformula of the custom member



Code Block
{"formula": "return firstValue('L_ABC')"}


Response Structure

The endpoint will return either "VALID" or "INVALID". In case the formula is invalid, the response includes the error detail.

Sample Request / Response

Using curl:


curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "data={\"formula\": \"return firstValue('L_ABC')\"}" https://service.belladati.com/api/dataSets/formula/validate



Sv translation
languageja

/api/dataSets/formula/validate

カスタムメンバーの式を検証します。

リソース情報

リクエストパラメーター

パラメーター詳細
data

次のJSON形式で送信するフォームの内容:

formulaカスタムメンバーの式



Code Block
{"formula": "return firstValue('L_ABC')"}


レスポンス構造

エンドポイントは "VALID" または "INVALID" のいずれかを返します。式が無効な場合、レスポンスにはエラーの詳細が含まれます。

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

curl使用:


curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "data={\"formula\": \"return firstValue('L_ABC')\"}" https://service.belladati.com/api/dataSets/formula/validate