# Create or Update Rate Card Table Row

Creates or updates a Rate Card Table Row for a specified Rate Card Set Version and Role.

Endpoint: PUT /rate_card_set_versions/{rate_card_set_version_id}/rate_card_table_rows/{role_id}
Version: 1.0.0

## Path parameters:

  - `rate_card_set_version_id` (integer, required)
    The ID of the Rate card set version.

  - `role_id` (integer, required)
    The ID of the Role.

## Request fields (application/json):

  - `rate_card_table_row` (object)

  - `rate_card_table_row.rates` (array, required)
    The currencies and rates for each row.

  - `rate_card_table_row.rates.currency` (string, required)
    The [ISO code](https://knowledge.kantata.com/hc/en-us/articles/360041576473)
of the currency.

  - `rate_card_table_row.rates.rate` (integer, required)
    The rate in subunits (e.g. 25000 cents = 250 dollars).

## Response 200:

  - `200` (unknown)
    Rate Card Table Row has been updated.

## Response 200 fields (application/json):

  - `count` (integer)
    The number of Rate Card Table Rows in the Rate Card Set Version.

  - `meta` (object)

  - `meta.count` (integer)
    The number of Rate Card Table Rows in the Rate Card Set Version.

  - `meta.page_count` (integer)
    The total number of pagination pages.

  - `meta.page_number` (integer)
    The current pagination page.

  - `meta.page_size` (integer)
    The number of Rate Card Table Rows in a pagination page.

  - `results` (array)

  - `results.key` (string)

  - `results.id` (string)
    The ID of the Rate Card Table Row, defined as `<rate_card_set_version_id>`:`<role_id>`.

  - `rate_card_table_rows` (object)
    Rate card table rows keyed by composite `<rate_card_set_version_id>:<role_id>`.

  - `rate_card_table_rows.id` (string)
    The ID of the Rate Card Table Row, defined as `<rate_card_set_version_id>`:`<role_id>`.

  - `rate_card_table_rows.rate_card_set_id` (integer)
    The ID of the Rate Card Set.

  - `rate_card_table_rows.rate_card_set_version_id` (integer)
    The ID of the Rate Card Table Set Version.

  - `rate_card_table_rows.role_id` (integer)
    The ID of the Role.

  - `rate_card_table_rows.name` (string)
    The name of the Role.

  - `rate_card_table_rows.removable` (boolean)
    If `true`, this Rate Card Table Row is removable.

  - `rate_card_table_rows.cells` (object)
    Per-currency rate cells keyed by ISO currency code.

  - `rate_card_table_rows.cells.rate_card_role_id` (integer)
    The ID of the Rate Card Role for the specified currency.

  - `rate_card_table_rows.cells.rate` (integer)
    The rate for the specified Rate Card Role.

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `errors` (array)

  - `errors.type` (string)

  - `errors.message` (string)

## Response 401:

  - `401` (unknown)
    Unauthorized request

## Response 401 fields (application/json):

  - `errors` (array)

  - `errors.type` (string)

  - `errors.message` (string)

## Response 403:

  - `403` (unknown)
    Forbidden request

## Response 403 fields (application/json):

  - `errors` (array)

  - `errors.type` (string)

  - `errors.message` (string)

## Response 404:

  - `404` (unknown)
    Page Not Found

## Response 404 fields (application/json):

  - `errors` (array)

  - `errors.type` (string)

  - `errors.message` (string)

## Response 422:

  - `422` (unknown)
    Unprocessable Entity

## Response 422 fields (application/json):

  - `errors` (array)

  - `errors.type` (string)

  - `errors.message` (string)

## Response 503:

  - `503` (unknown)
    Service is unavailable

## Response 503 fields (application/json):

  - `errors` (array)

  - `errors.type` (string)

  - `errors.message` (string)

