Skip to main content
PATCH
/
v1
/
emails
/
{id}
Update Email
curl --request PATCH \
  --url https://api.example.com/v1/emails/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "scheduled_for": "<string>"
}
'
id
string
required
The ID of the scheduled email to update.
scheduled_for
string
New scheduled time (ISO 8601 format).

Request

cURL
curl -X PATCH https://www.unosend.co/api/v1/emails/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "scheduled_for": "2024-01-20T09:00:00.000Z"
  }'

Response

200
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "scheduled_for": "2024-01-20T09:00:00.000Z",
  "status": "scheduled"
}
You can only update emails that are in scheduled status.