Your own automation sends the numbers of a post it published
Your own automation sends the numbers of a post it published (posts:publish)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
Only targets on a channel of provider custom (422 otherwise). Replaces the stored numbers.
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
id*stringchannel*stringThe channel id of the target
Idempotency-Key?stringReplays the stored response when the same key is repeated with the same method, path,
query string and body within 24 hours (422 idempotency_mismatch with a different
request, 409 idempotency_in_progress while the first one runs). Not applied to
multipart uploads or to responses that carry a secret.
length <= 200application/json- body
A post's numbers on one platform; a missing field is a number the platform does not give
impressions?integer0 <= valuelikes?integer0 <= valuereposts?integer0 <= valuereplies?integer0 <= valuequotes?integer0 <= valuebookmarks?integer0 <= valuelink_clicks?integer0 <= valueOK
application/json- response
channel_id*stringchannel_name*stringprovider*stringstatus*stringexternal_url*stringavailable*booleanThe platform reports numbers (or your automation sends them)
metrics*|nullupdated_at*|date-timeerror?stringWhy the last read failed
curl -X PUT 'https://staqly.example.com/v1/posts/string/targets/string/metrics' \ -H 'Content-Type: application/json' \ -d '{}'{ "channel_id": "string", "channel_name": "string", "provider": "string", "status": "string", "external_url": "string", "available": true, "metrics": { "impressions": 0, "likes": 0, "reposts": 0, "replies": 0, "quotes": 0, "bookmarks": 0, "link_clicks": 0 }, "updated_at": "2019-08-24T14:15:22Z", "error": "string"}