I am following this documentation - https://developer.atlassian.com/platform/marketplace/registering-apps/#installing-an-app-using-the-rest-api to upload my custom plugin through rest api call.
However its not getting uploaded, and i am getting 202 as response.
One clarification i need regarding the jar file location- Can i keep my plugin jar in my local and give that location while hitting the post call ?
I am passing the below headers
- Using the actual host name and port and path for your target Atlassian application.
- The token value should be the value of the
upm-token header you just received. - yes - In the request, set the Accept header to: "
application/json" - Set the
Content-Type for the data to: "application/vnd.atl.plugins.install.uri+json" - In the body,
{ "pluginUri": "${plugin-xml-url}",
"pluginName": "the app name" }
Here, in the plugin-xml-url, should i pass my jar file location ? or atlassian-plugin-xml location? if so, can i have my jar file in my local and give that location ?
Any help is highly appreciated ! Thanks in Advance !