Placewise API
Get startedExplore
Performance Cloud 🗗Placewise 🗗
Get startedExplore
Performance Cloud 🗗Placewise 🗗
IndexPublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
IndexPublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
  1. Sendings
  • Introduction
  • Templating system
  • Message model
  • Sending model
  • Messages
    • Campaigns
      • Introduction
      • Duplicate Campaign
      • Create Campaign
      • List Campaigns
      • Show Campaign
      • Update Campaign
      • Archive Campaign
      • Restore Campaign
      • Destroy Campaign
    • Create Message
      POST
    • List Messages
      GET
    • Show Message
      GET
    • List Message Sendings
      GET
    • Update Message
      PUT
    • Duplicate Message
      PUT
    • Delete Message
      DELETE
    • List Messages Overview
      GET
  • Sendings
    • Show Sending
      GET
    • Create Sending
      POST
    • Update Sending
      PUT
    • Cancel Sending
      PUT
  • Templates
    • 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
    • List Messaging Services
      GET
    • List Merge Properties
      GET
    • Show Messaging Settings
      GET
Get startedExplore
Performance Cloud 🗗Placewise 🗗
Get startedExplore
Performance Cloud 🗗Placewise 🗗
IndexPublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
IndexPublic APIManagement APIUsers APIOperations APIMessaging API
Reporting APIML APIData API
  1. Sendings

Update Sending

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

Updating recipients#

If recipients are given, the Sending Recipients are replaced with given ones.
When the array is empty, all Recipients are removed from Sending.
Returned when Sending execution has already started

Request

Path Params

Header Params

Responses

🟢200Success
application/json
Body

🟠404Record Not Found
🟠422Invalid Parameters
🟠405Method Not Allowed
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.mpc.dev.placewise.com/v1/messages/generic/sendings/1' \
--header 'X-User-Agent: ApiDog' \
--header 'X-Product-Name: default' \
--header 'X-Loyalty-Club-Slug: infinity-mall' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: ' \
--header 'Content-Type: application/json'
Response Response Example
200 - Example 1
{
    "sending": {
        "id": 1,
        "created_at": "2022-11-15T16:25:58.099512Z",
        "updated_at": "2022-11-15T16:25:58.099512Z",
        "scheduled_at": "2020-09-18T09:13:59.937Z",
        "scheduled_by": "327a9f1b-e620-4e6b-b06e-041589bffde2",
        "reporting_id": 1,
        "transmitted_at": "2020-09-18T09:14:05.391Z",
        "status": "draft",
        "status_type": "draft",
        "audience_id": 1,
        "recipients_count": 100,
        "dispatches_count": 100,
        "members_count": 100,
        "scheduled_with": {
            "type": "immediate"
        },
        "channels_preference": "string",
        "message_id": 1,
        "channel": {
            "type": "sms",
            "include_footer": false,
            "sender": {
                "from_email": "sender@example.com",
                "from_name": "Infinity"
            },
            "template": {
                "id": 1,
                "type": "plain",
                "content": {
                    "language": "string",
                    "body": "Hei {{name}}",
                    "footer": "To unsubscribe, send STOP to 2242 "
                },
                "translations": [
                    {
                        "language": "string",
                        "body": "Hei {{name}}",
                        "footer": "To unsubscribe, send STOP to 2242 "
                    }
                ],
                "wrapper_id": 1,
                "merge_properties": [
                    "first_name"
                ],
                "thumbnail_url": "https://img.placewise.com/image.png"
            }
        },
        "recipients": [
            {
                "member_id": 1,
                "email": "somebody@example.com",
                "msisdn": "4740769126",
                "app_token": "bFkT5fzhdWJMJswPo3",
                "properties": {
                    "first_name": "Piotr"
                }
            }
        ]
    }
}
Previous
Create Sending
Next
Cancel Sending
Built with