Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
0
-
1
-
Description
Problem Definition
According to REST API /rest/api/2/settings/baseUrl docs ( see settings-setBaseURL)
- Jira expects "application/json" content type for the request:
The JIRA REST API uses JSON as its communication format ..
- and the example shows that simple string should be used as a payload:
EXAMPLE http://jira.atlassian.com/
However, according to JSON specification strings should be quoted, which makes the payload invalid JSON.
Suggested Solution
Change the API so that settings/baseUrl operation used JSON as a payload and update docs accordingly.
Workaround
Use unquoted string as a payload as documented.