pop

Remove an attachment from a piece of content on the platform.

Parameters

NameDescription
user_id required The user that’s performing the action.
owner_xid required The cross reference id that the uploaded content is attached to. (ie: statusId, post_id, message_id, etc.)
owner_type required The cross reference content type that the uploaded content is attached to. (ie: blog_post, photo, video, photo_gallery, user_profile, group, forum_post, forum_thread, forum, message, site, audio, audio_gallery, podcast, petition, document, article, article_version, calendar_event, calendar, wiki_page, ugc_status, ext_content, discussion_post)
type required The type of content that’s being uploaded. (ie: photo, video, document)
name required The user facing name of the downloadable item – including the file extension.
site_id required The site id that the attachment is associated with. Almost always should be the same value that the owning piece of content has.

Request Syntax

https://services.onesite.com/1/attachment/pop.json?devkey=[devkey]&site_id=234714047&attachment_id=49897&user_id=229928503

JSON Response