-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
media_update return Error 404: Record not found #358
Comments
Hey, I don't think we've implemented editing for media dicts yet - sorry. I've been quite busy, as is tradition, with all kinds of other things - I hope to get to Mastopy again sometime soon. |
According to the API docs, |
Just leaving notes from my own investigation here in case they're useful. This is a real live request body from the Mastodon web UI that updates a media description: |
Here's the working code I ended up with (given a source = mc.status_source(status.id)
source['status'] = source['text']
del source['text']
source['media_ids'] = list(map(lambda a: str(a.id), status.media_attachments))
source['media_attributes'] = [{
'id': attachment_id,
'description': description,
}]
mc._Mastodon__api_request('PUT', '/api/v1/statuses/{0}'.format(str(status.id)), source, use_json=True) |
Hi, I'm trying to update media description of an uploaded image, I get its id from the status dict but media_update always returns "Record not found..."
The text was updated successfully, but these errors were encountered: