Kite Educator Portal

Organization

addOrganization

Add a new organization in Educator Portal


/organizations

Usage and SDK Samples

curl -X POST -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/organizations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrganizationApi;

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

public class OrganizationApiExample {

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

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

        OrganizationApi apiInstance = new OrganizationApi();
        Organization body = ; // Organization | Organization object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.addOrganization(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationApi#addOrganization");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrganizationApi;

public class OrganizationApiExample {

    public static void main(String[] args) {
        OrganizationApi apiInstance = new OrganizationApi();
        Organization body = ; // Organization | Organization object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.addOrganization(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationApi#addOrganization");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

Organization *body = ; // Organization object that needs to be added to the Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Add a new organization in Educator Portal
[apiInstance addOrganizationWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.OrganizationApi()

var body = ; // {Organization} Organization object that needs to be added to the Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class addOrganizationExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new OrganizationApi();
            var body = new Organization(); // Organization | Organization object that needs to be added to the Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Add a new organization in Educator Portal
                APIResponse result = apiInstance.addOrganization(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrganizationApi.addOrganization: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\OrganizationApi();
$body = ; // Organization | Organization object that needs to be added to the Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::OrganizationApi->new();
my $body = WWW::SwaggerClient::Object::Organization->new(); # Organization | Organization object that needs to be added to the Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.OrganizationApi()
body =  # Organization | Organization object that needs to be added to the Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Add a new organization in Educator Portal
    api_response = api_instance.add_organization(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationApi->addOrganization: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 201 - Created.

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


deleteOrganization

Delete existing organization in Educator Portal


/organizations

Usage and SDK Samples

curl -X DELETE -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/organizations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrganizationApi;

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

public class OrganizationApiExample {

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

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

        OrganizationApi apiInstance = new OrganizationApi();
        DeleteOrganization body = ; // DeleteOrganization | Organization object that needs to be deleted in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.deleteOrganization(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationApi#deleteOrganization");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrganizationApi;

public class OrganizationApiExample {

    public static void main(String[] args) {
        OrganizationApi apiInstance = new OrganizationApi();
        DeleteOrganization body = ; // DeleteOrganization | Organization object that needs to be deleted in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.deleteOrganization(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationApi#deleteOrganization");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

DeleteOrganization *body = ; // Organization object that needs to be deleted in Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Delete existing organization in Educator Portal
[apiInstance deleteOrganizationWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.OrganizationApi()

var body = ; // {DeleteOrganization} Organization object that needs to be deleted in Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class deleteOrganizationExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new OrganizationApi();
            var body = new DeleteOrganization(); // DeleteOrganization | Organization object that needs to be deleted in Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Delete existing organization in Educator Portal
                APIResponse result = apiInstance.deleteOrganization(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrganizationApi.deleteOrganization: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\OrganizationApi();
$body = ; // DeleteOrganization | Organization object that needs to be deleted in Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::OrganizationApi->new();
my $body = WWW::SwaggerClient::Object::DeleteOrganization->new(); # DeleteOrganization | Organization object that needs to be deleted in Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.OrganizationApi()
body =  # DeleteOrganization | Organization object that needs to be deleted in Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Delete existing organization in Educator Portal
    api_response = api_instance.delete_organization(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationApi->deleteOrganization: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


updateOrganization

Update existing organization in Educator Portal


/organizations

Usage and SDK Samples

curl -X PUT -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/organizations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.OrganizationApi;

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

public class OrganizationApiExample {

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

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

        OrganizationApi apiInstance = new OrganizationApi();
        Organization body = ; // Organization | Organization object that needs to be updated in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.updateOrganization(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationApi#updateOrganization");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.OrganizationApi;

public class OrganizationApiExample {

    public static void main(String[] args) {
        OrganizationApi apiInstance = new OrganizationApi();
        Organization body = ; // Organization | Organization object that needs to be updated in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.updateOrganization(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationApi#updateOrganization");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

Organization *body = ; // Organization object that needs to be updated in Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Update existing organization in Educator Portal
[apiInstance updateOrganizationWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.OrganizationApi()

var body = ; // {Organization} Organization object that needs to be updated in Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class updateOrganizationExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new OrganizationApi();
            var body = new Organization(); // Organization | Organization object that needs to be updated in Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Update existing organization in Educator Portal
                APIResponse result = apiInstance.updateOrganization(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling OrganizationApi.updateOrganization: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\OrganizationApi();
$body = ; // Organization | Organization object that needs to be updated in Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::OrganizationApi->new();
my $body = WWW::SwaggerClient::Object::Organization->new(); # Organization | Organization object that needs to be updated in Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.OrganizationApi()
body =  # Organization | Organization object that needs to be updated in Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Update existing organization in Educator Portal
    api_response = api_instance.update_organization(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationApi->updateOrganization: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 201 - Created.

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


Student

addStudent

Add a new student in Educator Portal


/students

Usage and SDK Samples

curl -X POST -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/students"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StudentApi;

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

public class StudentApiExample {

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

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

        StudentApi apiInstance = new StudentApi();
        Student body = ; // Student | Student object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.addStudent(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StudentApi#addStudent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StudentApi;

public class StudentApiExample {

    public static void main(String[] args) {
        StudentApi apiInstance = new StudentApi();
        Student body = ; // Student | Student object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.addStudent(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StudentApi#addStudent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

Student *body = ; // Student object that needs to be added to the Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Add a new student in Educator Portal
[apiInstance addStudentWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.StudentApi()

var body = ; // {Student} Student object that needs to be added to the Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class addStudentExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new StudentApi();
            var body = new Student(); // Student | Student object that needs to be added to the Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Add a new student in Educator Portal
                APIResponse result = apiInstance.addStudent(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StudentApi.addStudent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\StudentApi();
$body = ; // Student | Student object that needs to be added to the Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::StudentApi->new();
my $body = WWW::SwaggerClient::Object::Student->new(); # Student | Student object that needs to be added to the Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.StudentApi()
body =  # Student | Student object that needs to be added to the Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Add a new student in Educator Portal
    api_response = api_instance.add_student(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StudentApi->addStudent: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 201 - Created.

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


deleteStudent

Delete a student in Educator Portal


/students

Usage and SDK Samples

curl -X DELETE -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/students"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StudentApi;

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

public class StudentApiExample {

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

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

        StudentApi apiInstance = new StudentApi();
        DeleteStudent body = ; // DeleteStudent | Student object that needs to be deleted in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.deleteStudent(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StudentApi#deleteStudent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StudentApi;

public class StudentApiExample {

    public static void main(String[] args) {
        StudentApi apiInstance = new StudentApi();
        DeleteStudent body = ; // DeleteStudent | Student object that needs to be deleted in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.deleteStudent(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StudentApi#deleteStudent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

DeleteStudent *body = ; // Student object that needs to be deleted in Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Delete a student in Educator Portal
[apiInstance deleteStudentWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.StudentApi()

var body = ; // {DeleteStudent} Student object that needs to be deleted in Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class deleteStudentExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new StudentApi();
            var body = new DeleteStudent(); // DeleteStudent | Student object that needs to be deleted in Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Delete a student in Educator Portal
                APIResponse result = apiInstance.deleteStudent(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StudentApi.deleteStudent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\StudentApi();
$body = ; // DeleteStudent | Student object that needs to be deleted in Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::StudentApi->new();
my $body = WWW::SwaggerClient::Object::DeleteStudent->new(); # DeleteStudent | Student object that needs to be deleted in Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.StudentApi()
body =  # DeleteStudent | Student object that needs to be deleted in Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Delete a student in Educator Portal
    api_response = api_instance.delete_student(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StudentApi->deleteStudent: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


updateStudent

Update existing student in Educator Portal


/students

Usage and SDK Samples

curl -X PUT -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/students"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StudentApi;

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

public class StudentApiExample {

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

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

        StudentApi apiInstance = new StudentApi();
        Student body = ; // Student | Student object that needs to be updated in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.updateStudent(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StudentApi#updateStudent");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.StudentApi;

public class StudentApiExample {

    public static void main(String[] args) {
        StudentApi apiInstance = new StudentApi();
        Student body = ; // Student | Student object that needs to be updated in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.updateStudent(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StudentApi#updateStudent");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

Student *body = ; // Student object that needs to be updated in Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Update existing student in Educator Portal
[apiInstance updateStudentWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.StudentApi()

var body = ; // {Student} Student object that needs to be updated in Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class updateStudentExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new StudentApi();
            var body = new Student(); // Student | Student object that needs to be updated in Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Update existing student in Educator Portal
                APIResponse result = apiInstance.updateStudent(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling StudentApi.updateStudent: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\StudentApi();
$body = ; // Student | Student object that needs to be updated in Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::StudentApi->new();
my $body = WWW::SwaggerClient::Object::Student->new(); # Student | Student object that needs to be updated in Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.StudentApi()
body =  # Student | Student object that needs to be updated in Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Update existing student in Educator Portal
    api_response = api_instance.update_student(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StudentApi->updateStudent: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 201 - Created.

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


User

addUser

Add a new user in Educator Portal


/users

Usage and SDK Samples

curl -X POST -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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

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

        UserApi apiInstance = new UserApi();
        User body = ; // User | Organization object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.addUser(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#addUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        User body = ; // User | Organization object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.addUser(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#addUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

User *body = ; // Organization object that needs to be added to the Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Add a new user in Educator Portal
[apiInstance addUserWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.UserApi()

var body = ; // {User} Organization object that needs to be added to the Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class addUserExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new UserApi();
            var body = new User(); // User | Organization object that needs to be added to the Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Add a new user in Educator Portal
                APIResponse result = apiInstance.addUser(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.addUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\UserApi();
$body = ; // User | Organization object that needs to be added to the Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::User->new(); # User | Organization object that needs to be added to the Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.UserApi()
body =  # User | Organization object that needs to be added to the Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Add a new user in Educator Portal
    api_response = api_instance.add_user(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->addUser: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 201 - Created.

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


deleteUser

Delete a user in Educator Portal


/users

Usage and SDK Samples

curl -X DELETE -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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

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

        UserApi apiInstance = new UserApi();
        DeleteUser body = ; // DeleteUser | Organization object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.deleteUser(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#deleteUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        DeleteUser body = ; // DeleteUser | Organization object that needs to be added to the Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.deleteUser(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#deleteUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

DeleteUser *body = ; // Organization object that needs to be added to the Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Delete a user in Educator Portal
[apiInstance deleteUserWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.UserApi()

var body = ; // {DeleteUser} Organization object that needs to be added to the Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class deleteUserExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new UserApi();
            var body = new DeleteUser(); // DeleteUser | Organization object that needs to be added to the Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Delete a user in Educator Portal
                APIResponse result = apiInstance.deleteUser(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.deleteUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\UserApi();
$body = ; // DeleteUser | Organization object that needs to be added to the Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::DeleteUser->new(); # DeleteUser | Organization object that needs to be added to the Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.UserApi()
body =  # DeleteUser | Organization object that needs to be added to the Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Delete a user in Educator Portal
    api_response = api_instance.delete_user(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->deleteUser: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.


updateUser

Update existing user in Educator Portal


/users

Usage and SDK Samples

curl -X PUT -H "X-API-KEY: [[apiKey]]" -H "X-APP-ID: [[apiKey]]" "https://educator-pltw.kiteaai.org/AART/api/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserApi;

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

public class UserApiExample {

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

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

        UserApi apiInstance = new UserApi();
        UpdateUser body = ; // UpdateUser | Organization object that needs to be updated in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.updateUser(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#updateUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserApi;

public class UserApiExample {

    public static void main(String[] args) {
        UserApi apiInstance = new UserApi();
        UpdateUser body = ; // UpdateUser | Organization object that needs to be updated in Educator Portal
        String xChecksum = xChecksum_example; // String | SHA256 hash
        try {
            APIResponse result = apiInstance.updateUser(body, xChecksum);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserApi#updateUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

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

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

UpdateUser *body = ; // Organization object that needs to be updated in Educator Portal
String *xChecksum = xChecksum_example; // SHA256 hash

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

// Update existing user in Educator Portal
[apiInstance updateUserWith:body
    xChecksum:xChecksum
              completionHandler: ^(APIResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var KiteEducatorPortal = require('kite_educator_portal');
var defaultClient = KiteEducatorPortal.ApiClient.instance;

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

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

var api = new KiteEducatorPortal.UserApi()

var body = ; // {UpdateUser} Organization object that needs to be updated in Educator Portal

var xChecksum = xChecksum_example; // {String} SHA256 hash


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

namespace Example
{
    public class updateUserExample
    {
        public void main()
        {
            
            // Configure API key authorization: apiKey
            Configuration.Default.ApiKey.Add("X-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-API-KEY", "Bearer");
            // Configure API key authorization: appId
            Configuration.Default.ApiKey.Add("X-APP-ID", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-APP-ID", "Bearer");

            var apiInstance = new UserApi();
            var body = new UpdateUser(); // UpdateUser | Organization object that needs to be updated in Educator Portal
            var xChecksum = xChecksum_example;  // String | SHA256 hash

            try
            {
                // Update existing user in Educator Portal
                APIResponse result = apiInstance.updateUser(body, xChecksum);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserApi.updateUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

$api_instance = new Swagger\Client\Api\UserApi();
$body = ; // UpdateUser | Organization object that needs to be updated in Educator Portal
$xChecksum = xChecksum_example; // String | SHA256 hash

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

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

my $api_instance = WWW::SwaggerClient::UserApi->new();
my $body = WWW::SwaggerClient::Object::UpdateUser->new(); # UpdateUser | Organization object that needs to be updated in Educator Portal
my $xChecksum = xChecksum_example; # String | SHA256 hash

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

# create an instance of the API class
api_instance = swagger_client.UserApi()
body =  # UpdateUser | Organization object that needs to be updated in Educator Portal
xChecksum = xChecksum_example # String | SHA256 hash

try: 
    # Update existing user in Educator Portal
    api_response = api_instance.update_user(body, xChecksum)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserApi->updateUser: %s\n" % e)

Parameters

Header parameters
Name Description
X-Checksum*
String
SHA256 hash
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK (successfully authenticated).

Status: 201 - Created.

Status: 204 - No Content

Status: 400 - Bad Request.

Status: 401 - Authorization information is missing or invalid.

Status: 500 - Unexpected error.