The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

REST API to Update ObjectAttribute Auth

kniep
July 11, 2023

Hey, I am trying to update an objectAttribute using the restAPI documentation:

https://developer.atlassian.com/cloud/assets/rest/api-group-objecttypeattribute/#api-group-objecttypeattribute

While I like the documentation page (with curl commands and all), it does not mention the authorization at all. I am able to use the `import` API sucessfully, but that one fails.

Can you clear up some things for me.

1. The external Import Asset API is using common URL (api.atlassian.com) and not the company domain (xyz.atlassian.net), correct? The baseURL should be that.

2. What is the authentication in that case? Do I use the bearer token I generated for the external import, it does not seem so

 

Thanks in advance - I spend way to much time on that one

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
kniep
July 11, 2023

Ah geezes, the token is the password in basic auth.

OMFG, just took me half a day. :)

1. It's the common url, since the username is an email with the company domain, it just knows who to route you.

2. It's BASIC auth with the email as user and the API token (under the users preference)

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events