Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

service desk api - Invalid project key 'customer'

Nadeesh MDCP May 6, 2019

Hi,

I am trying to use servicedesk-rest-api (rest/servicedeskapi/servicedesk/customer) to create a customer  with json body

{"displayName": "Name",
"email": "email"
}

but it fails with a 404 error

{
"errorMessage": "Invalid project key 'customer'",
"i18nErrorMessage": {
"i18nKey": "sd.error.project.by.key.not.found",
"parameters": [
"customer"
]
}
}

I used api token with basic auth and I have administrator access for that service desk project.

Can someone please tell what does the error really means

1 answer

1 accepted

0 votes
Answer accepted
Atlassian CoreIT
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2019

Hi,

that means there is no API endpoint on that URL.

https://en.wikipedia.org/wiki/HTTP_404

 

Based on documentation you could try to use URL below

https://your-domain.atlassian.net/rest/servicedeskapi/customer

https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-customer-post 

Nadeesh MDCP May 6, 2019

Thanks. I did not see servicedesk in the url. 

Now it worked

Suggest an answer

Log in or Sign up to answer