Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to add attachment to asset object in Jira via REST API (OAuth)

Allan Mildzi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2025

Hi everybody,

I currently have an issue when adding an attachment to an asset object via REST API. I get a 401 error every time I try to get an attachment from an object, or add a new one with a message telling that scopes are not installed for this app. Here is the URL used to do so :

 

{baseURL}/jsm/assets/workspace/{jira.workspace.id}/v1/attachments/object/

I couldn't find this URL on the official documentation of the Assets REST API.

Also note that it works using the Basic Auth authentication, but not using with OAuth2 (Bearer token).

Is it a scope related problem ? If so, what are the one that I must enable to make it work.

 

Best regards,

Allan

1 answer

1 accepted

4 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 6, 2025

Hi @Allan Mildzi 

Welcome to the community.

Currently there is no endpoint to add attachments to an asset.

See, JSDCLOUD-10454 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events