...
The link object parameters and create request payload can also come in as "application/json". This can simplify the clients implementation. For example:, to create a request without knowing an affiliation, you can
Code Block | ||||
---|---|---|---|---|
| ||||
{ "type_id": 30, "subject": "The website has become unresponsive", "body": "Your home page is no timing out?", "affiliation": { "contact" : { "firstname": "Jack", "surname": "Black" }, "company": { "name": "Jack and Co.", "phone": "+13 3234 2324" }, "email": "jack.black@jack-and-co.com", "phone": "64 444 444 444" } } |
Note |
---|
Don't forget to set the content type to "application/json" |
Requirements
The create request endpoint requires a type id, title, body and affiliation to create on behalf of. If you do not have an affiliation id you must provide
- A firstname and surname;
- A firstname and company name; or
- An email
If you provide a firstname, surname, email and company name, we will attempt to match it to an existing affiliation for you. Each of these fields must exactly match for them to be considered the same person. If you provide a firstname, surname and email without a company name, we will also attempt to match to an existing affiliation using an exact match. For this reason it's recommended to send a firstname, surname, company name and email when possible, where company name is optional.
Handling the response
Please see the get request for controlling the response.