meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
contacts [2023/09/14 18:55] – [API] johnny | contacts [2024/08/29 20:13] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Contacts ====== | ====== Contacts ====== | ||
+ | |||
+ | Each of your customer have different key stakeholders that you may correspond with during the course of business. These stakeholders are considered Contacts within the ITFlow system. When a Contact within a Client record submits a ticket via email into your ITFlow system, the ticket is automatically assigned to the relevant Client based on the email contact of the Contact. | ||
Allow your clients to interact with the ITFlow portal by creating contacts. | Allow your clients to interact with the ITFlow portal by creating contacts. | ||
+ | |||
+ | {{:: | ||
You can record the following information about a client contact: | You can record the following information about a client contact: | ||
Line 8: | Line 12: | ||
* Title | * Title | ||
* Mark as " | * Mark as " | ||
- | * Mark as a technical / billing contact | + | * Mark as a technical / billing contact |
* Department | * Department | ||
* Phone / Extension / Mobile | * Phone / Extension / Mobile | ||
Line 20: | Line 24: | ||
/ | / | ||
- | Read - Retrieve contact information (/read.php) | + | ==== Read - Retrieve contact information (/ |
- | | + | |
+ | * **Default / No params - Returns all contacts** | ||
* contact_id - Specific contact ID from the ITFlow database | * contact_id - Specific contact ID from the ITFlow database | ||
* contact_email - Specific contact via e-mail | * contact_email - Specific contact via e-mail | ||
+ | * contact_phone_or_mobile - Specific contact via their mobile or office phone | ||
- | <nowiki> | + | <code> |
- | Invoke-RestMethod -Uri "http://127.0.0.1/itflow/ | + | Invoke-RestMethod -Uri "https://demo.itflow.org/ |
{ | { | ||
Line 44: | Line 50: | ||
[...] | [...] | ||
- | </nowiki> | + | </code> |
+ | |||
+ | ==== Create - Create a new contact (/ | ||
+ | |||
+ | |||
+ | Specify all parameters as below, even if empty. E-mail must not already exist. The new contact ID will be returned. | ||
+ | |||
+ | |||
+ | < | ||
+ | $uri = " | ||
+ | |||
+ | $body = @" | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | "@ | ||
+ | |||
+ | Invoke-RestMethod -Method Post -Uri $uri -Body $body | ||
+ | |||
+ | |||
+ | success | ||
+ | ------- | ||
+ | True 1 | ||
+ | |||
+ | </ | ||
+ | |||
+ | ==== Update - Update an new contact (/ | ||
+ | |||
+ | Specify all parameters as below, even if empty. Same parameters as create endpoint, just additionally specify the contact_id to update. | ||
+ | Success (true/ | ||
+ | |||
+ | < | ||
+ | |||
+ | $uri = " | ||
+ | |||
+ | $body = @" | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | "@ | ||
+ | |||
+ | Invoke-RestMethod -Method Post -Uri $uri -Body $body | ||
+ | |||
+ | |||
+ | success count | ||
+ | ------- ----- | ||
+ | True 1 | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ |