Rotations
Update a rotation
/v1/rotations/{rotation_id}Changes a rotation: its pool, caption, hashtags, rhythm, or pauses and resumes it. Only the fields sent change. Its planned sends that have not gone out are planned again with the new rules; posts already online stay as they are. Show the user what changes and wait for an explicit yes.
write:publicationscurl -X PATCH 'https://api.fansquare.so/v1/rotations/e8cff80c-0097-432c-a65c-9f83fdd1bb31' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste" \
-H "Content-Type: application/json" \
-d '{
"status": "active",
"items": [
{
"media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
"caption": "New set tonight",
"hashtags": [
"string"
]
}
],
"name": "Lena",
"per_day": 1,
"window_start": "string",
"window_end": "string",
"week_days": [
"MO"
],
"timezone": "Europe/Paris",
"presence_seconds": 300,
"post_auto_action": "delete",
"then_delete_seconds": 300,
"order": "random",
"audiences": [
"subscribers"
],
"caption": "New set tonight",
"is_public": true,
"playlists": [
"dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
],
"caption_mode": "fixed",
"hashtag_mode": "none",
"hashtags": [
"string"
],
"hashtag_set_id": "6cde5083-2767-4f94-a83d-766741432b2f",
"stop_when_all_published": true
}'{
"id": "e8cff80c-0097-432c-a65c-9f83fdd1bb31",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"type": "post",
"status": "active",
"paused_reason": "string",
"per_day": 1,
"window_start": "string",
"window_end": "string",
"week_days": [
"MO"
],
"timezone": "Europe/Paris",
"presence_seconds": 300,
"post_auto_action": "delete",
"then_delete_seconds": 300,
"order": "random",
"audiences": [
"subscribers"
],
"is_public": true,
"playlists": [
"dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
],
"caption_mode": "fixed",
"caption": "New set tonight",
"hashtag_mode": "none",
"hashtags": [
"string"
],
"hashtag_set_id": "6cde5083-2767-4f94-a83d-766741432b2f",
"stop_when_all_published": true,
"items": [
{
"media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
"caption": "New set tonight",
"hashtags": [
"string"
]
}
],
"created_at": "2026-10-12T21:14:00.000Z",
"next_sends": [
{
"publication_id": "6136681c-548b-4fca-a86b-8f73b2926652",
"scheduled_at": "2026-10-14T19:00:00.000Z",
"occurrence_at": "2026-10-12T21:14:00.000Z",
"media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
"caption": "New set tonight",
"hashtags": [
"string"
]
}
]
}Parameters
Headers
Fansquare-VersionstringrequiredAPI version to pin. Accepts the mineral name or the release date of a version.
Path
rotation_idstringrequiredFansquare rotation id (the
idfield of rotation items).format uuid
Body
application/json
statusstringpausedstops it (its planned sends are removed);activeresumes it.Valuesactivepauseditemsarray of objectsReplaces the pool.
min items 1max items 100media_uuidstringrequiredMYM media uuid of the creator's vault (as
media_uuidof a publication or a rotation).format uuidcaptionstringCaption of this media (
caption_mode=per_item).max length 1500hashtagsarray of stringsHashtags of this media (
hashtag_mode=per_item). MYM hashtags, normalized as MYM keeps them: a leading#removed, lowercase, accents stripped, then 3 to 30 letters, digits or underscores; duplicates count once. A post carries 5 at most.max length 100max items 100
namestringName shown in Fansquare.
min length 1max length 80per_dayintegerPosts a day (1 to 24). Public posts are capped by the MYM daily limit.
min 1max 24window_startstringStart of the daily window, HH:mm in
timezone. Default 00:00.pattern ^(([01]\d|2[0-3]):[0-5]\d|24:00)$window_endstringEnd of the daily window, HH:mm in
timezone,24:00allowed. Default 24:00.pattern ^(([01]\d|2[0-3]):[0-5]\d|24:00)$week_daysarray of stringsDays it publishes on. Empty or absent: every day.
ValuesMOTUWETHFRSASUmax items 7timezonestringIANA time zone of the window, e.g.
Europe/Paris.min length 1max length 100presence_secondsinteger | null> 0max 2592000post_auto_actionstringAfter
presence_seconds: delete the post (default) or make it private.Valuesdeletepass_privatethen_delete_secondsinteger | nullnull removes the final deletion.
> 0max 2592000orderstringOrder the media go out in (default random).
Valuesrandomsequentialaudiencesarray of stringsStory audiences (stories only, required for a story).
Valuessubscribersinterestedex_subscriberseveryonecaptionstringCaption of every post (
caption_mode=fixed).max length 1500is_publicbooleanPost visibility (posts only). Default public.
playlistsarray of stringsMYM playlist uuids each post is added to.
format uuidcaption_modestringfixed(default):caption;per_item: the caption of each media.Valuesfixedper_itemhashtag_modestringPosts only.
none(default),fixed(hashtags),per_item(the hashtags of each media) orset(5 drawn fromhashtag_set_id).Valuesnonefixedper_itemsethashtagsarray of stringsHashtags of every post (
hashtag_mode=fixed). MYM hashtags, normalized as MYM keeps them: a leading#removed, lowercase, accents stripped, then 3 to 30 letters, digits or underscores; duplicates count once. A post carries 5 at most.max length 100max items 100hashtag_set_idstring | nullnull removes the hashtag set.
format uuidstop_when_all_publishedbooleanDefault true: stop when every media of the pool is already on the account, instead of posting one twice.
Response
OK, application/json
idstringrequiredFansquare rotation id. Path parameter of the /v1/rotations/{rotation_id} routes.
creator_idstringrequiredFansquare creator id (see GET /v1/creators).
namestringrequiredtypestringrequiredA rotation of feed posts or of stories.
Valuespoststorystatusstringrequiredactivepublishes;pausedpublishes nothing (seepaused_reason);completedpublished every media of its pool and stopped.Valuesactivepausedcompletedpaused_reasonstring | nullrequiredWhy it stopped by itself:
empty_pool,consecutive_failures(3 sends failed in a row),no_media_available(every media is already on the account). null when paused by hand or active.per_dayintegerrequiredPosts a day.
window_startstringrequiredStart of the daily window, HH:mm in
timezone.window_endstringrequiredEnd of the daily window, HH:mm in
timezone(24:00= end of day).week_daysarray of stringsrequiredDays it publishes on. Empty: every day.
ValuesMOTUWETHFRSASUtimezonestringrequiredIANA time zone of the window and the days.
presence_secondsinteger | nullrequiredHow long each post stays public (or each story online), in seconds, before
post_auto_action.post_auto_actionstringrequiredWhat happens to a post after
presence_seconds.Valuesdeletepass_privatethen_delete_secondsinteger | nullrequiredFinal deletion after the post was made private, in seconds since publishing. null: it stays private.
orderstringrequiredOrder the media go out in.
Valuesrandomsequentialaudiencesarray of stringsrequiredStory audiences. Empty for posts.
Valuessubscribersinterestedex_subscriberseveryoneis_publicboolean | nullrequiredPost visibility. null for stories.
playlistsarray of stringsrequiredMYM playlist uuids each post is added to.
caption_modestringrequiredfixed:captionon every post;per_item: the caption of each media.Valuesfixedper_itemcaptionstring | nullrequiredCaption of every post when
caption_modeisfixed.hashtag_modestringrequiredWhere the hashtags of each post come from: none,
hashtagson every post, the hashtags of each media, or 5 drawn from the hashtag sethashtag_set_id(a different 5 from one post to the next).Valuesnonefixedper_itemsethashtagsarray of stringsrequiredHashtags of every post when
hashtag_modeisfixed.hashtag_set_idstring | nullrequiredHashtag set drawn from when
hashtag_modeisset(see GET /v1/hashtag-sets).stop_when_all_publishedbooleanrequiredtrue: the rotation stops when every media of the pool is already on the account, instead of posting one twice.
itemsarray of objectsrequiredThe pool, in order.
media_uuidstringrequiredMYM media uuid of the creator.
captionstring | nullrequiredCaption of this media, used when
caption_modeisper_item.hashtagsarray of stringsrequiredHashtags of this media, used when
hashtag_modeisper_item.
created_atstringrequiredformat date-timenext_sendsarray of objectsrequiredThe next sends already planned (the next days, 10 at most), with the media, caption and hashtags each will carry. A change of the rotation re-plans them.
publication_idstringrequiredThe publication this send is (GET /v1/publications/{publication_id}).
scheduled_atstringrequiredWhen it goes out.
format date-timeoccurrence_atstring | nullrequiredThe slot of the rotation it fills: pass it to skip_rotation_occurrence to skip this send.
format date-timemedia_uuidstring | nullrequiredcaptionstring | nullrequiredhashtagsarray of stringsrequiredThe hashtags this post will carry.
curl -X PATCH 'https://api.fansquare.so/v1/rotations/e8cff80c-0097-432c-a65c-9f83fdd1bb31' \
-H "Authorization: Bearer $API_KEY" \
-H "Fansquare-Version: Amethyste" \
-H "Content-Type: application/json" \
-d '{
"status": "active",
"items": [
{
"media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
"caption": "New set tonight",
"hashtags": [
"string"
]
}
],
"name": "Lena",
"per_day": 1,
"window_start": "string",
"window_end": "string",
"week_days": [
"MO"
],
"timezone": "Europe/Paris",
"presence_seconds": 300,
"post_auto_action": "delete",
"then_delete_seconds": 300,
"order": "random",
"audiences": [
"subscribers"
],
"caption": "New set tonight",
"is_public": true,
"playlists": [
"dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
],
"caption_mode": "fixed",
"hashtag_mode": "none",
"hashtags": [
"string"
],
"hashtag_set_id": "6cde5083-2767-4f94-a83d-766741432b2f",
"stop_when_all_published": true
}'{
"id": "e8cff80c-0097-432c-a65c-9f83fdd1bb31",
"creator_id": "m81IhLxdhzDGYs54rNp2",
"name": "Lena",
"type": "post",
"status": "active",
"paused_reason": "string",
"per_day": 1,
"window_start": "string",
"window_end": "string",
"week_days": [
"MO"
],
"timezone": "Europe/Paris",
"presence_seconds": 300,
"post_auto_action": "delete",
"then_delete_seconds": 300,
"order": "random",
"audiences": [
"subscribers"
],
"is_public": true,
"playlists": [
"dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
],
"caption_mode": "fixed",
"caption": "New set tonight",
"hashtag_mode": "none",
"hashtags": [
"string"
],
"hashtag_set_id": "6cde5083-2767-4f94-a83d-766741432b2f",
"stop_when_all_published": true,
"items": [
{
"media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
"caption": "New set tonight",
"hashtags": [
"string"
]
}
],
"created_at": "2026-10-12T21:14:00.000Z",
"next_sends": [
{
"publication_id": "6136681c-548b-4fca-a86b-8f73b2926652",
"scheduled_at": "2026-10-14T19:00:00.000Z",
"occurrence_at": "2026-10-12T21:14:00.000Z",
"media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
"caption": "New set tonight",
"hashtags": [
"string"
]
}
]
}