Placewise API
Get startedExplore
Get startedExplore
Performance Cloud 🗗
Placewise 🗗
ExplorePublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
ExplorePublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
  1. Messages
  • Introduction
  • Templating system
  • Message model
  • Sending model
  • Messages
    • Create Message
      POST
    • List Messages
      GET
    • Show Message
      GET
    • Update Message
      PUT
    • Duplicate Message
      PUT
    • Delete Message
      DELETE
  • Sendings
    • Show Sending
      GET
    • Create Sending
      POST
    • Update Sending
      PUT
    • Cancel Sending
      PUT
  • Templates (Standalone)
    • Introduction
    • Bee Templates
      • Introduction
      • List Bee Email Templates
      • Show Bee Email Template
      • List Bee Email Templates Tags
    • List Templates
      GET
    • Show Template
      GET
    • Create Template
      POST
    • Update Template
      PUT
    • Destroy Template
      DELETE
  • Misc
    • Show Messaging Settings
      GET
    • List Merge Properties
      GET
    • List Merge Properties Copy
      GET
  1. Messages

Update Message

PUT
https://api.mpc.dev.placewise.com/v1/messages/{service}/{id}
API Permit:Messages:Api:Messages:Update
API Context:Loyalty Club
Authorizations:UserToken

Request

Path Params

Query Params

Header Params

Body Params application/json

Example
{
    "message": {
        "name": "My Message",
        "shorten_urls": true,
        "track_in_shortener": true,
        "campaign_id": 1,
        "channels": [
            {
                "type": "sms",
                "from_email": "sender@example.com",
                "from_name": "Infinity",
                "sender": {
                    "type": "alphanumeric",
                    "value": "INFINITY"
                }
            }
        ]
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C#
Ruby
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.mpc.dev.placewise.com/v1/messages/generic/1?archived=' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "message": {
        "name": "My Message",
        "shorten_urls": true,
        "track_in_shortener": true,
        "campaign_id": 1,
        "channels": [
            {
                "type": "sms",
                "from_email": "sender@example.com",
                "from_name": "Infinity",
                "sender": {
                    "type": "alphanumeric",
                    "value": "INFINITY"
                }
            }
        ]
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "message": {
        "id": 1,
        "name": "My Message",
        "shorten_urls": true,
        "track_in_shortener": true,
        "campaign_id": 1,
        "channels": [
            {
                "type": "sms",
                "from_email": "sender@example.com",
                "from_name": "Infinity",
                "template": {
                    "type": "plain",
                    "content": {
                        "language": "string",
                        "body": "Hei {{name}}"
                    },
                    "translations": [
                        {
                            "language": "string",
                            "body": "Hei {{name}}"
                        }
                    ],
                    "wrapper_id": 1,
                    "merge_properties": [
                        "first_name"
                    ],
                    "thumbnail_url": "https://img.placewise.com/image.png"
                },
                "sender": {
                    "type": "alphanumeric",
                    "value": "INFINITY"
                }
            }
        ],
        "created_at": "2022-11-05T16:25:58.099512Z",
        "updated_at": "2022-11-15T16:25:58.099512Z",
        "archived_at": "2022-11-15T16:25:58.099512Z",
        "status": "active",
        "sendings_status": "draft",
        "sendings_count": 3,
        "latest_sending": {
            "id": 1,
            "created_at": "2022-11-05T16:25:58.099512Z",
            "updated_at": "2022-11-15T16:25:58.099512Z",
            "scheduled_at": "2020-09-18T09:13:59.937Z",
            "transmitted_at": "2020-09-18T09:14:05.391Z",
            "status": "draft",
            "audience_id": 1,
            "recipients_count": 100,
            "dispatches_count": 100,
            "members_count": 100,
            "scheduled_with": {
                "type": "immediate"
            },
            "channels_preference": "string"
        }
    }
}
🟠404Record Not Found
🟠422Invalid Parameters
Previous
Show Message
Next
Duplicate Message
Built with