Issue type invalid error

Hi,

I’m trying to create a new ticket via the rest API, i’m testing using curl commands. Unfortunately I am getting an error where the ‘issuetype’ selected is invalid.

If I view all available issue types using this command (https://dev-jira/rest/api/2/issue/createmeta/Release/issuetypes).

{
"self": "https://test-jira/rest/api/2/issuetype/14564",
"id": "14564",
"description": "",
"iconUrl": "https://test-jira/secure/viewavatar?size=xsmall&avatarId=13900&avatarType=issuetype",
  "name": "Release Ticket",
  "subtask": false

}

Using either of these in my curl string returns this error:
{“errorMessages”:,“errors”:{“issuetype”:“The issue type selected is invalid.”}}

\"issuetype\":{\"name\":\"Release Ticket\"}
"""issuetype""":{"""name""":"""Release Ticket"""}

Id tried using id and name or treating it like a custom field… eg. but then the error is ‘issuetype is required’

\"issuetype\":\"Release Ticket\"

Any ideas or ways to debug it with curl… such as giving me a list of allowed issuetype values?