This endpoint requires authentication and the updateNewsletter permission.
Path Parameters
The UUID of the newsletter to update
Request Body
ID of the uploaded image file
External image URL if not using uploaded file
ID of the uploaded PDF file
External PDF URL if not using uploaded file
Newsletter status. One of: draft, scheduled, published, archived
Scheduled publication date (ISO 8601)
Response
Unique identifier for the newsletter (UUID)
Uploaded image file information
External image URL if not using uploaded file
Uploaded PDF file information
External PDF URL if not using uploaded file
Whether the newsletter has an associated PDF
Newsletter status. One of: draft, scheduled, published, archived
Scheduled or actual publication date (ISO 8601)
Number of times the newsletter has been viewed/received
Creation timestamp (ISO 8601)
Last update timestamp (ISO 8601)
UUID of the user who created the newsletter
Error Responses
Error details when the request fails
Error message explaining why the request failed
Common error cases:
- 400 Bad Request: Invalid newsletter ID format or validation error
- 401 Unauthorized: Missing or invalid access token
- 403 Forbidden: Missing required permission
- 404 Not Found: Newsletter not found
curl -X PUT "https://api.tktchurch.com/v1/newsletters/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
-H "Content-Type: application/json" \
-d '{
"title": "Updated January Church Updates",
"content": "Welcome to our updated newsletter...",
"imageId": "file-789",
"pdfId": "file-012",
"status": "published",
"publishDate": "2024-01-01T12:00:00Z"
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Updated January Church Updates",
"content": "Welcome to our updated newsletter...",
"image": {
"id": "file-789",
"url": "https://cdn.tktchurch.com/files/updated-image.jpg"
},
"imageUrl": null,
"pdf": {
"id": "file-012",
"url": "https://cdn.tktchurch.com/files/updated.pdf"
},
"pdfUrl": null,
"hasPdf": true,
"status": "published",
"publishDate": "2024-01-01T12:00:00Z",
"recipientCount": 150,
"createdAt": "2023-12-30T15:00:00Z",
"updatedAt": "2023-12-31T10:30:00Z",
"createdBy": "user-123e4567-e89b-12d3-a456-426614174000"
}