Publish a changelog
POST/v2/changelogs/{id}/publish
Publishes a changelog and optionally sends an email notification to subscribers.
Optional Fields
sendEmail- Whether to send an email notification to subscribers (default: false)locales- Array of locales to publish. An empty array publishes to all available localesscheduledDate- A future date/time when the changelog should be published
Scheduling
If scheduledDate is provided:
- Must be a future date
- The changelog will be scheduled for publishing at that time
- Any existing scheduled publish for the same locales will be cancelled and replaced
Email Notifications
If sendEmail is true:
- Email notifications are sent to all subscribers in the published locales
- Emails are only sent once per locale (won’t resend on republish)
Response
Returns a success confirmation:
{
"success": true,
"state": "published"
}
Or for scheduled publishes:
{
"success": true,
"state": "scheduled"
}
Errors
400- Invalid changelog ID or scheduled date is not in the future404- Changelog not found or doesn’t belong to your organization
Body ParametersJSON
Publish a changelog
curl https://do.featurebase.app/v2/changelogs/$ID/publish \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $FEATUREBASE_API_KEY" \
-d '{
"locales": [
"en",
"de"
],
"scheduledDate": "2023-12-01T00:00:00Z",
"sendEmail": true
}'{
"success": true,
"state": "published"
}Returns Examples
{
"success": true,
"state": "published"
}