For uploading app/image files
Get links to permitted asset resources.
Forge and OAuth2 apps cannot access this REST resource.
This request has no parameters.
1
2
3
curl --request GET \
--url 'https://marketplace.atlassian.com/rest/2/assets' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"_links": {
"self": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"artifact": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"fetchArtifact": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"imageByType": {
"template": "<string>",
"type": "<string>",
"name": "<string>"
}
}
}Use this resource to upload an app artifact (.jar or .obr) to Marketplace, so it can be used by an app version.
The request body is the file data.
If successful, the resource will respond with a resource link in _links.self that can be used as the artifact link when creating an app or app version. The response may include additional properties; other than fileInfo, these are used internally and should be ignored.
This resource requires authentication.
Example: This curl command uploads the artifact present in a file ('my-file.jar').
1 2 3 4 5 6curl --request POST \ --url https://marketplace.atlassian.com/rest/2/assets/artifact \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: multipart/form-data' \ --form file=@"my-file.jar"
Forge and OAuth2 apps cannot access this REST resource.
string
Required1
2
3
4
curl --request POST \
--url 'https://marketplace.atlassian.com/rest/2/assets/artifact' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'1
2
3
4
5
6
7
8
9