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. Sendings
  • Introduction
  • Templating system
  • Message model
  • Sending model
  • Messages
    • Campaigns
      • Introduction
      • Create Campaign
      • List Campaigns
      • Show Campaign
      • Update Campaign
      • Archive Campaign
      • Restore Campaign
      • Destroy Campaign
    • 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
    • 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
  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

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/sendings/1' \
--header 'X-User-Agent;' \
--header 'X-Product-Name;' \
--header 'X-Loyalty-Club-Slug;' \
--header 'Authorization: Bearer ' \
--header 'X-Client-Authorization: '

Responses

🟢200Success
application/json
Body

Example
{
    "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",
        "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",
        "message_id": 1,
        "channel": {
            "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"
            }
        },
        "recipients": [
            {
                "member_id": 1,
                "email": "somebody@example.com",
                "msisdn": "4740769126",
                "app_token": "bFkT5fzhdWJMJswPo3",
                "properties": {
                    "first_name": "Piotr"
                }
            }
        ]
    }
}
🟠404Record Not Found
🟠422Invalid Parameters
🟠405Method Not Allowed
Previous
Create Sending
Next
Cancel Sending
Built with