Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

No Content (200) when Adding a Customer to a Service Desk Project via API - Username?

matt_ball
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!
August 28, 2024

I've successfully created a new customer via the API, but when I wanted to create a request to add that customer to a specific service desk project, the schema calls for a 'username' which is a field I've never seen associated with a customer record.

The response I get from the customer creation request contains the following (values redacted):


{
"accountId": "",
"emailAddress": "",
"displayName": "",
"active": true,
"timeZone": "",
"_links": {
"jiraRest": "",
"avatarUrls": {
},
"self": ""
}
}
The schema for the Add-customers method can be found here.



Since there's no GET method for the /servicedeskapi/customer endpoint, where do you find the username for a customer?

1 answer

1 accepted

1 vote
Answer accepted
matt_ball
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!
August 28, 2024

I'm not sure how I ended up on that documentation, but the current documentation calls for the use of AccountId, which is returned during the customer creation process.

Passing that value in the body of the request worked as expected.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events