Update a recycling rule
Changes a rule’s variants, its count or until (null takes it away), or pauses it (paused true) or sets it going again (false); what it leaves out stays. A post already made keeps what it says. An ended rule changes no more (RecyclingRuleEnded): resume it. Needs post:schedule, or to be the rule’s starter acting as they started it: in the web app, through the same application or with the same API key.
/api/v1/automations/recycling/{ruleId}AuthorizationJeton Bearer · headerrequisAn API key of a workspace, starting with peal_, or a partner key, starting with peal_partner_.
__Secure-peal.session_tokenClé d'API · cookierequisThe session cookie the web app's sign-in sets. Requests that change something must come from the web app's origin.
ruleIdstringrequispeal-workspacestringThe id of the workspace the request acts in. An API key and an application's token bound to a workspace act in their own workspace without it; a session, the command line's sign-in and a partner key send it.
application/jsoncountinteger | nullAfficher les propriétésMasquer les propriétés
integernullpausedbooleanuntilCalendarDay | nullAfficher les propriétésMasquer les propriétés
stringnullvariantsRecyclingVariant[]Afficher les propriétésMasquer les propriétés
RecyclingVariantoverridesTextOverride[]Afficher les propriétésMasquer les propriétés
TextOverridechannelIdstringrequismediaMediaAttachment[]Afficher les propriétésMasquer les propriétés
MediaAttachmentaltTextstringrequismediaIdstringrequistextstringrequistextstringrequisRecyclingRule
anchorAtstringrequiscomingRecyclingComing[]requisAfficher les propriétésMasquer les propriétés
RecyclingComingatstringrequisoccurrenceintegerrequisvariantinteger | nullrequisAfficher les propriétésMasquer les propriétés
integernullcountinteger | nullrequisAfficher les propriétésMasquer les propriétés
integernullcreatedAtstringrequisendedReasonRecyclingEndReason | nullrequisAfficher les propriétésMasquer les propriétés
stringnulleveryRecyclingIntervalrequisAfficher les propriétésMasquer les propriétés
countintegerrequisunitRecyclingUnitrequisdaysweeksmonthsidstringrequislastDueAtstringrequismadeintegerrequisnextDueAtstring | nullrequisAfficher les propriétésMasquer les propriétés
stringnullqueueIdstring | nullrequisAfficher les propriétésMasquer les propriétés
stringnullsourcePostIdstringrequisstartedBystring | nullrequisAfficher les propriétésMasquer les propriétés
stringnullstartedViaPostOriginrequisAfficher les propriétésMasquer les propriétés
idstring | nullrequisAfficher les propriétésMasquer les propriétés
stringnullnamestring | nullrequisAfficher les propriétésMasquer les propriétés
stringnullviaPostOriginViarequiswebapiKeyapplicationstatusRecyclingStatusrequisactivepausedendedtimeZonestringrequisuntilCalendarDay | nullrequisAfficher les propriétésMasquer les propriétés
stringnullvariantsobject[]requisAfficher les propriétésMasquer les propriétés
objectoverridesTextOverride[]requisAfficher les propriétésMasquer les propriétés
TextOverridechannelIdstringrequismediaMediaAttachment[]Afficher les propriétésMasquer les propriétés
MediaAttachmentaltTextstringrequismediaIdstringrequistextstringrequistextstringrequisThe request names no workspace, and its credential belongs to none: send the workspace's id in the Peal-Workspace header. Nothing was done.
_tagstringrequisWorkspaceRequiredcodestringmessagestringrequestIdstringSign in, or send an API key as a bearer token: the request has no valid credentials.
_tagstringrequisUnauthenticatedcodestringmessagestringrequestIdstringThe credentials are valid but do not allow this request. reason says why: the OAuth client was not given the scope the request takes (missingScope, with scope and permission: the user connects the client again and allows it), the member's role or the API key lacks a permission (missingPermission, with permission: an owner or an admin changes the role, or creates a key with it), only a person in their own session may do it (personRequired), the key or token belongs to another workspace (wrongWorkspace), the account is suspended (suspended), a browser sent the cookie from another site (untrustedOrigin), or the workspace requires two-step verification and the member's account does not have it on (twoStepRequired: they turn it on in the web app's account settings, and their sessions, applications and command line work again at once; API keys are never refused for it).
_tagstringrequisForbiddencodestringmessagestringrequestIdstringpermissionPermissionOne action on one resource of a workspace.
activity:readads:readads:manageads:spendads:authorizeanalytics:readapiKey:createapiKey:readapiKey:updateapiKey:deleteassistant:useassistant:configurebilling:readbilling:managechannel:readchannel:connectchannel:disconnectengagement:readengagement:replyengagement:messageengagement:readMessagesinvitation:createinvitation:cancelmedia:readmedia:uploadmedia:deletemember:createmember:updatemember:deleteorganization:updateorganization:deleteorganization:securepartner:readpartner:managepost:readpost:createpost:updatepost:deletepost:schedulepost:approvepost:publishwebhook:readwebhook:managereasonForbiddenReasonmissingScopemissingPermissionpersonRequiredwrongWorkspacesuspendeduntrustedOrigintwoStepRequiredscopestringThe workspace has no post with this id. | The workspace has no recycling rule with this id. | No workspace with this id is open to the caller.
_tagstringrequisPostNotFoundcodestringmessagestringrequestIdstring_tagstringrequisRecyclingRuleNotFoundcodestringmessagestringrequestIdstring_tagstringrequisWorkspaceNotFoundcodestringmessagestringrequestIdstringThe rule ended (reason) and changes no more. Resume it when it ended for a reason that can be put right (planLimit, contentRejected, noChannels, queueFull, sourceWithdrawn); start a new rule from the post otherwise.
_tagstringrequisRecyclingRuleEndedcodestringmessagestringrequestIdstringreasonstringrequisThe rule's ending leaves no post to make: its until date comes before the next post is due (firstDueAt), or its count is already reached. Nothing was changed. | What the source post would say with some of the text variants breaks the rules of its channels' platforms: variants names each by its place, from 1, with every violation, as scheduling the post would answer them. Nothing was saved.
_tagstringrequisRecyclingEndsTooSooncodestringmessagestringrequestIdstringfirstDueAtstringrequis_tagstringrequisRecyclingVariantsInvalidcodestringmessagestringrequestIdstringvariantsobject[]requisAfficher les propriétésMasquer les propriétés
objectvariantintegerrequisviolationsContentViolation[]requisAfficher les propriétésMasquer les propriétés
ContentViolation_tagstringrequisnoChannels_tagstringrequisoverrideWithoutChannelchannelIdstringrequis_tagstringrequisoptionsWithoutChannelchannelIdstringrequis_tagstringrequisoptionsForOtherPlatformchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatoptionsPlatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequisoptionMissingchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatfieldstringrequis_tagstringrequisoptionTooLongchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatfieldstringrequislengthintegerrequismaximumintegerrequis_tagstringrequisoptionInvalidchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatfieldstringrequis_tagstringrequisemptychannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequistextTooLongchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatlengthintegerrequismaximumintegerrequisunitTextUnitrequisHow a platform measures the length of a post's text.
graphemescodePointsutf8BytesemojiBytesutf16UnitsweightedescapedUtf16Units_tagstringrequisforbiddenCharacterschannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcharactersstring[]requis_tagstringrequistooManyMediachannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcountintegerrequismaximumintegerrequis_tagstringrequistooManyPartschannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcountintegerrequismaximumintegerrequis_tagstringrequispartsNeedReconnectchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequiscommentsTurnedOffchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatfieldstringrequis_tagstringrequispollNotSupportedchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequispollChoiceCountchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcountintegerrequismaximumintegerrequisminimumintegerrequis_tagstringrequispollChoiceLengthchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatchoiceintegerrequislengthintegerrequismaximumintegerrequisunitTextUnitrequisHow a platform measures the length of a post's text.
graphemescodePointsutf8BytesemojiBytesutf16UnitsweightedescapedUtf16Units_tagstringrequispollChoiceRepeatedchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatchoiceintegerrequis_tagstringrequispollDurationOutOfRangechannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatdurationMinutesintegerrequismaximumMinutesintegerrequisminimumMinutesintegerrequis_tagstringrequispollMultipleChoicechannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequispollWithMediachannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequismediaRequiredchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequistooManyHashtagschannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcountintegerrequismaximumintegerrequis_tagstringrequistooManyMentionschannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcountintegerrequismaximumintegerrequis_tagstringrequistooManyLinkschannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcountintegerrequismaximumintegerrequis_tagstringrequistooManyVideoschannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatcountintegerrequismaximumintegerrequis_tagstringrequismixedMediachannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchat_tagstringrequismediaTypeUnsupportedchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequiscontentTypeMediaContentTyperequisimage/gifimage/jpegimage/pngimage/webpvideo/mp4video/quicktimeapplication/pdfaudio/mpegaudio/mp4audio/wav_tagstringrequismediaTooLargechannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisbyteSizeinteger<int64>requismaximuminteger<int64>requis_tagstringrequismediaTooSmallchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisbyteSizeinteger<int64>requisminimuminteger<int64>requis_tagstringrequisvideoTooLongchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisdurationMsintegerrequismaximumMsintegerrequis_tagstringrequisvideoTooShortchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisdurationMsintegerrequisminimumMsintegerrequis_tagstringrequistooManyPixelschannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisheightintegerrequiswidthintegerrequismaximumintegerrequis_tagstringrequissideOutOfRangechannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisheightintegerrequiswidthintegerrequismaximumintegerrequisminimumintegerrequis_tagstringrequissideSumTooLargechannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisheightintegerrequiswidthintegerrequismaximumintegerrequis_tagstringrequismediaTotalTooLargechannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmaximuminteger<int64>requistotalinteger<int64>requis_tagstringrequisaspectRatioUnsupportedchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequisheightintegerrequiswidthintegerrequismaximumnumber | stringrequisAfficher les propriétésMasquer les propriétés
numberstringminimumnumber | stringrequisAfficher les propriétésMasquer les propriétés
numberstring_tagstringrequisaltTextTooLongchannelIdstringrequispartintegerplatformPlatformrequisA social network a channel connects to.
xlinkedinblueskymastodonthreadsinstagramfacebooktiktokyoutubepinterestgoogleBusinessdiscordtelegramslacksnapchatmediaIdstringrequislengthintegerrequismaximumintegerrequisThis credential sent more than limit requests in windowSeconds seconds: nothing was done. Wait retryAfterSeconds seconds, as the Retry-After header says, then send the request again. Every answer to a key or a token carries the RateLimit-Policy and RateLimit headers, which say how many requests are left. policy says which limit applied: on a server that bills, a billing account without a payment method sends fewer (free), and withPaymentMethod is what a payment method gives.
_tagstringrequisTooManyRequestscodestringmessagestringrequestIdstringlimitintegerrequispolicystringdefaultfreeoverrideretryAfterSecondsintegerrequiswindowSecondsintegerrequiswithPaymentMethodinteger