"issuetype":"The issue type selected is invalid."

I’m trying to create an issue with jira-client - npm

for that I created a code snippet based on what a bare minimum body should be which I got from https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

const issue = {
	fields: {
		summary: "Test for Jira utility",
		issuetype: {
			id: issueType
		},
		project: {
			id: projectId
		},
		reporter: {
			id:reporterId
		},
	}
  }

jira
  .addNewIssue(issue)
  .then(result => {
	console.log(result)
  })
  .catch(err => {
	console.log(err)
  })

where the issuetype is 10001 that is story

but while executing I’m getting

Error: {"errorMessages":[],"errors":{"issuetype":"The issue type selected is invalid."}}
    at JiraApi.doRequest ((Redacted for obv reasons)\jira-util\node_modules\jira-client\lib\jira.js:347:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Why is this the case ?

Thank you in advance