---
title: "PATCH /v1/organizations/{organizationsId}/publications/{publicationsId}/ctas/{ctasId}"
method: PATCH
path: "/v1/organizations/{organizationsId}/publications/{publicationsId}/ctas/{ctasId}"
tags: ["organizations"]
---

# PATCH /v1/organizations/{organizationsId}/publications/{publicationsId}/ctas/{ctasId}

`PATCH /v1/organizations/{organizationsId}/publications/{publicationsId}/ctas/{ctasId}`

## Request

- Base URL: `https://webcontentpublisher.googleapis.com`
- URL: `https://webcontentpublisher.googleapis.com/v1/organizations/{organizationsId}/publications/{publicationsId}/ctas/{ctasId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/webcontentpublisher.publications.manage.system`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/webcontentpublisher.publications.manage.system`

Updates a CTA.

## Path parameters

- `organizationsId` string, required
- `publicationsId` string, required
- `ctasId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- Cta: Represents a Call-To-Action (CTA) configuration for a publication.
  - `displayName` string: Optional. The user-visible display name of the CTA (up to 40 characters). Defaults to a server-specified name based on the CTA type when omitted on creation.
  - `name` string: Identifier. The resource name of the Cta. Format: organizations/{organization}/publications/{publication}/ctas/{cta}
  - `newsletterConfig` NewsletterConfig: Configuration for newsletter signup calls-to-action (CTAs).
    - `customConsentText` string: Optional. Custom consent or disclosure text shown to the user.
    - `customMessage` string: Optional. A custom message displayed to the user in the signup prompt.
    - `nameRequired` boolean: Optional. Whether the user is required to provide their name to sign up.
    - `optInRequired` boolean: Optional. Whether checking the opt-in checkbox is required.
    - `title` string: Required. The title of the newsletter signup prompt.
  - `state` 'STATE_UNSPECIFIED' | 'DRAFT' | 'ACTIVE': Optional. The current state of this CTA.
  - `surveyConfig` SurveyConfig: Configuration for survey calls-to-action (CTAs).
    - `customMessage` string: Optional. Header prompt shown to readers. If omitted, the server populates the default prompt localized to the parent publication's configured primary language.
    - `questions` SurveyQuestion[]: Optional. Ordered list of questions presented in the survey (1-3 items when `ACTIVE`; 0-3 when `DRAFT`).
      - `customQuestion` CustomQuestion: A custom question defined by the publisher.
        - `answerChoices` CustomAnswerChoice[]: Required. Ordered list of answer choices for the custom question (2-5 items).
          - `displayText` string: Required. The display text of the answer choice shown to readers.
        - `categoryLabel` string: Optional. Reporting category label sent to Google Analytics (up to 100 characters).
        - `displayText` string: Required. The question prompt displayed to readers (up to 140 characters).
        - `id` string: Output only. Server-assigned unique identifier for the custom question.
      - `presetQuestion` PresetQuestion: A preset question referencing a template in the survey question catalog.
        - `answerIds` integer[]: Optional. Selected answer choice IDs from the question template. Required (2-5 unique IDs) when the catalog question is `CONFIGURABLE_CHOICES`, and must be omitted for `FIXED_CHOICES`.
        - `questionId` integer: Required. ID of the question template from `SurveyQuestionCatalog`.
    - `reportUrl` string: Output only. Link to the Looker Studio dashboard.
  - `type` 'TYPE_UNSPECIFIED' | 'NEWSLETTER_SIGNUP' | 'SURVEY': Required. The type of this CTA.

## Response `200`

Successful response

- Cta: Represents a Call-To-Action (CTA) configuration for a publication.
  - `displayName` string: Optional. The user-visible display name of the CTA (up to 40 characters). Defaults to a server-specified name based on the CTA type when omitted on creation.
  - `name` string: Identifier. The resource name of the Cta. Format: organizations/{organization}/publications/{publication}/ctas/{cta}
  - `newsletterConfig` NewsletterConfig: Configuration for newsletter signup calls-to-action (CTAs).
    - `customConsentText` string: Optional. Custom consent or disclosure text shown to the user.
    - `customMessage` string: Optional. A custom message displayed to the user in the signup prompt.
    - `nameRequired` boolean: Optional. Whether the user is required to provide their name to sign up.
    - `optInRequired` boolean: Optional. Whether checking the opt-in checkbox is required.
    - `title` string: Required. The title of the newsletter signup prompt.
  - `state` 'STATE_UNSPECIFIED' | 'DRAFT' | 'ACTIVE': Optional. The current state of this CTA.
  - `surveyConfig` SurveyConfig: Configuration for survey calls-to-action (CTAs).
    - `customMessage` string: Optional. Header prompt shown to readers. If omitted, the server populates the default prompt localized to the parent publication's configured primary language.
    - `questions` SurveyQuestion[]: Optional. Ordered list of questions presented in the survey (1-3 items when `ACTIVE`; 0-3 when `DRAFT`).
      - `customQuestion` CustomQuestion: A custom question defined by the publisher.
        - `answerChoices` CustomAnswerChoice[]: Required. Ordered list of answer choices for the custom question (2-5 items).
          - `displayText` string: Required. The display text of the answer choice shown to readers.
        - `categoryLabel` string: Optional. Reporting category label sent to Google Analytics (up to 100 characters).
        - `displayText` string: Required. The question prompt displayed to readers (up to 140 characters).
        - `id` string: Output only. Server-assigned unique identifier for the custom question.
      - `presetQuestion` PresetQuestion: A preset question referencing a template in the survey question catalog.
        - `answerIds` integer[]: Optional. Selected answer choice IDs from the question template. Required (2-5 unique IDs) when the catalog question is `CONFIGURABLE_CHOICES`, and must be omitted for `FIXED_CHOICES`.
        - `questionId` integer: Required. ID of the question template from `SurveyQuestionCatalog`.
    - `reportUrl` string: Output only. Link to the Looker Studio dashboard.
  - `type` 'TYPE_UNSPECIFIED' | 'NEWSLETTER_SIGNUP' | 'SURVEY': Required. The type of this CTA.

---

[API](https://skmtc.dev/google/apis/webcontentpublisher.md) - [All operations](https://skmtc.dev/google/apis/webcontentpublisher/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/webcontentpublisher/revisions/6b6edf75eb40?raw)
