---
agentTools:
  projectIndex: https://developers.uberflip.com/llms.txt
---

# Update CTA

This endpoint is used to set CTA properties.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Uberflip API",
    "version": "2.1",
    "description": "Uberflip API",
    "contact": {
      "name": "Uberflip",
      "url": "https://developers.uberflip.com/",
      "email": "contact@uberflip.com"
    }
  },
  "servers": [
    {
      "url": "https://v2.api.uberflip.com"
    }
  ],
  "tags": [
    {
      "name": "CTAS"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/cta/{ctaId}": {
      "patch": {
        "tags": [
          "CTAS"
        ],
        "summary": "Update CTA",
        "operationId": "update-cta",
        "description": "This endpoint is used to set CTA properties.",
        "parameters": [
          {
            "name": "ctaId",
            "in": "path",
            "description": "The unique identifier of the CTA",
            "schema": {
              "type": "integer"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "active": {
                    "type": "integer",
                    "description": "Whether the CTA is active or not (1 or 0)."
                  },
                  "internal_name": {
                    "type": "string",
                    "description": "The internal name"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": {
                      "id": 126119,
                      "hub_id": 75699,
                      "type": "form",
                      "name": "Form CTA - Hubspot 2",
                      "internal_name": "Foo Bar 4",
                      "tagline": "HubSpot - Never Hide (Success)",
                      "button_label": "Make me famous!",
                      "font_color": "#ffffff",
                      "background_color": "#ff893a",
                      "button_background_color": "#000000",
                      "button_font_color": "#ffffff",
                      "font_aspect_ratio": 0.05517241379310345,
                      "home_placement_position": 1,
                      "home_placement_active": 1,
                      "home_placement_position_active": 1,
                      "active": 0,
                      "repeat_after": 15,
                      "repeat_after_active": 1,
                      "created_at": "2018-05-15T15:49:54-0400",
                      "modified_at": "2022-06-08T22:40:46-0400",
                      "embed_url": null
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access token from /authorize endpoint"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 99,
      "1": 151,
      "2": 113,
      "3": 115,
      "4": 165,
      "5": 253,
      "6": 73,
      "7": 0,
      "8": 113,
      "9": 158,
      "10": 39,
      "11": 103
    }
  }
}
```