Skip to main content

Update a specific cost target.

PUT 

/cost_target/:id/

Updates all fields of a specific cost target entry identified by its ID. Requires a complete data payload following the CostTarget schema, replacing the target’s details with the new values provided.

Request

Path Parameters

    id integerrequired

    A unique integer value identifying this cost target.

Body

required

    report_id Report id (integer)nullable

    Possible values: >= -2147483648 and <= 2147483647

    name Name (string)nullable

    Possible values: <= 255 characters

    target_type Target type (string)nullable

    Possible values: <= 255 characters

    period Period (string)nullable

    Possible values: [MONTHLY, QUARTERLY, ANNUALLY]

    status Status (string)nullable

    Possible values: [DRAFT, ACTIVE, DELETED]

    number_of_periods Number of periods (integer)nullable

    Possible values: >= -2147483648 and <= 2147483647

    start_date datenullable
    end_date datenullable
    look_back_period Look back period (integer)nullable

    Possible values: >= -2147483648 and <= 2147483647

    budget_type Budget type (string)nullable

    Possible values: [BOTTOM_UP, TOP_DOWN]

    starting_value Starting value (string)nullable

    Possible values: [AVERAGE_MONTHLY_LOOK_BACK, PREVIOUS_MONTH]

    growth_rate Growth rate (number)nullable
    normalization_period Normalization period (boolean)nullable

Responses

Schema

    id ID (integer)
    created date-time
    modified date-time
    report_id Report id (integer)nullable

    Possible values: >= -2147483648 and <= 2147483647

    name Name (string)nullable

    Possible values: <= 255 characters

    target_type Target type (string)nullable

    Possible values: <= 255 characters

    period Period (string)nullable

    Possible values: [MONTHLY, QUARTERLY, ANNUALLY]

    status Status (string)nullable

    Possible values: [DRAFT, ACTIVE, DELETED]

    number_of_periods Number of periods (integer)nullable

    Possible values: >= -2147483648 and <= 2147483647

    start_date datenullable
    end_date datenullable
    look_back_period Look back period (integer)nullable

    Possible values: >= -2147483648 and <= 2147483647

    budget_type Budget type (string)nullable

    Possible values: [BOTTOM_UP, TOP_DOWN]

    starting_value Starting value (string)nullable

    Possible values: [AVERAGE_MONTHLY_LOOK_BACK, PREVIOUS_MONTH]

    growth_rate Growth rate (number)nullable
    normalization_period Normalization period (boolean)nullable
    client Client (integer)
    created_by Created by (integer)
Loading...