メインコンテンツへスキップ
POST
/
cost
/
create
作成コスト
curl --request POST \
  --url https://api.example.com/cost/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "<string>",
  "costs": {},
  "wb_user_id": "<string>"
}
'
{
  "ids": [
    [
      "<string>",
      "<string>"
    ]
  ]
}

承認

Authorization
string
header
必須

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

ボディ

application/json
project_id
string
必須
:

"entity/project"

costs
Costs · object
必須
wb_user_id
string | null

ここでは設定しないでください。サーバーがこのフィールドを自動的に設定します。

レスポンス

成功レスポンス

ids
tuple[]
必須