Skip to content

Latest commit

 

History

History
386 lines (263 loc) · 12.6 KB

TicketNotesApi.md

File metadata and controls

386 lines (263 loc) · 12.6 KB

Spinen\ConnectWise\Clients\Service\TicketNotesApi

Spinen's PHP ConnectWise Client for Service API generated by Swagger Code Generator.

All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0

Method HTTP request Description
serviceTicketsIdNotesCountGet GET /service/tickets/{id}/notes/count
serviceTicketsIdNotesGet GET /service/tickets/{id}/notes
serviceTicketsIdNotesNoteIdDelete DELETE /service/tickets/{id}/notes/{noteId}
serviceTicketsIdNotesNoteIdGet GET /service/tickets/{id}/notes/{noteId}
serviceTicketsIdNotesNoteIdPatch PATCH /service/tickets/{id}/notes/{noteId}
serviceTicketsIdNotesNoteIdPut PUT /service/tickets/{id}/notes/{noteId}
serviceTicketsIdNotesPost POST /service/tickets/{id}/notes

serviceTicketsIdNotesCountGet

\Spinen\ConnectWise\Clients\Service\Model\Count serviceTicketsIdNotesCountGet($id, $conditions)

Get Service Notes Count

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int | 
$conditions = "conditions_example"; // string | 

try {
    $result = $api_instance->serviceTicketsIdNotesCountGet($id, $conditions);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesCountGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int
conditions string [optional]

Return type

\Spinen\ConnectWise\Clients\Service\Model\Count

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

serviceTicketsIdNotesGet

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote[] serviceTicketsIdNotesGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size)

Get Service Notes

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int | 
$conditions = "conditions_example"; // string | 
$order_by = "order_by_example"; // string | 
$childconditions = "childconditions_example"; // string | 
$customfieldconditions = "customfieldconditions_example"; // string | 
$page = 56; // int | 
$page_size = 56; // int | 

try {
    $result = $api_instance->serviceTicketsIdNotesGet($id, $conditions, $order_by, $childconditions, $customfieldconditions, $page, $page_size);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int
conditions string [optional]
order_by string [optional]
childconditions string [optional]
customfieldconditions string [optional]
page int [optional]
page_size int [optional]

Return type

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote[]

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

serviceTicketsIdNotesNoteIdDelete

serviceTicketsIdNotesNoteIdDelete($id, $note_id)

Delete Service Note By Id

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int | 
$note_id = 56; // int | 

try {
    $api_instance->serviceTicketsIdNotesNoteIdDelete($id, $note_id);
} catch (Exception $e) {
    echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdDelete: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int
note_id int

Return type

void (empty response body)

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

serviceTicketsIdNotesNoteIdGet

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote serviceTicketsIdNotesNoteIdGet($id, $note_id)

Get Service Note By Id

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int | 
$note_id = 56; // int | 

try {
    $result = $api_instance->serviceTicketsIdNotesNoteIdGet($id, $note_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdGet: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int
note_id int

Return type

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

serviceTicketsIdNotesNoteIdPatch

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote serviceTicketsIdNotesNoteIdPatch($id, $note_id, $operations)

Update Service Note

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int | 
$note_id = 56; // int | 
$operations = array(new PatchOperation()); // \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[] | 

try {
    $result = $api_instance->serviceTicketsIdNotesNoteIdPatch($id, $note_id, $operations);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdPatch: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int
note_id int
operations \Spinen\ConnectWise\Clients\Service\Model\PatchOperation[]

Return type

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

serviceTicketsIdNotesNoteIdPut

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote serviceTicketsIdNotesNoteIdPut($id, $note_id, $service_note)

Replace Service Note

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int | 
$note_id = 56; // int | 
$service_note = new \Spinen\ConnectWise\Clients\Service\Model\ServiceNote(); // \Spinen\ConnectWise\Clients\Service\Model\ServiceNote | 

try {
    $result = $api_instance->serviceTicketsIdNotesNoteIdPut($id, $note_id, $service_note);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesNoteIdPut: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int
note_id int
service_note \Spinen\ConnectWise\Clients\Service\Model\ServiceNote

Return type

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

serviceTicketsIdNotesPost

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote serviceTicketsIdNotesPost($id, $service_note)

Create Service Note

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BasicAuth
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Spinen\ConnectWise\Clients\Service\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Spinen\ConnectWise\Clients\Service\Api\TicketNotesApi();
$id = 56; // int | 
$service_note = new \Spinen\ConnectWise\Clients\Service\Model\ServiceNote(); // \Spinen\ConnectWise\Clients\Service\Model\ServiceNote | 

try {
    $result = $api_instance->serviceTicketsIdNotesPost($id, $service_note);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TicketNotesApi->serviceTicketsIdNotesPost: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
id int
service_note \Spinen\ConnectWise\Clients\Service\Model\ServiceNote

Return type

\Spinen\ConnectWise\Clients\Service\Model\ServiceNote

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]