Cogsworth Partner API

Default

createAdHocAppointment

Create adhoc appointment

Creates an adhoc appointment in a business


/businesses/{id}/adHocAppointments

Usage and SDK Samples

curl -X POST -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/partners/businesses/{id}/adHocAppointments"
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String |
        Body_6 body = ; // Body_6 |
        try {
            inline_response_201_3 result = apiInstance.createAdHocAppointment(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createAdHocAppointment");
            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_201_3 result = apiInstance.createAdHocAppointment(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#createAdHocAppointment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
String *id = id_example; //
Body_6 *body = ; //  (optional)

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

// Create adhoc appointment
[apiInstance createAdHocAppointmentWith: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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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.createAdHocAppointment(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

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

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

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

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

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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->createAdHocAppointment(id => $id, body => $body);
    print Dumper($result);
};
if ([email protected]) {
    warn "Exception when calling DefaultApi->createAdHocAppointment: [email protected]\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

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

try:
    # Create adhoc appointment
    api_response = api_instance.create_ad_hoc_appointment(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->createAdHocAppointment: %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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String |
        Body_8 body = ; // Body_8 |
        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_8 body = ; // Body_8 |
        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
String *id = id_example; //
Body_8 *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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            var apiInstance = new DefaultApi();
            var id = id_example;  // String |
            var body = new Body_8(); // Body_8 |  (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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

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

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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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->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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String |
body =  # Body_8 |  (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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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


getAdHocAvailableTimes

Get adhoc available times

Lists available timeslots for the specified staff members by business ID


/businesses/{id}/adHocAvailableTimes

Usage and SDK Samples

curl -X GET -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/partners/businesses/{id}/adHocAvailableTimes?dateFrom=&dateTo=&duration=&staffIds=&minimumNoticeTime=&timeIncrement=&availabilityLimitDays="
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String |
          = ; //  | Example: 2020-10-20T00:00:00.000Z
          = ; //  | Example: 2020-10-25T00:00:00.000Z
          = ; //  | The duration for the target booking in minutes. Example: 60
          = ; //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
          = ; //  | The minimum notice time for the target booking in minutes. Example: 180
          = ; //  | The interval between timeslots in minutes. Example: 30
          = ; //  | Limits the display of availability for your customers in days. Example: 30.
        try {
            inline_response_200_7 result = apiInstance.getAdHocAvailableTimes(id, , , , , , , );
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAdHocAvailableTimes");
            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 |
          = ; //  | Example: 2020-10-20T00:00:00.000Z
          = ; //  | Example: 2020-10-25T00:00:00.000Z
          = ; //  | The duration for the target booking in minutes. Example: 60
          = ; //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
          = ; //  | The minimum notice time for the target booking in minutes. Example: 180
          = ; //  | The interval between timeslots in minutes. Example: 30
          = ; //  | Limits the display of availability for your customers in days. Example: 30.
        try {
            inline_response_200_7 result = apiInstance.getAdHocAvailableTimes(id, , , , , , , );
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAdHocAvailableTimes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
String *id = id_example; //
 * = ; // Example: 2020-10-20T00:00:00.000Z
 * = ; // Example: 2020-10-25T00:00:00.000Z
 * = ; // The duration for the target booking in minutes. Example: 60
 * = ; // Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
 * = ; // The minimum notice time for the target booking in minutes. Example: 180 (optional)
 * = ; // The interval between timeslots in minutes. Example: 30 (optional)
 * = ; // Limits the display of availability for your customers in days. Example: 30. (optional)

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

// Get adhoc available times
[apiInstance getAdHocAvailableTimesWith: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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}}
var  = ; // {{}} Example: 2020-10-20T00:00:00.000Z
var  = ; // {{}} Example: 2020-10-25T00:00:00.000Z
var  = ; // {{}} The duration for the target booking in minutes. Example: 60
var  = ; // {{}} Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
var opts = {
  '': , // {{}} The minimum notice time for the target booking in minutes. Example: 180
  '': , // {{}} The interval between timeslots in minutes. Example: 30
  '':  // {{}} Limits the display of availability for your customers in days. Example: 30.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAdHocAvailableTimes(id, , , , , opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

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

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            var apiInstance = new DefaultApi();
            var id = id_example;  // String |
            var  = new (); //  | Example: 2020-10-20T00:00:00.000Z
            var  = new (); //  | Example: 2020-10-25T00:00:00.000Z
            var  = new (); //  | The duration for the target booking in minutes. Example: 60
            var  = new (); //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
            var  = new (); //  | The minimum notice time for the target booking in minutes. Example: 180 (optional)
            var  = new (); //  | The interval between timeslots in minutes. Example: 30 (optional)
            var  = new (); //  | Limits the display of availability for your customers in days. Example: 30. (optional)

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

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String |
$ = ; //  | Example: 2020-10-20T00:00:00.000Z
$ = ; //  | Example: 2020-10-25T00:00:00.000Z
$ = ; //  | The duration for the target booking in minutes. Example: 60
$ = ; //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
$ = ; //  | The minimum notice time for the target booking in minutes. Example: 180
$ = ; //  | The interval between timeslots in minutes. Example: 30
$ = ; //  | Limits the display of availability for your customers in days. Example: 30.

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

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String |
my $ = ; #  | Example: 2020-10-20T00:00:00.000Z
my $ = ; #  | Example: 2020-10-25T00:00:00.000Z
my $ = ; #  | The duration for the target booking in minutes. Example: 60
my $ = ; #  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
my $ = ; #  | The minimum notice time for the target booking in minutes. Example: 180
my $ = ; #  | The interval between timeslots in minutes. Example: 30
my $ = ; #  | Limits the display of availability for your customers in days. Example: 30.

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String |
 =  #  | Example: 2020-10-20T00:00:00.000Z
 =  #  | Example: 2020-10-25T00:00:00.000Z
 =  #  | The duration for the target booking in minutes. Example: 60
 =  #  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
 =  #  | The minimum notice time for the target booking in minutes. Example: 180 (optional)
 =  #  | The interval between timeslots in minutes. Example: 30 (optional)
 =  #  | Limits the display of availability for your customers in days. Example: 30. (optional)

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

Parameters

Path parameters
Name Description
id*
String
Required
Query parameters
Name Description
dateFrom*
Example: 2020-10-20T00:00:00.000Z
Required
dateTo*
Example: 2020-10-25T00:00:00.000Z
Required
duration*
The duration for the target booking in minutes. Example: 60
Required
staffIds*
Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
Required
minimumNoticeTime
The minimum notice time for the target booking in minutes. Example: 180
timeIncrement
The interval between timeslots in minutes. Example: 30
availabilityLimitDays
Limits the display of availability for your customers in days. Example: 30.

Responses

Status: 200 - OK


getAppointment

Staff

Get an appointment by ID


/appointments/{id}

Usage and SDK Samples

curl -X GET -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/partners/businesses/{id}/appointments?dateFrom=&dateTo="
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String |
          = ; //  | Example: 2020-10-20T00:00:00.000Z
          = ; //  | Example: 2020-10-25T00:00:00.000Z
        try {
            inline_response_200_5 result = apiInstance.getAppointments(id, , );
            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 |
          = ; //  | Example: 2020-10-20T00:00:00.000Z
          = ; //  | Example: 2020-10-25T00:00:00.000Z
        try {
            inline_response_200_5 result = apiInstance.getAppointments(id, , );
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#getAppointments");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
String *id = id_example; //
 * = ; // Example: 2020-10-20T00:00:00.000Z
 * = ; // Example: 2020-10-25T00:00:00.000Z

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

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

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}}
var  = ; // {{}} Example: 2020-10-20T00:00:00.000Z
var  = ; // {{}} Example: 2020-10-25T00:00:00.000Z

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            var apiInstance = new DefaultApi();
            var id = id_example;  // String |
            var  = new (); //  | Example: 2020-10-20T00:00:00.000Z
            var  = new (); //  | Example: 2020-10-25T00:00:00.000Z

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

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String |
$ = ; //  | Example: 2020-10-20T00:00:00.000Z
$ = ; //  | Example: 2020-10-25T00:00:00.000Z

try {
    $result = $api_instance->getAppointments($id, $, $);
    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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String |
my $ = ; #  | Example: 2020-10-20T00:00:00.000Z
my $ = ; #  | Example: 2020-10-25T00:00:00.000Z

eval {
    my $result = $api_instance->getAppointments(id => $id,  => $,  => $);
    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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String |
 =  #  | Example: 2020-10-20T00:00:00.000Z
 =  #  | Example: 2020-10-25T00:00:00.000Z

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

Parameters

Path parameters
Name Description
id*
String
Required
Query parameters
Name Description
dateFrom*
Example: 2020-10-20T00:00:00.000Z
Required
dateTo*
Example: 2020-10-25T00:00:00.000Z
Required

Responses

Status: 200 - OK


getAvailableTimes

Get available times

Lists the service's available timeslots for each staff member


/services/{id}/availableTimes

Usage and SDK Samples

curl -X GET -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/partners/services/{id}/availableTimes?dateFrom=&dateTo=&duration=&staffIds="
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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String |
          = ; //  | Example: 2020-10-20T00:00:00.000Z
          = ; //  | Example: 2020-10-25T00:00:00.000Z
          = ; //  | The service duration to get available times for. Must be an existing service duration. Example: 60
          = ; //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
        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 |
          = ; //  | Example: 2020-10-20T00:00:00.000Z
          = ; //  | Example: 2020-10-25T00:00:00.000Z
          = ; //  | The service duration to get available times for. Must be an existing service duration. Example: 60
          = ; //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
String *id = id_example; //
 * = ; // Example: 2020-10-20T00:00:00.000Z
 * = ; // Example: 2020-10-25T00:00:00.000Z
 * = ; // The service duration to get available times for. Must be an existing service duration. Example: 60
 * = ; // Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r (optional)

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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

var api = new CogsworthPartnerApi.DefaultApi()
var id = id_example; // {{String}}
var  = ; // {{}} Example: 2020-10-20T00:00:00.000Z
var  = ; // {{}} Example: 2020-10-25T00:00:00.000Z
var  = ; // {{}} The service duration to get available times for. Must be an existing service duration. Example: 60
var opts = {
  '':  // {{}} Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAvailableTimes(id, , , , opts, 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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            var apiInstance = new DefaultApi();
            var id = id_example;  // String |
            var  = new (); //  | Example: 2020-10-20T00:00:00.000Z
            var  = new (); //  | Example: 2020-10-25T00:00:00.000Z
            var  = new (); //  | The service duration to get available times for. Must be an existing service duration. Example: 60
            var  = new (); //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r (optional)

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$api_instance = new Swagger\Client\ApiDefaultApi();
$id = id_example; // String |
$ = ; //  | Example: 2020-10-20T00:00:00.000Z
$ = ; //  | Example: 2020-10-25T00:00:00.000Z
$ = ; //  | The service duration to get available times for. Must be an existing service duration. Example: 60
$ = ; //  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r

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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

my $api_instance = WWW::SwaggerClient::DefaultApi->new();
my $id = id_example; # String |
my $ = ; #  | Example: 2020-10-20T00:00:00.000Z
my $ = ; #  | Example: 2020-10-25T00:00:00.000Z
my $ = ; #  | The service duration to get available times for. Must be an existing service duration. Example: 60
my $ = ; #  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String |
 =  #  | Example: 2020-10-20T00:00:00.000Z
 =  #  | Example: 2020-10-25T00:00:00.000Z
 =  #  | The service duration to get available times for. Must be an existing service duration. Example: 60
 =  #  | Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r (optional)

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
Query parameters
Name Description
dateFrom*
Example: 2020-10-20T00:00:00.000Z
Required
dateTo*
Example: 2020-10-25T00:00:00.000Z
Required
duration*
The service duration to get available times for. Must be an existing service duration. Example: 60
Required
staffIds
Comma separated list of staff members to retrieve available timelslots for. Example: ckfa0616h000pk03xazb53ox5,ckfa0940d0021k03x5p852g2r

Responses

Status: 200 - OK


getBusiness

Business

Get a business by ID


/businesses/{id}

Usage and SDK Samples

curl -X GET -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];

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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];

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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String |
        Body_7 body = ; // Body_7 |
        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_7 body = ; // Body_7 |
        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
String *id = id_example; //
Body_7 *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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            var apiInstance = new DefaultApi();
            var id = id_example;  // String |
            var body = new Body_7(); // Body_7 |  (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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

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

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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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->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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String |
body =  # Body_7 |  (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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String id = id_example; // String |
        Body_9 body = ; // Body_9 |
        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_9 body = ; // Body_9 |
        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
String *id = id_example; //
Body_9 *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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            var apiInstance = new DefaultApi();
            var id = id_example;  // String |
            var body = new Body_9(); // Body_9 |  (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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

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

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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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->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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = id_example # String |
body =  # Body_9 |  (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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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 -H "Authentication: Bearer [API_KEY]" "https://api.cogsworth.com/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) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

        // Configure API key authorization: ApiKeyAuth
        ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
        ApiKeyAuth.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //ApiKeyAuth.setApiKeyPrefix("Token");

        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();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: ApiKeyAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authentication"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authentication"];
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 defaultClient = CogsworthPartnerApi.ApiClient.instance;

// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix['Authentication'] = "Token"

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()
        {

            // Configure API key authorization: ApiKeyAuth
            Configuration.Default.ApiKey.Add("Authentication", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authentication", "Bearer");

            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');

// Configure API key authorization: ApiKeyAuth
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authentication', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authentication', 'Bearer');

$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;

# Configure API key authorization: ApiKeyAuth
$WWW::SwaggerClient::Configuration::api_key->{'Authentication'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authentication'} = "Bearer";

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

# Configure API key authorization: ApiKeyAuth
swagger_client.configuration.api_key['Authentication'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authentication'] = 'Bearer'

# 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