All URIs are relative to https://localhost:9200/graph, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| addUserToClass() | POST /v1.0/education/classes/{class-id}/members/$ref | Assign a user to a class |
| createClass() | POST /v1.0/education/classes | Add new education class |
| deleteClass() | DELETE /v1.0/education/classes/{class-id} | Delete education class |
| deleteUserFromClass() | DELETE /v1.0/education/classes/{class-id}/members/{user-id}/$ref | Unassign user from a class |
| getClass() | GET /v1.0/education/classes/{class-id} | Get class by key |
| listClassMembers() | GET /v1.0/education/classes/{class-id}/members | Get the educationClass resources owned by an educationSchool |
| listClasses() | GET /v1.0/education/classes | list education classes |
| updateClass() | PATCH /v1.0/education/classes/{class-id} | Update properties of a education class |
addUserToClass($class_id, $class_member_reference)Assign a user to a class
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$class_id = 86948e45-96a6-43df-b83d-46e92afd30de; // string | key: id or externalId of class
$class_member_reference = new \OpenAPI\Client\Model\ClassMemberReference(); // \OpenAPI\Client\Model\ClassMemberReference | educationUser to be added as member
try {
$apiInstance->addUserToClass($class_id, $class_member_reference);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->addUserToClass: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| class_id | string | key: id or externalId of class | |
| class_member_reference | \OpenAPI\Client\Model\ClassMemberReference | educationUser to be added as member |
void (empty response body)
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createClass($education_class): \OpenAPI\Client\Model\EducationClassAdd new education class
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$education_class = new \OpenAPI\Client\Model\EducationClass(); // \OpenAPI\Client\Model\EducationClass | New entity
try {
$result = $apiInstance->createClass($education_class);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->createClass: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| education_class | \OpenAPI\Client\Model\EducationClass | New entity |
\OpenAPI\Client\Model\EducationClass
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteClass($class_id)Delete education class
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$class_id = 86948e45-96a6-43df-b83d-46e92afd30de; // string | key: id or externalId of class
try {
$apiInstance->deleteClass($class_id);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->deleteClass: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| class_id | string | key: id or externalId of class |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteUserFromClass($class_id, $user_id)Unassign user from a class
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$class_id = 'class_id_example'; // string | key: id or externalId of class
$user_id = 90eedea1-dea1-90ee-a1de-ee90a1deee90; // string | key: id or username of the user to unassign from class
try {
$apiInstance->deleteUserFromClass($class_id, $user_id);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->deleteUserFromClass: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| class_id | string | key: id or externalId of class | |
| user_id | string | key: id or username of the user to unassign from class |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getClass($class_id): \OpenAPI\Client\Model\EducationClassGet class by key
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$class_id = 86948e45-96a6-43df-b83d-46e92afd30de; // string | key: id or externalId of class
try {
$result = $apiInstance->getClass($class_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->getClass: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| class_id | string | key: id or externalId of class |
\OpenAPI\Client\Model\EducationClass
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listClassMembers($class_id): \OpenAPI\Client\Model\CollectionOfEducationUserGet the educationClass resources owned by an educationSchool
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$class_id = 86948e45-96a6-43df-b83d-46e92afd30de; // string | key: id or externalId of class
try {
$result = $apiInstance->listClassMembers($class_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->listClassMembers: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| class_id | string | key: id or externalId of class |
\OpenAPI\Client\Model\CollectionOfEducationUser
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listClasses(): \OpenAPI\Client\Model\CollectionOfClasslist education classes
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->listClasses();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->listClasses: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\OpenAPI\Client\Model\CollectionOfClass
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateClass($class_id, $education_class): \OpenAPI\Client\Model\EducationClassUpdate properties of a education class
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (plain) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\EducationClassApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$class_id = 86948e45-96a6-43df-b83d-46e92afd30de; // string | key: id or externalId of class
$education_class = {"displayName":"Musik"}; // \OpenAPI\Client\Model\EducationClass | New property values
try {
$result = $apiInstance->updateClass($class_id, $education_class);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EducationClassApi->updateClass: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| class_id | string | key: id or externalId of class | |
| education_class | \OpenAPI\Client\Model\EducationClass | New property values |
\OpenAPI\Client\Model\EducationClass
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]