Home

API to create non-pending Attachments on yammer

%3CLINGO-SUB%20id%3D%22lingo-sub-692449%22%20slang%3D%22en-US%22%3EAPI%20to%20create%20non-pending%20Attachments%20on%20yammer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-692449%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20CREATE%20an%20Attachment%20as%20mentioned%20here%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fpending_attachments%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fpending_attachments%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20Is%20there%20a%20way%20to%20create%20an%20attachment%20which%20is%20not%20pending%3F%3C%2FP%3E%3CP%3EAlso%20DELETING%20any%20kind%20of%20attachment%20is%20throwing%20500%20error%3A%3C%2FP%3E%3CP%3EUsing%20this%20API%3A%20%3CSTRONG%3EDELETE%26nbsp%3B%3CSPAN%20class%3D%22definition-url%20ng-binding%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22definition-path%20ng-binding%22%3E%2Fpending_attachments%2F%3Aid%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20in%20this%20case%20I%20have%20tried%20using%20this%20API%20%3CSTRONG%3EDELETE%26nbsp%3B%3CSPAN%20class%3D%22definition-url%20ng-binding%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.yammer.com%2Fapi%2Fv1%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22definition-path%20ng-binding%22%3E%2Fuploaded_files%2F%3Afile_id%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20this%20API%20only%20allows%20to%20DELETE%20attachment%20which%20is%20not%20pending%2C%20and%20for%20pending%20attachments%20it%20is%20throwing%20500%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fuploaded_filesid%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.yammer.com%2Fdocs%2Fuploaded_filesid%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-692449%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYammer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
FFB01
New Contributor

I am trying to CREATE an Attachment as mentioned here:

https://developer.yammer.com/docs/pending_attachments

 

But Is there a way to create an attachment which is not pending?

Also DELETING any kind of attachment is throwing 500 error:

Using this API: DELETE https://www.yammer.com/api/v1/pending_attachments/:id

 

So, in this case I have tried using this API DELETE https://www.yammer.com/api/v1/uploaded_files/:file_id

 

Now this API only allows to DELETE attachment which is not pending, and for pending attachments it is throwing 500 error.

 

https://developer.yammer.com/docs/uploaded_filesid

 

Related Conversations
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
14 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
23 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies