Skip to main content
POST
/
cost
/
create
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": [
    "<array>"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
project_id
string
required
costs
Costs · object
required
wb_user_id
string | null

Do not set directly. Server will automatically populate this field.

Response

Successful Response

ids
array[]
required
Required array length: 2 elements