Globho - Agenda Medica

Appointment

addAppointment

Add a new appointment to the schedule


/appointment

Usage and SDK Samples

curl -X POST "https://lab.globho.com/api/integration/appointment?api_key="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AppointmentApi;

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

public class AppointmentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Appointment body = ; // Appointment | appointment object that needs to be added to the schedule
        try {
            ApiResponse result = apiInstance.addAppointment(apiKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#addAppointment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AppointmentApi;

public class AppointmentApiExample {

    public static void main(String[] args) {
        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Appointment body = ; // Appointment | appointment object that needs to be added to the schedule
        try {
            ApiResponse result = apiInstance.addAppointment(apiKey, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#addAppointment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

String *apiKey = apiKey_example; // 
Appointment *body = ; // appointment object that needs to be added to the schedule

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

// Add a new appointment to the schedule
[apiInstance addAppointmentWith:apiKey
    body:body
              completionHandler: ^(ApiResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GlobhoAgendaMedica = require('globho___agenda_medica');
var defaultClient = GlobhoAgendaMedica.ApiClient.instance;

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

var api = new GlobhoAgendaMedica.AppointmentApi()

var apiKey = apiKey_example; // {String} 

var body = ; // {Appointment} appointment object that needs to be added to the schedule


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

namespace Example
{
    public class addAppointmentExample
    {
        public void main()
        {
            
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new AppointmentApi();
            var apiKey = apiKey_example;  // String | 
            var body = new Appointment(); // Appointment | appointment object that needs to be added to the schedule

            try
            {
                // Add a new appointment to the schedule
                ApiResponse result = apiInstance.addAppointment(apiKey, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AppointmentApi.addAppointment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\AppointmentApi();
$apiKey = apiKey_example; // String | 
$body = ; // Appointment | appointment object that needs to be added to the schedule

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

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

my $api_instance = WWW::SwaggerClient::AppointmentApi->new();
my $apiKey = apiKey_example; # String | 
my $body = WWW::SwaggerClient::Object::Appointment->new(); # Appointment | appointment object that needs to be added to the schedule

eval { 
    my $result = $api_instance->addAppointment(apiKey => $apiKey, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppointmentApi->addAppointment: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AppointmentApi()
apiKey = apiKey_example # String | 
body =  # Appointment | appointment object that needs to be added to the schedule

try: 
    # Add a new appointment to the schedule
    api_response = api_instance.add_appointment(apiKey, body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppointmentApi->addAppointment: %s\n" % e)

Parameters

Body parameters
Name Description
body *
Query parameters
Name Description
api_key*
String
Required

Responses

Status: 200 - successful operation

Status: 400 - Invalid input


deleteAppointment

Delete a appointment


/appointment/{id}

Usage and SDK Samples

curl -X DELETE "https://lab.globho.com/api/integration/appointment/{id}?api_key="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AppointmentApi;

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

public class AppointmentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Long id = 789; // Long | Appointment id to delete
        Body body = ; // Body | appointment object that needs to be delete to the schedule
        try {
            ApiResponse result = apiInstance.deleteAppointment(apiKey, id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#deleteAppointment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AppointmentApi;

public class AppointmentApiExample {

    public static void main(String[] args) {
        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Long id = 789; // Long | Appointment id to delete
        Body body = ; // Body | appointment object that needs to be delete to the schedule
        try {
            ApiResponse result = apiInstance.deleteAppointment(apiKey, id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#deleteAppointment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

String *apiKey = apiKey_example; // 
Long *id = 789; // Appointment id to delete
Body *body = ; // appointment object that needs to be delete to the schedule

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

// Delete a appointment
[apiInstance deleteAppointmentWith:apiKey
    id:id
    body:body
              completionHandler: ^(ApiResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GlobhoAgendaMedica = require('globho___agenda_medica');
var defaultClient = GlobhoAgendaMedica.ApiClient.instance;

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

var api = new GlobhoAgendaMedica.AppointmentApi()

var apiKey = apiKey_example; // {String} 

var id = 789; // {Long} Appointment id to delete

var body = ; // {Body} appointment object that needs to be delete to the schedule


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteAppointment(apiKey, id, body, 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: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new AppointmentApi();
            var apiKey = apiKey_example;  // String | 
            var id = 789;  // Long | Appointment id to delete
            var body = new Body(); // Body | appointment object that needs to be delete to the schedule

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

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

$api_instance = new Swagger\Client\Api\AppointmentApi();
$apiKey = apiKey_example; // String | 
$id = 789; // Long | Appointment id to delete
$body = ; // Body | appointment object that needs to be delete to the schedule

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

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

my $api_instance = WWW::SwaggerClient::AppointmentApi->new();
my $apiKey = apiKey_example; # String | 
my $id = 789; # Long | Appointment id to delete
my $body = WWW::SwaggerClient::Object::Body->new(); # Body | appointment object that needs to be delete to the schedule

eval { 
    my $result = $api_instance->deleteAppointment(apiKey => $apiKey, id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppointmentApi->deleteAppointment: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AppointmentApi()
apiKey = apiKey_example # String | 
id = 789 # Long | Appointment id to delete
body =  # Body | appointment object that needs to be delete to the schedule

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

Parameters

Path parameters
Name Description
id*
Long (int64)
Appointment id to delete
Required
Body parameters
Name Description
body *
Query parameters
Name Description
api_key*
String
Required

Responses

Status: 200 - successful operation

Status: 400 - Appointment not found


getAppointmentById

Find appointment by ID

Returns a single appointment


/appointment/{id}

Usage and SDK Samples

curl -X GET "https://lab.globho.com/api/integration/appointment/{id}?api_key="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AppointmentApi;

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

public class AppointmentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Long id = 789; // Long | 
        try {
            Appointment result = apiInstance.getAppointmentById(apiKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#getAppointmentById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AppointmentApi;

public class AppointmentApiExample {

    public static void main(String[] args) {
        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Long id = 789; // Long | 
        try {
            Appointment result = apiInstance.getAppointmentById(apiKey, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#getAppointmentById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

String *apiKey = apiKey_example; // 
Long *id = 789; // 

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

// Find appointment by ID
[apiInstance getAppointmentByIdWith:apiKey
    id:id
              completionHandler: ^(Appointment output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GlobhoAgendaMedica = require('globho___agenda_medica');
var defaultClient = GlobhoAgendaMedica.ApiClient.instance;

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

var api = new GlobhoAgendaMedica.AppointmentApi()

var apiKey = apiKey_example; // {String} 

var id = 789; // {Long} 


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

namespace Example
{
    public class getAppointmentByIdExample
    {
        public void main()
        {
            
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new AppointmentApi();
            var apiKey = apiKey_example;  // String | 
            var id = 789;  // Long | 

            try
            {
                // Find appointment by ID
                Appointment result = apiInstance.getAppointmentById(apiKey, id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AppointmentApi.getAppointmentById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\AppointmentApi();
$apiKey = apiKey_example; // String | 
$id = 789; // Long | 

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

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

my $api_instance = WWW::SwaggerClient::AppointmentApi->new();
my $apiKey = apiKey_example; # String | 
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getAppointmentById(apiKey => $apiKey, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppointmentApi->getAppointmentById: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AppointmentApi()
apiKey = apiKey_example # String | 
id = 789 # Long | 

try: 
    # Find appointment by ID
    api_response = api_instance.get_appointment_by_id(apiKey, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppointmentApi->getAppointmentById: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Query parameters
Name Description
api_key*
String
Required

Responses

Status: 200 - successful operation

Status: 400 - Invalid ID supplied


updateAppointment

Update an existing appointment


/appointment/{id}

Usage and SDK Samples

curl -X PUT "https://lab.globho.com/api/integration/appointment/{id}?api_key="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AppointmentApi;

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

public class AppointmentApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: api_key
        ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
        api_key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //api_key.setApiKeyPrefix("Token");

        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Long id = 789; // Long | appointment id to update
        Appointment body = ; // Appointment | Appointment object that needs to be update to the schedule
        try {
            ApiResponse result = apiInstance.updateAppointment(apiKey, id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#updateAppointment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AppointmentApi;

public class AppointmentApiExample {

    public static void main(String[] args) {
        AppointmentApi apiInstance = new AppointmentApi();
        String apiKey = apiKey_example; // String | 
        Long id = 789; // Long | appointment id to update
        Appointment body = ; // Appointment | Appointment object that needs to be update to the schedule
        try {
            ApiResponse result = apiInstance.updateAppointment(apiKey, id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppointmentApi#updateAppointment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: api_key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];

String *apiKey = apiKey_example; // 
Long *id = 789; // appointment id to update
Appointment *body = ; // Appointment object that needs to be update to the schedule

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

// Update an existing appointment
[apiInstance updateAppointmentWith:apiKey
    id:id
    body:body
              completionHandler: ^(ApiResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var GlobhoAgendaMedica = require('globho___agenda_medica');
var defaultClient = GlobhoAgendaMedica.ApiClient.instance;

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

var api = new GlobhoAgendaMedica.AppointmentApi()

var apiKey = apiKey_example; // {String} 

var id = 789; // {Long} appointment id to update

var body = ; // {Appointment} Appointment object that needs to be update to the schedule


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateAppointment(apiKey, id, body, 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: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new AppointmentApi();
            var apiKey = apiKey_example;  // String | 
            var id = 789;  // Long | appointment id to update
            var body = new Appointment(); // Appointment | Appointment object that needs to be update to the schedule

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

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

$api_instance = new Swagger\Client\Api\AppointmentApi();
$apiKey = apiKey_example; // String | 
$id = 789; // Long | appointment id to update
$body = ; // Appointment | Appointment object that needs to be update to the schedule

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

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

my $api_instance = WWW::SwaggerClient::AppointmentApi->new();
my $apiKey = apiKey_example; # String | 
my $id = 789; # Long | appointment id to update
my $body = WWW::SwaggerClient::Object::Appointment->new(); # Appointment | Appointment object that needs to be update to the schedule

eval { 
    my $result = $api_instance->updateAppointment(apiKey => $apiKey, id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppointmentApi->updateAppointment: $@\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: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.AppointmentApi()
apiKey = apiKey_example # String | 
id = 789 # Long | appointment id to update
body =  # Appointment | Appointment object that needs to be update to the schedule

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

Parameters

Path parameters
Name Description
id*
Long (int64)
appointment id to update
Required
Body parameters
Name Description
body *
Query parameters
Name Description
api_key*
String
Required

Responses

Status: 200 - successful operation

Status: 400 - Invalid input