Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to add properties for addon to the repository using the provided api

Tejas Shah May 14, 2019

Hi

 

I am using my personal bitbucket account to test a feature where I have a custom addon installed in my account with the app.key as "Social-Connect-Digital-Integration" 

My account name is "tejas_shah_lv"

repository name is "Atlassian-Integration"

Property name to add is "SocialConnectAddon"

https://api.bitbucket.org/2.0/repositories/tejas_shah_lv/Atlassian-Integration/properties/Social-Connect-Digital-Integration/SocialConnectAddon

curl -X PUT \
https://api.bitbucket.org/2.0/repositories/tejas_shah_lv/Atlassian-Integration/properties/Social-Connect-Digital-Integration/SocialConnectAddon \
-H 'Accept: */*' \
-H 'Authorization: Basic <<auth>>' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Host: api.bitbucket.org' \
-H 'Postman-Token: d8623292-1ba7-4255-93e1-fea8e327ca83,fb381ac1-0946-4926-bcf3-bcca1e18d2ec' \
-H 'User-Agent: PostmanRuntime/7.11.0' \
-H 'accept-encoding: gzip, deflate' \
-H 'cache-control: no-cache' \
-H 'content-length: 19' \
-d '{
"enabled":true
}'

 

I get the following 404 response always 

{
"type": "error",
"error": {
"message": "workspace"
}
}

Any suggestions on why this might be happening?

 

Regards

Tejas 

1 answer

0 votes
Tejas Shah May 28, 2019

Has anyone worked on adding properties using the api to the repository for an addon?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events