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

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)

Suggest an answer

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

Atlassian Community Events