I am creating an incident record for a user who does not have an account in the SWSD application yet. I use the REST API and Json.
I am checking for the existence of the email account in the users table, and if the user does not exist, I create a user record with the Requester role.
This all works well.
I then create the incident record with Json similar to the following:
{
"name": "Test",
"description": "<p>Testing</p>\n\n<p>Name: Lee Durrance<br />Email: confusion@gmail.com<br />Phone: (850) 555-5555</p>",
"requester": {
"email": "confusion@gmail.com"
}
}
The incident record is created, but the Requester is the account used to access the API, rather than the requester specified in the Json.
What am I doing wrong?
Thanks!