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

# Update Rsa

> Update a Responsive Search Ad.



## OpenAPI

````yaml https://dev-api.cattix.com/openapi.json patch /api/v1/google-ads/ads/{ad_id}
openapi: 3.1.0
info:
  title: CATTIX API
  description: CATTIX Backend API
  version: 0.107.0
servers:
  - url: http://localhost:8000
    description: Local
  - url: https://dev-api.cattix.com
    description: Development
  - url: https://staging-api.cattix.com
    description: Staging
  - url: https://api.cattix.com
    description: Production
security: []
paths:
  /api/v1/google-ads/ads/{ad_id}:
    patch:
      tags:
        - Google Ads Management
      summary: Update Rsa
      description: Update a Responsive Search Ad.
      operationId: update_rsa_api_v1_google_ads_ads__ad_id__patch
      parameters:
        - name: ad_id
          in: path
          required: true
          schema:
            type: integer
            title: Ad Id
        - name: customer_id
          in: query
          required: true
          schema:
            type: integer
            title: Customer Id
        - name: token_id
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
            description: Optional specific Token ID
            title: Token Id
          description: Optional specific Token ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRSARequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AdMutationResult'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2PasswordBearer: []
components:
  schemas:
    UpdateRSARequest:
      properties:
        final_url:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Final Url
          description: New landing page URL
        headlines:
          anyOf:
            - items:
                $ref: '#/components/schemas/RSAAssetInput'
              type: array
              maxItems: 15
              minItems: 3
            - type: 'null'
          title: Headlines
          description: 3-15 headlines (replaces all)
        descriptions:
          anyOf:
            - items:
                $ref: '#/components/schemas/RSAAssetInput'
              type: array
              maxItems: 4
              minItems: 2
            - type: 'null'
          title: Descriptions
          description: 2-4 descriptions (replaces all)
        display_path_1:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Path 1
        display_path_2:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Path 2
        final_mobile_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Final Mobile Url
        tracking_url_template:
          anyOf:
            - type: string
            - type: 'null'
          title: Tracking Url Template
      type: object
      title: UpdateRSARequest
      description: Request to update a Responsive Search Ad.
    AdMutationResult:
      properties:
        success:
          type: boolean
          title: Success
        ad_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ad Id
        resource_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Resource Name
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Code
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
      type: object
      required:
        - success
      title: AdMutationResult
      description: Result of an ad mutation operation.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RSAAssetInput:
      properties:
        text:
          type: string
          minLength: 1
          title: Text
          description: Asset text
        pinned_field:
          anyOf:
            - type: string
            - type: 'null'
          title: Pinned Field
          description: Pinned position (HEADLINE_1, HEADLINE_2, etc.)
      type: object
      required:
        - text
      title: RSAAssetInput
      description: A single headline or description asset.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    OAuth2PasswordBearer:
      type: oauth2
      flows:
        password:
          scopes: {}
          tokenUrl: api/v1/users/authorization/token

````