-
assigned issue to
When trying to create schema options with REST API, get 415 error
Issue #34
invalid
I am trying to create the options for a schema using the REST API called from a script instead of through the Jira API browser. When I submit an option using JSON, I get a “415 Unsupported Media Type” error.
Content type sent is ‘application/json’. URL is https://ala-jira-test.EXAMPLE.com/rest/treecf/1.0/admin/option/update
JSON is:
{
"schemaId" : "1",
"parentId" : null,
"name" : "TestValue"
}
Please advise.
Comments (4)
-
repo owner -
repo owner Hmm. I can’t reproduce this error.
In Atlassian REST API Browser
In Insomnia:
You send post request?
-
reporter - changed status to resolved
The error was in the script. Please close this issue. My apologies.
-
repo owner - changed status to invalid
- Log in to comment
I am trying to create the options for a schema using the REST API called from a script instead of through the Jira API browser. When I submit an option using JSON, I get a “415 Unsupported Media Type” error.
Content type sent is ‘application/json’. URL is https://ala-jira-test.EXAMPLE.com/rest/treecf/1.0/admin/option/update
JSON is:
{
"schemaId" : "1",
"parentId" : null,
"name" : "TestValue"
}
Please advise.