Forums

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

Creating a request using REST API

Sandy L
Contributor
February 22, 2019

If I want to use the REST API to emulate the process of someone sending a email to the support email address, can I just use the requester's email in the raiseOnBehalfOf field?

For example, the request body would look something like this:

{"serviceDeskId":"4","requestTypeId":"50","requestFieldValues":{"summary":"Request JSD help via REST","description":"I need a new *mouse* for my Mac"}, "raiseOnBehalfOf":"jane.doe@example.com"}

I have tested this and it works. However, the documentation says the for raiseOnBehalfOf, name is being deprecated in favor of accountId. Will this impact the API call above once the deprecation period is over?

 

1 answer

1 accepted

0 votes
Answer accepted
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2019
Hi Sandy,
Thank you for reaching out to Atlassian Community!
I’ve checked on the API documentation that you mentioned and also on the migration guide that name was already deprecated.
Answering your question, yes, when some parameter is deprecated it will affect the API call and you will have to update your scripts.
If you have any other question, please let us know.
Regards,
Angélica

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events