> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# State a rate card (bearer twin)

> Writes the monthly rates for one private credential, or the organisation fallback card. Gated on billing.manage; the token stands in for the browser route's CSRF double-submit. Bearer-PAT twin of the browser route of the same name under /org; the console's session cookie is not accepted here and the browser route answers a token with a login redirect.



## OpenAPI

````yaml https://platform.ankra.app/openapi.json put /api/v1/org/cloud-cost/rate-cards
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/org/cloud-cost/rate-cards:
    put:
      tags:
        - Cost
        - cli
      summary: State a rate card (bearer twin)
      description: >-
        Writes the monthly rates for one private credential, or the organisation
        fallback card. Gated on billing.manage; the token stands in for the
        browser route's CSRF double-submit. Bearer-PAT twin of the browser route
        of the same name under /org; the console's session cookie is not
        accepted here and the browser route answers a token with a login
        redirect.
      operationId: put_rate_card_api_v1_org_cloud_cost_put
      parameters:
        - description: PAT organisation override.
          in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RateCardUpdateRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateCardRates'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: >-
            Missing or malformed Authorization header, or business validation
            error
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Unknown, expired, or revoked API token
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Permission denied
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Request validation error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractDetailError'
          description: Internal server error
      security:
        - BearerAuth: []
components:
  schemas:
    RateCardUpdateRequest:
      description: >-
        Body of PUT /api/v1/org/cloud-cost/rate-cards: the monthly rates that
        price one private credential's capacity, or the organisation's fallback
        card.
      properties:
        credential_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            A private credential id, or `organisation` (or omitted) for the
            organisation's fallback card.
        currency:
          description: >-
            Currency the amounts are stated in; one of the platform's
            convertible currencies.
          type: string
        memory_gb_monthly_amount:
          default: '0'
          description: Decimal amount per GB of memory per month.
          type: string
        storage_gb_monthly_amount:
          default: '0'
          description: Decimal amount per GB of storage per month.
          type: string
        vcpu_monthly_amount:
          default: '0'
          description: Decimal amount per vCPU per month.
          type: string
      required:
        - currency
      title: RateCardUpdateRequest
      type: object
    RateCardRates:
      properties:
        currency:
          type: string
        memory_gb_monthly_amount:
          type: string
        storage_gb_monthly_amount:
          type: string
        vcpu_monthly_amount:
          type: string
      required:
        - currency
        - vcpu_monthly_amount
        - memory_gb_monthly_amount
        - storage_gb_monthly_amount
      title: RateCardRates
      type: object
    ContractDetailError:
      example:
        detail: Cluster not found
      properties:
        detail:
          oneOf:
            - type: string
            - additionalProperties: true
              properties: {}
              type: object
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: PAT
      scheme: bearer
      type: http

````