---
title: "Updates mosms trigger opt_in configuration"
method: PUT
path: "/v1/triggers/{id}/mosms/optin/configuration"
tags: ["triggers"]
---

# Updates mosms trigger opt_in configuration

`PUT /v1/triggers/{id}/mosms/optin/configuration`

## Path parameters

- `id` integer, required

## Request body

- SmsOptInActionConfigurationRequest
  - `messageContent` string — messageContent
  - `templateId` integer — templateId
  - `deactivateRecipientBlacklist` boolean — deactivateRecipientBlacklist
  - `contactGroupIds` integer[], required — contactGroupIds
  - `contactCreationRule` string — contactCreationRule
  - `optedInMessageEnabled` boolean — optedInMessageEnabled
  - `optedInMessageContent` string — optedInMessageContent
  - `optedInTemplateId` integer — optedInTemplateId

## Response `200`

OK

- SmsOptInActionConfigurationResponse
  - `messageContent` string — messageContent
  - `templateId` integer — templateId
  - `deactivateRecipientBlacklist` boolean — deactivateRecipientBlacklist
  - `contactGroupIds` integer[], required — contactGroupIds
  - `contactCreationRule` string — contactCreationRule
  - `optedInMessageEnabled` boolean — optedInMessageEnabled
  - `optedInMessageContent` string — optedInMessageContent
  - `optedInTemplateId` integer — optedInTemplateId
  - `links` Link[] — links
    - `rel` string
    - `href` string

## Other responses

- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.dev/linkmobility/apis/untitled-api.md) · [All operations](https://skmtc.dev/linkmobility/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/linkmobility/untitled-api/revisions/db84f79799b9/schema)
