This endpoint requires authentication and the updateLivestream permission.
Path Parameters
The UUID of the livestream to update
Request Body
Description of the livestream
YouTube URL for the livestream
Current status of the livestream. One of:
scheduled: Upcoming livestream
live: Currently streaming
ended: Completed livestream
cancelled: Cancelled livestream
Scheduled start time in ISO 8601 format
Actual start time in ISO 8601 format
End time in ISO 8601 format
Array of tags associated with the livestream
URL of the livestream thumbnail
UUID of the uploaded thumbnail file
Response
Returns the updated livestream object.
Livestream’s unique identifier (UUID)
Description of the livestream
YouTube URL for the livestream
Current status of the livestream
Scheduled start time in ISO 8601 format
Actual start time in ISO 8601 format
End time in ISO 8601 format
Array of tags associated with the livestream
URL of the livestream thumbnail
Thumbnail file information
File’s unique identifier (UUID)
Storage provider (s3 or local)
Storage key/path of the file
UUID of the user who created the livestream
UUID of the user who last updated the livestream
Creation timestamp in ISO 8601 format
Last update timestamp in ISO 8601 format
Error Responses
Error details when the request fails
Error message explaining why the request failed
Common error cases:
- 400 Bad Request: Invalid request body
- 401 Unauthorized: Missing or invalid access token
- 403 Forbidden: Missing required permission
- 404 Not Found: Livestream not found
curl -X PUT "https://api.tktchurch.com/v1/livestreams/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..." \
-H "Content-Type: application/json" \
-d '{
"status": "live",
"actualStartTime": "2024-01-21T10:02:00Z",
"tags": ["sunday-service", "worship", "live"]
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"title": "Sunday Service",
"description": "Join us for our weekly Sunday service",
"youtubeUrl": "https://youtube.com/watch?v=abc123",
"customStreamUrl": null,
"status": "live",
"scheduledStartTime": "2024-01-21T10:00:00Z",
"actualStartTime": "2024-01-21T10:02:00Z",
"endTime": null,
"tags": ["sunday-service", "worship", "live"],
"thumbnailUrl": "https://example.com/thumbnail.jpg",
"thumbnail": {
"id": "123e4567-e89b-12d3-a456-426614174001",
"url": "https://storage.example.com/thumbnails/abc123.jpg",
"provider": "s3",
"key": "thumbnails/abc123.jpg"
},
"createdByUserId": "123e4567-e89b-12d3-a456-426614174002",
"updatedByUserId": "123e4567-e89b-12d3-a456-426614174002",
"createdAt": "2024-01-20T15:00:00Z",
"updatedAt": "2024-01-21T10:02:00Z"
}