When trying to create schema options with REST API, get 415 error

Create issue
Issue #34 invalid
Joe Mallon created an issue

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)

  1. Юрий Обоз repo owner

    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.

  2. Юрий Обоз repo owner

    Hmm. I can’t reproduce this error.

    In Atlassian REST API Browser

    In Insomnia:

    You send post request?

  3. Log in to comment