Retention Configurations V2

Update Retention Configuration

Changed on

Updates a retention configuration in Superwall. Apple and App Store Connect may be queried for validation, but no Apple-side configuration is written. Requires retention_messages:write scope.

patch/v2/retention-configurations/{id}

Request

  • Base URL
    https://api.superwall.com
  • URL
    https://api.superwall.com/v2/retention-configurations/{id}
  • Auth
    • HTTP bearer
    • or API key in cookie accounts_superwall_token
    • or HTTP bearer

Path parameters

idstring required

Request body

namestring

Display name

type'message' | 'alternate_product' | 'promotional_offer'

Type of retention offer: message, alternate_product, or promotional_offer

retention_message_idinteger

ID of the retention message to use

alternate_product_idstring nullable

Alternate product ID

offer_identifierstring nullable

Promotional offer identifier

offer_product_idstring nullable

Product ID the offer applies to

Response

Success

idstring required
object'retention_configuration' required

Object type, always retention_configuration

application_idstring required
configuration_group_idinteger nullable required

Logical realtime configuration group ID, or null for legacy/standalone rows

namestring required

Display name of the configuration

environment'sandbox' | 'production' required

Environment this configuration applies to

product_idstring required

Apple product ID

localestring required

Locale code for this configuration

type'message' | 'alternate_product' | 'promotional_offer' required

Type of retention offer: message, alternate_product, or promotional_offer

retention_message_idinteger required

ID of the linked retention message

alternate_product_idstring nullable required

Alternate product ID (for alternate_product type)

offer_identifierstring nullable required

Promotional offer identifier (for promotional_offer type)

offer_product_idstring nullable required

Product ID the offer applies to (for promotional_offer type)

created_atstring required

ISO 8601 timestamp

updated_atstring required

ISO 8601 timestamp

Changes

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • warning

      added the new credentials_missing enum value to the / response property for the response status

    • info

      added subschema #1 subschema #2 to the response body anyOf list for the response status

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 subschema #3 subschema #4 subschema #5 from the response body anyOf list for the response status

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed subschema #1 subschema #2 from the request property anyOf list

    • breaking

      removed the enum value alternate_product of the request property

    • breaking

      removed the enum value message of the request property

    • breaking

      removed the enum value promotional_offer of the request property

    • breaking

      the request property type changed from string to no type

    • breaking

      the request property type changed from integer to no type

    • breaking

      the request property type changed from string to no type

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from number to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from string to no type for status

    • breaking

      the response's property type changed from number to no type for status

    This list may be incomplete.