Update a cost line

View as Markdown

Authentication

X-Trebellar-Api-Keystring
API Key authentication via header
OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired

A unique identifier for an asset. Can be an AssetId or an ExternalId. ExternalIds are denoted by the “eid:” prefix.

Request

This endpoint expects an object.
namestringOptional
cadence"COST_LINE_CADENCE_UNKNOWN" or "COST_LINE_CADENCE_ONE_TIME" or "COST_LINE_CADENCE_MONTHLY" or "COST_LINE_CADENCE_QUARTERLY" or "COST_LINE_CADENCE_TWICE_A_YEAR" or "COST_LINE_CADENCE_ANNUAL"Optional
type"COST_LINE_TYPE_UNKNOWN" or "COST_LINE_TYPE_ACTUAL" or "COST_LINE_TYPE_BUDGET" or "COST_LINE_TYPE_FORECAST"Optional
periodStartAtdoubleOptional
periodEndAtdoubleOptional
valuedoubleOptional
notesstringOptional
currencystringOptional
categorystringOptional

Response

Cost line updated successfully
costLineobject
A stored CostLine object

Errors