POST
/
cost
/
create
Cost Create
curl --request POST \
  --url https://trace.wandb.ai/cost/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "project_id": "entity/project",
  "costs": {},
  "wb_user_id": "<string>"
}'
{
  "ids": [
    [
      "<any>"
    ]
  ]
}

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
Examples:

"entity/project"

costs
object
required
wb_user_id
string | null

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

Response

Successful Response

ids
any[][]
required