Atlassian Connect provides a set of REST APIs specifically designed for use by apps.
GET /wiki/rest/atlassian-connect/1/addons/{addonKey}/properties
Returns a list of property keys for the given app key.
Permissions required: Only a Connect app whose key matches addonKey
can make this request. Additionally, Forge apps can access Connect app properties (stored against the same app.connect.key
).
Connect app scope required: NONE
OAuth 2.0 scope required: read:app-data:confluence
Location | Name | Type | Description |
---|---|---|---|
Path |
addonKey
|
string
| The key of the app, as defined in its descriptor |
200
- application/json1 2{ "keys" : [ { "key" : "first_key", "self" : "https://your-site.atlassian.net/wiki/rest/atlassian-connect/1/addons/my-add-on/properties/first_key" }, { "key" : "another_key", "self" : "https://your-site.atlassian.net/wiki/rest/atlassian-connect/1/addons/my-add-on/properties/another_key" } ] }
401
- application/jsonRequest without credentials or with invalid credentials, e.g., by an uninstalled app.
404
- application/jsonRequest issued by a user with insufficient credentials, e.g., for an app's data by anyone but the app itself, or for a app that does not exist.
GET /wiki/rest/atlassian-connect/1/addons/{addonKey}/properties/{propertyKey}
Returns an app property for the given property key.
Permissions required: Only a Connect app whose key matches addonKey
can make this request. Additionally, Forge apps can access Connect app properties (stored against the same app.connect.key
).
Connect app scope required: NONE
OAuth 2.0 scope required: read:app-data:confluence
Location | Name | Type | Description |
---|---|---|---|
Path |
addonKey
|
string
| The key of the app, as defined in its descriptor |
Path |
propertyKey
|
string
| The key of the property |
Query |
jsonValue
|
boolean
|
Set to |
200
- application/json1 2{ "key" : "abcd", "value" : true, "self" : "https://your-site.atlassian.net/wiki/rest/atlassian-connect/1/addons/my-add-on/properties/abcd" }
400
- application/jsonProperty key longer than 127 characters.
401
- application/jsonRequest without credentials or with invalid credentials, e.g., by an uninstalled app.
404
- application/jsonRequest to get a property that does not exist.
404
- application/jsonRequest issued by a user with insufficient credentials, e.g., for an app's data by anyone but the app itself, or for a app that does not exist.
PUT /wiki/rest/atlassian-connect/1/addons/{addonKey}/properties/{propertyKey}
Creates or updates a property.
Permissions required: Only a Connect app whose key matches addonKey
can make this request. Additionally, Forge apps can access Connect app properties (stored against the same app.connect.key
).
Connect app scope required: NONE
OAuth 2.0 scope required: write:app-data:confluence
Location | Name | Type | Description |
---|---|---|---|
Path |
addonKey
|
string
| The key of the app, as defined in its descriptor |
Path |
propertyKey
|
string
| The key of the property |
200
- application/jsonProperty updated.
201
- application/jsonProperty created.
400
- application/jsonProperty key longer than 127 characters.
400
- application/jsonRequest made with invalid JSON.
401
- application/jsonRequest without credentials or with invalid credentials, e.g., by an uninstalled app.
404
- application/jsonRequest to get a property that does not exist.
404
- application/jsonRequest issued by a user with insufficient credentials, e.g., for an app's data by anyone but the app itself, or for a app that does not exist.
DELETE /wiki/rest/atlassian-connect/1/addons/{addonKey}/properties/{propertyKey}
Deletes an app property.
Permissions required: Only a Connect app whose key matches addonKey
can make this request. Additionally, Forge apps can access Connect app properties (stored against the same app.connect.key
).
Connect app scope required: NONE
OAuth 2.0 scope required: write:app-data:confluence
Location | Name | Type | Description |
---|---|---|---|
Path |
addonKey
|
string
| The key of the app, as defined in its descriptor |
Path |
propertyKey
|
string
| The key of the property |
204
- application/jsonProperty deleted.
400
- application/jsonProperty key longer than 127 characters.
401
- application/jsonRequest without credentials or with invalid credentials, e.g., by an uninstalled app.
404
- application/jsonRequest to get a property that does not exist.
404
- application/jsonRequest issued by a user with insufficient credentials, e.g., for an app's data by anyone but the app itself, or for a app that does not exist.
Rate this page: