FansquareAPI reference
Open the app

Publications

Update a publication

PATCH/v1/publications/{publication_id}

Updates a draft or scheduled publication (attach a media, edit the caption/audiences, reschedule). Setting scheduled_at on a draft schedules it (a media is required). 404 if it does not exist.

Required scopewrite:publications
Rate limit60 requests per minute
curl -X PATCH 'https://api.fansquare.so/v1/publications/6136681c-548b-4fca-a86b-8f73b2926652' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Fansquare-Version: Amethyste" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduled_at": "2026-10-14T19:00:00.000Z",
  "caption": "New set tonight"
}'
{
  "id": "6136681c-548b-4fca-a86b-8f73b2926652",
  "creator_id": "m81IhLxdhzDGYs54rNp2",
  "type": "post",
  "status": "scheduled",
  "scheduled_at": "2026-10-14T19:00:00.000Z",
  "published_at": null,
  "media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
  "caption": "New set tonight",
  "is_public": false,
  "audiences": [],
  "playlists": [
    "dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
  ],
  "auto_action": "none",
  "auto_action_seconds": null,
  "failure_reason": null,
  "created_at": "2026-10-12T21:14:00.000Z"
}

Parameters

Headers

  • Fansquare-Versionstringrequired

    API version to pin. Accepts the mineral name or the release date of a version.

Path

  • publication_idstringrequired

    Fansquare publication id (the id field of publication items).

    format uuid

Body

application/json

  • scheduled_atstring

    Setting a date on a draft schedules it (requires a media).

    format date-time
  • media_uuidstring

    Attach or replace the MYM media.

    format uuid
  • captionstring

    New post caption (posts only).

    max length 1500
  • is_publicboolean

    New post visibility (posts only).

  • audiencesarray of strings

    Replaces the story audiences (stories only).

    Valuessubscribersinterestedex_subscriberseveryone
  • playlistsarray of strings

    Replaces the MYM playlist uuids (posts only).

    format uuid
  • auto_actionstring

    Automatic action after publish.

    Valuesnonedeletepass_private
  • auto_action_secondsinteger | null

    Delay before the auto action (seconds). null removes it.

    > 0max 2592000

Response

OK, application/json

  • idstringrequired

    Fansquare publication id. Path parameter of the /v1/publications/{publication_id} routes.

  • creator_idstringrequired

    Fansquare creator id (see GET /v1/creators).

  • typestringrequired

    A feed post or a story.

    Valuespoststory
  • statusstringrequired

    draft (no date yet), scheduled, published, failed (see failure_reason) or cancelled.

    Valuesscheduledpublisheddraftfailedcancelled
  • scheduled_atstringrequired

    When the publication is scheduled (ISO 8601). A draft carries a placeholder value.

    format date-time
  • published_atstring | nullrequired

    When it was actually published (ISO 8601), or null.

    format date-time
  • media_uuidstring | nullrequired

    MYM media uuid attached to the publication. null for a draft without media yet.

  • captionstring | nullrequired

    Post caption. null for stories.

  • is_publicboolean | nullrequired

    Post visibility. null for stories.

  • audiencesarray of stringsrequired

    Story audiences. Empty for posts.

    Valuessubscribersinterestedex_subscriberseveryone
  • playlistsarray of stringsrequired

    MYM playlist uuids the post is added to. Empty for stories.

  • auto_actionstringrequired

    Automatic action after publishing: none, delete (remove it) or pass_private (make it private).

    Valuesnonedeletepass_private
  • auto_action_secondsinteger | nullrequired

    Delay in seconds between publishing and the automatic action, or null without one.

  • failure_reasonstring | nullrequired

    Why publishing failed, when status is failed; null otherwise.

  • created_atstringrequired

    When the publication was created (ISO 8601).

    format date-time
curl -X PATCH 'https://api.fansquare.so/v1/publications/6136681c-548b-4fca-a86b-8f73b2926652' \
  -H "Authorization: Bearer $API_KEY" \
  -H "Fansquare-Version: Amethyste" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduled_at": "2026-10-14T19:00:00.000Z",
  "caption": "New set tonight"
}'
{
  "id": "6136681c-548b-4fca-a86b-8f73b2926652",
  "creator_id": "m81IhLxdhzDGYs54rNp2",
  "type": "post",
  "status": "scheduled",
  "scheduled_at": "2026-10-14T19:00:00.000Z",
  "published_at": null,
  "media_uuid": "b12eacb2-afea-4959-a0d0-b685e6b49279",
  "caption": "New set tonight",
  "is_public": false,
  "audiences": [],
  "playlists": [
    "dc858a1c-bfca-4ab8-a445-cc2d76e1b784"
  ],
  "auto_action": "none",
  "auto_action_seconds": null,
  "failure_reason": null,
  "created_at": "2026-10-12T21:14:00.000Z"
}