Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 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
languagetext
titleCreate a new request without an affiliation
{
    "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

  1. A firstname and surname;
  2. A firstname and company name; or
  3. 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.