Thanks for the question, @wangdao1.
The POST accounts/:account_id/account_media endpoint only accepts newly uploaded images. That is, right after the POST media/upload step.
If you’re curious about what “newly uploaded” means, it’s essentially before the image expires. In the upload response, there’s an expires_after_secs field:
{
"media_id": 1037471778908426240,
"media_id_string": "1037471778908426240",
"size": 1110205,
"expires_after_secs": 86400,
"image": {
"image_type": "image/jpeg",
"w": 300,
"h": 250
}
}
After this point, it will not be possible to add this image as an account_media entity.
Hope this helps. Thanks!