Cogsworth Partner API

Default

createAppointment

Create appointment

Creates an appointment in a business


/businesses/{id}/appointments

Usage and SDK Samples

curl -X POST "http://0.0.0.0:5000/partners/businesses/{id}/appointments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_7 body = ; // Body_7 | 
        try {
            inline_response_201_3 result = apiInstance.createAppointment(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createAppointment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_7 body = ; // Body_7 | 
        try {
            inline_response_201_3 result = apiInstance.createAppointment(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createAppointment");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_7 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Create appointment
[apiInstance createAppointmentWith:id
    body:body
              completionHandler: ^(inline_response_201_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createAppointment(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createAppointmentExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_7(); // Body_7 |  (optional) 

            try
            {
                // Create appointment
                inline_response_201_3 result = apiInstance.createAppointment(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createAppointment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_7 | 

try {
    $result = $api_instance->createAppointment($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createAppointment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_7->new(); # Body_7 | 

eval { 
    my $result = $api_instance->createAppointment(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->createAppointment: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_7 |  (optional)

try: 
    # Create appointment
    api_response = api_instance.create_appointment(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->createAppointment: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 - CREATED


createBusiness

Create Business

Creates a business in the currently logged in account


/businesses

Usage and SDK Samples

curl -X POST "http://0.0.0.0:5000/partners/businesses"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        Body body = ; // Body | 
        try {
            inline_response_201 result = apiInstance.createBusiness(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createBusiness");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        Body body = ; // Body | 
        try {
            inline_response_201 result = apiInstance.createBusiness(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createBusiness");
            e.printStackTrace();
        }
    }
}
Body *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Create Business
[apiInstance createBusinessWith:body
              completionHandler: ^(inline_response_201 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createBusiness(, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createBusinessExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var body = new Body(); // Body |  (optional) 

            try
            {
                // Create Business
                inline_response_201 result = apiInstance.createBusiness(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createBusiness: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$body = ; // Body | 

try {
    $result = $api_instance->createBusiness($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createBusiness: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | 

eval { 
    my $result = $api_instance->createBusiness(body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->createBusiness: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body =  # Body |  (optional)

try: 
    # Create Business
    api_response = api_instance.create_business(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->createBusiness: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 - CREATED


createCustomer

Create customer

Creates a customer in the specified business


/business/{id}/customers

Usage and SDK Samples

curl -X POST "http://0.0.0.0:5000/partners/business/{id}/customers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_9 body = ; // Body_9 | 
        try {
            inline_response_201_4 result = apiInstance.createCustomer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_9 body = ; // Body_9 | 
        try {
            inline_response_201_4 result = apiInstance.createCustomer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createCustomer");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_9 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Create customer
[apiInstance createCustomerWith:id
    body:body
              completionHandler: ^(inline_response_201_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createCustomer(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createCustomerExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_9(); // Body_9 |  (optional) 

            try
            {
                // Create customer
                inline_response_201_4 result = apiInstance.createCustomer(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_9 | 

try {
    $result = $api_instance->createCustomer($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_9->new(); # Body_9 | 

eval { 
    my $result = $api_instance->createCustomer(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->createCustomer: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_9 |  (optional)

try: 
    # Create customer
    api_response = api_instance.create_customer(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->createCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 - CREATED


createService

Create Service

Creates a service in the specified business


/businesses/{id}/services

Usage and SDK Samples

curl -X POST "http://0.0.0.0:5000/partners/businesses/{id}/services"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_201_1 result = apiInstance.createService(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_2 body = ; // Body_2 | 
        try {
            inline_response_201_1 result = apiInstance.createService(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createService");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_2 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Create Service
[apiInstance createServiceWith:id
    body:body
              completionHandler: ^(inline_response_201_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createService(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createServiceExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_2(); // Body_2 |  (optional) 

            try
            {
                // Create Service
                inline_response_201_1 result = apiInstance.createService(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_2 | 

try {
    $result = $api_instance->createService($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_2->new(); # Body_2 | 

eval { 
    my $result = $api_instance->createService(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->createService: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_2 |  (optional)

try: 
    # Create Service
    api_response = api_instance.create_service(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->createService: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 - CREATED


createStaff

Create staff

Creates a staff member in the specified business


/businesses/{id}/staff

Usage and SDK Samples

curl -X POST "http://0.0.0.0:5000/partners/businesses/{id}/staff"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_201_2 result = apiInstance.createStaff(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createStaff");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_4 body = ; // Body_4 | 
        try {
            inline_response_201_2 result = apiInstance.createStaff(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createStaff");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_4 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Create staff
[apiInstance createStaffWith:id
    body:body
              completionHandler: ^(inline_response_201_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createStaff(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createStaffExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_4(); // Body_4 |  (optional) 

            try
            {
                // Create staff
                inline_response_201_2 result = apiInstance.createStaff(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.createStaff: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_4 | 

try {
    $result = $api_instance->createStaff($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->createStaff: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_4->new(); # Body_4 | 

eval { 
    my $result = $api_instance->createStaff(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->createStaff: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_4 |  (optional)

try: 
    # Create staff
    api_response = api_instance.create_staff(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->createStaff: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 - CREATED


deleteAppointment

Delete appointment

Delete an appointment by ID


/appointments/{id}

Usage and SDK Samples

curl -X DELETE "http://0.0.0.0:5000/partners/appointments/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_4 result = apiInstance.deleteAppointment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteAppointment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_4 result = apiInstance.deleteAppointment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteAppointment");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Delete appointment
[apiInstance deleteAppointmentWith:id
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteAppointment(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteAppointmentExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Delete appointment
                inline_response_200_4 result = apiInstance.deleteAppointment(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteAppointment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->deleteAppointment($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteAppointment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->deleteAppointment(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->deleteAppointment: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Delete appointment
    api_response = api_instance.delete_appointment(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteAppointment: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


deleteStaff

Delete staff

Delete a staff by ID


/staff/{id}

Usage and SDK Samples

curl -X DELETE "http://0.0.0.0:5000/partners/staff/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_4 result = apiInstance.deleteStaff(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteStaff");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_4 result = apiInstance.deleteStaff(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#deleteStaff");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Delete staff
[apiInstance deleteStaffWith:id
              completionHandler: ^(inline_response_200_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteStaff(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteStaffExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Delete staff
                inline_response_200_4 result = apiInstance.deleteStaff(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.deleteStaff: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->deleteStaff($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->deleteStaff: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->deleteStaff(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->deleteStaff: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Delete staff
    api_response = api_instance.delete_staff(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->deleteStaff: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getAppointment

Staff

Get an appointment by ID


/appointments/{id}

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/appointments/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_3 result = apiInstance.getAppointment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAppointment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_3 result = apiInstance.getAppointment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAppointment");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Staff
[apiInstance getAppointmentWith:id
              completionHandler: ^(inline_response_201_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAppointment(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAppointmentExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Staff
                inline_response_201_3 result = apiInstance.getAppointment(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getAppointment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getAppointment($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getAppointment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getAppointment(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getAppointment: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Staff
    api_response = api_instance.get_appointment(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getAppointment: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getAppointments

Appointments

List a business appointments within a given time range


/businesses/{id}/appointments

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/businesses/{id}/appointments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_6 body = ; // Body_6 | 
        try {
            inline_response_200_5 result = apiInstance.getAppointments(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAppointments");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_6 body = ; // Body_6 | 
        try {
            inline_response_200_5 result = apiInstance.getAppointments(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAppointments");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_6 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Appointments
[apiInstance getAppointmentsWith:id
    body:body
              completionHandler: ^(inline_response_200_5 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAppointments(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAppointmentsExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_6(); // Body_6 |  (optional) 

            try
            {
                // Appointments
                inline_response_200_5 result = apiInstance.getAppointments(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getAppointments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_6 | 

try {
    $result = $api_instance->getAppointments($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getAppointments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_6->new(); # Body_6 | 

eval { 
    my $result = $api_instance->getAppointments(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getAppointments: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_6 |  (optional)

try: 
    # Appointments
    api_response = api_instance.get_appointments(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getAppointments: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - OK


getAvailableTimes

Get available times

Lists the available timeslots for each staff member by service ID


/services/{id}/availableTimes

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/services/{id}/availableTimes"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.getAvailableTimes(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAvailableTimes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_7 result = apiInstance.getAvailableTimes(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAvailableTimes");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Get available times
[apiInstance getAvailableTimesWith:id
              completionHandler: ^(inline_response_200_7 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAvailableTimes(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAvailableTimesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Get available times
                inline_response_200_7 result = apiInstance.getAvailableTimes(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getAvailableTimes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getAvailableTimes($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getAvailableTimes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getAvailableTimes(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getAvailableTimes: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Get available times
    api_response = api_instance.get_available_times(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getAvailableTimes: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getBusiness

Business

Get a business by ID


/businesses/{id}

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/businesses/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201 result = apiInstance.getBusiness(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBusiness");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201 result = apiInstance.getBusiness(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getBusiness");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Business
[apiInstance getBusinessWith:id
              completionHandler: ^(inline_response_201 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getBusiness(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getBusinessExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Business
                inline_response_201 result = apiInstance.getBusiness(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getBusiness: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getBusiness($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getBusiness: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getBusiness(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getBusiness: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Business
    api_response = api_instance.get_business(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getBusiness: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 201 - OK


getCustomer

Customer

Get a customer


/customers/{id}

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_4 result = apiInstance.getCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_4 result = apiInstance.getCustomer(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCustomer");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Customer
[apiInstance getCustomerWith:id
              completionHandler: ^(inline_response_201_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCustomer(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCustomerExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Customer
                inline_response_201_4 result = apiInstance.getCustomer(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getCustomer($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getCustomer(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getCustomer: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Customer
    api_response = api_instance.get_customer(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getCustomers

Customer

List a business customers


/business/{id}/customers

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/business/{id}/customers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.getCustomers(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCustomers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_6 result = apiInstance.getCustomers(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getCustomers");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Customer
[apiInstance getCustomersWith:id
              completionHandler: ^(inline_response_200_6 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCustomers(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCustomersExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Customer
                inline_response_200_6 result = apiInstance.getCustomers(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getCustomers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getCustomers($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getCustomers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getCustomers(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getCustomers: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Customer
    api_response = api_instance.get_customers(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getCustomers: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getMe

Me

Get currently logged in user


/me

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/me"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            inline_response_200 result = apiInstance.getMe();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getMe");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            inline_response_200 result = apiInstance.getMe();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getMe");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Me
[apiInstance getMeWithCompletionHandler: 
              ^(inline_response_200 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMe(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMeExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();

            try
            {
                // Me
                inline_response_200 result = apiInstance.getMe();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getMe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

try {
    $result = $api_instance->getMe();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getMe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->getMe();
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getMe: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # Me
    api_response = api_instance.get_me()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getMe: %s\n" % e)

Parameters

Responses

Status: 200 - OK


getService

Service

Get a service by ID


/services/{id}

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/services/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_1 result = apiInstance.getService(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_1 result = apiInstance.getService(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getService");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Service
[apiInstance getServiceWith:id
              completionHandler: ^(inline_response_201_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getService(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Service
                inline_response_201_1 result = apiInstance.getService(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getService($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getService(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getService: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Service
    api_response = api_instance.get_service(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getService: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getServices

Services

List a business services by business ID


/businesses/{id}/services

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/businesses/{id}/services"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.getServices(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getServices");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_2 result = apiInstance.getServices(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getServices");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Services
[apiInstance getServicesWith:id
              completionHandler: ^(inline_response_200_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServices(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServicesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Services
                inline_response_200_2 result = apiInstance.getServices(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getServices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getServices($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getServices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getServices(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getServices: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Services
    api_response = api_instance.get_services(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getServices: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getStaff

Staff

Get a staff by ID


/staff/{id}

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/staff/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_2 result = apiInstance.getStaff(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getStaff");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_201_2 result = apiInstance.getStaff(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getStaff");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Staff
[apiInstance getStaffWith:id
              completionHandler: ^(inline_response_201_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getStaff(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getStaffExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Staff
                inline_response_201_2 result = apiInstance.getStaff(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getStaff: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getStaff($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getStaff: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getStaff(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getStaff: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Staff
    api_response = api_instance.get_staff(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getStaff: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


getStaffs

Staff

List a business staff members


/businesses/{id}/staff

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/businesses/{id}/staff"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.getStaffs(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getStaffs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        try {
            inline_response_200_3 result = apiInstance.getStaffs(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getStaffs");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Staff
[apiInstance getStaffsWith:id
              completionHandler: ^(inline_response_200_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getStaffs(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getStaffsExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 

            try
            {
                // Staff
                inline_response_200_3 result = apiInstance.getStaffs(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.getStaffs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 

try {
    $result = $api_instance->getStaffs($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->getStaffs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 

eval { 
    my $result = $api_instance->getStaffs(id => $id);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->getStaffs: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 

try: 
    # Staff
    api_response = api_instance.get_staffs(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->getStaffs: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required

Responses

Status: 200 - OK


listBusinesses

Businesses

List all currently logged in user businesses


/businesses

Usage and SDK Samples

curl -X GET "http://0.0.0.0:5000/partners/businesses"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        try {
            inline_response_200_1 result = apiInstance.listBusinesses();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listBusinesses");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        try {
            inline_response_200_1 result = apiInstance.listBusinesses();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#listBusinesses");
            e.printStackTrace();
        }
    }
}

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Businesses
[apiInstance listBusinessesWithCompletionHandler: 
              ^(inline_response_200_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listBusinesses(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listBusinessesExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();

            try
            {
                // Businesses
                inline_response_200_1 result = apiInstance.listBusinesses();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.listBusinesses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();

try {
    $result = $api_instance->listBusinesses();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->listBusinesses: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();

eval { 
    my $result = $api_instance->listBusinesses();
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->listBusinesses: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()

try: 
    # Businesses
    api_response = api_instance.list_businesses()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->listBusinesses: %s\n" % e)

Parameters

Responses

Status: 200 - OK


updateAppointment

Update appointment

Update an appointment by ID


/appointments/{id}

Usage and SDK Samples

curl -X PATCH "http://0.0.0.0:5000/partners/appointments/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_8 body = ; // Body_8 | 
        try {
            inline_response_201_3 result = apiInstance.updateAppointment(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateAppointment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_8 body = ; // Body_8 | 
        try {
            inline_response_201_3 result = apiInstance.updateAppointment(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateAppointment");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_8 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Update appointment
[apiInstance updateAppointmentWith:id
    body:body
              completionHandler: ^(inline_response_201_3 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateAppointment(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateAppointmentExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_8(); // Body_8 |  (optional) 

            try
            {
                // Update appointment
                inline_response_201_3 result = apiInstance.updateAppointment(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateAppointment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_8 | 

try {
    $result = $api_instance->updateAppointment($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateAppointment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_8->new(); # Body_8 | 

eval { 
    my $result = $api_instance->updateAppointment(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->updateAppointment: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_8 |  (optional)

try: 
    # Update appointment
    api_response = api_instance.update_appointment(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->updateAppointment: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - OK


updateBusiness

Update Business

Updates a Business by ID


/businesses/{id}

Usage and SDK Samples

curl -X PATCH "http://0.0.0.0:5000/partners/businesses/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_201 result = apiInstance.updateBusiness(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateBusiness");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_1 body = ; // Body_1 | 
        try {
            inline_response_201 result = apiInstance.updateBusiness(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateBusiness");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_1 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Update Business
[apiInstance updateBusinessWith:id
    body:body
              completionHandler: ^(inline_response_201 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateBusiness(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateBusinessExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_1(); // Body_1 |  (optional) 

            try
            {
                // Update Business
                inline_response_201 result = apiInstance.updateBusiness(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateBusiness: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_1 | 

try {
    $result = $api_instance->updateBusiness($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateBusiness: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_1->new(); # Body_1 | 

eval { 
    my $result = $api_instance->updateBusiness(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->updateBusiness: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_1 |  (optional)

try: 
    # Update Business
    api_response = api_instance.update_business(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->updateBusiness: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - OK


updateCustomer

Update customer

Updates a customer by ID


/customers/{id}

Usage and SDK Samples

curl -X PATCH "http://0.0.0.0:5000/partners/customers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_10 body = ; // Body_10 | 
        try {
            inline_response_201_4 result = apiInstance.updateCustomer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateCustomer");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_10 body = ; // Body_10 | 
        try {
            inline_response_201_4 result = apiInstance.updateCustomer(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateCustomer");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_10 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Update customer
[apiInstance updateCustomerWith:id
    body:body
              completionHandler: ^(inline_response_201_4 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateCustomer(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateCustomerExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_10(); // Body_10 |  (optional) 

            try
            {
                // Update customer
                inline_response_201_4 result = apiInstance.updateCustomer(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateCustomer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_10 | 

try {
    $result = $api_instance->updateCustomer($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateCustomer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_10->new(); # Body_10 | 

eval { 
    my $result = $api_instance->updateCustomer(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->updateCustomer: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_10 |  (optional)

try: 
    # Update customer
    api_response = api_instance.update_customer(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->updateCustomer: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - OK


updateService

Update Service

Updates a service by ID


/services/{id}

Usage and SDK Samples

curl -X PATCH "http://0.0.0.0:5000/partners/services/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_201_1 result = apiInstance.updateService(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_3 body = ; // Body_3 | 
        try {
            inline_response_201_1 result = apiInstance.updateService(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateService");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_3 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Update Service
[apiInstance updateServiceWith:id
    body:body
              completionHandler: ^(inline_response_201_1 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateService(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_3(); // Body_3 |  (optional) 

            try
            {
                // Update Service
                inline_response_201_1 result = apiInstance.updateService(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_3 | 

try {
    $result = $api_instance->updateService($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_3->new(); # Body_3 | 

eval { 
    my $result = $api_instance->updateService(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->updateService: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_3 |  (optional)

try: 
    # Update Service
    api_response = api_instance.update_service(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->updateService: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - OK


updateStaff

Update staff

Update a staff by ID


/staff/{id}

Usage and SDK Samples

curl -X PATCH "http://0.0.0.0:5000/partners/staff/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_5 body = ; // Body_5 | 
        try {
            inline_response_201_2 result = apiInstance.updateStaff(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateStaff");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String | 
        Body_5 body = ; // Body_5 | 
        try {
            inline_response_201_2 result = apiInstance.updateStaff(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#updateStaff");
            e.printStackTrace();
        }
    }
}
String *id = id_example; // 
Body_5 *body = ; //  (optional)

DefaultApi *apiInstance = [[DefaultApi alloc] init];

// Update staff
[apiInstance updateStaffWith:id
    body:body
              completionHandler: ^(inline_response_201_2 output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var CogsworthPartnerApi = require('cogsworth_partner_api');

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateStaff(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateStaffExample
    {
        public void main()
        {

            var apiInstance = new DefaultApi();
            var id = id_example;  // String | 
            var body = new Body_5(); // Body_5 |  (optional) 

            try
            {
                // Update staff
                inline_response_201_2 result = apiInstance.updateStaff(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.updateStaff: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String | 
$body = ; // Body_5 | 

try {
    $result = $api_instance->updateStaff($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->updateStaff: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DefaultApi;

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String | 
my $body = WWW::SwaggerClient::Object::Body_5->new(); # Body_5 | 

eval { 
    my $result = $api_instance->updateStaff(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->updateStaff: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String | 
body =  # Body_5 |  (optional)

try: 
    # Update staff
    api_response = api_instance.update_staff(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->updateStaff: %s\n" % e)

Parameters

Path parameters
Name Description
id*
String
Required
Body parameters
Name Description
body

Responses

Status: 200 - OK