All URIs are relative to https://api.contabo.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createUser() | POST /v1/users | Create a new user |
deleteUser() | DELETE /v1/users/{userId} | Delete existing user by id |
generateClientSecret() | PUT /v1/users/client/secret | Generate new client secret |
getObjectStorageCredentials() | GET /v1/users/{userId}/object-storages/{objectStorageId}/credentials/{credentialId} | Get S3 compatible object storage credentials. |
listObjectStorageCredentials() | GET /v1/users/{userId}/object-storages/credentials | Get list of S3 compatible object storage credentials for user. |
regenerateObjectStorageCredentials() | PATCH /v1/users/{userId}/object-storages/{objectStorageId}/credentials/{credentialId} | Regenerates secret key of specified user for the S3 compatible object storages. |
resendEmailVerification() | POST /v1/users/{userId}/resend-email-verification | Resend email verification |
resetPassword() | POST /v1/users/{userId}/reset-password | Send reset password email |
retrieveUser() | GET /v1/users/{userId} | Get specific user by id |
retrieveUserClient() | GET /v1/users/client | Get client |
retrieveUserList() | GET /v1/users | List users |
updateUser() | PATCH /v1/users/{userId} | Update specific user by id |
createUser($x_request_id, $create_user_request, $x_trace_id): \OpenAPI\Client\Model\CreateUserResponse
Create a new user
Create a new user with required attributes name, email, enabled, totp (=Two-factor authentication 2FA), admin (=access to all endpoints and resources), accessAllResources and roles. You can't specify any password / secrets for the user. For security reasons the user will have to specify secrets on his own.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$create_user_request = new \OpenAPI\Client\Model\CreateUserRequest(); // \OpenAPI\Client\Model\CreateUserRequest
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$result = $apiInstance->createUser($x_request_id, $create_user_request, $x_trace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->createUser: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
create_user_request | \OpenAPI\Client\Model\CreateUserRequest | ||
x_trace_id | string | Identifier to trace group of requests. | [optional] |
\OpenAPI\Client\Model\CreateUserResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteUser($x_request_id, $user_id, $x_trace_id)
Delete existing user by id
By deleting a user he will not be able to access any endpoints or resources any longer. In order to temporarily disable a user please update its enabled
attribute.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$apiInstance->deleteUser($x_request_id, $user_id, $x_trace_id);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->deleteUser: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
generateClientSecret($x_request_id, $x_trace_id): \OpenAPI\Client\Model\GenerateClientSecretResponse
Generate new client secret
Generate and get new client secret.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$result = $apiInstance->generateClientSecret($x_request_id, $x_trace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->generateClientSecret: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
\OpenAPI\Client\Model\GenerateClientSecretResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getObjectStorageCredentials($x_request_id, $user_id, $object_storage_id, $credential_id, $x_trace_id): \OpenAPI\Client\Model\FindCredentialResponse
Get S3 compatible object storage credentials.
Get S3 compatible object storage credentials for accessing it via S3 compatible tools like aws
cli.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$object_storage_id = d8417276-d2d9-43a9-a0a8-9a6fa6060246; // string | The identifier of the S3 object storage
$credential_id = 12345; // int | The ID of the object storage credential
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$result = $apiInstance->getObjectStorageCredentials($x_request_id, $user_id, $object_storage_id, $credential_id, $x_trace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->getObjectStorageCredentials: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
object_storage_id | string | The identifier of the S3 object storage | |
credential_id | int | The ID of the object storage credential | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
\OpenAPI\Client\Model\FindCredentialResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listObjectStorageCredentials($x_request_id, $user_id, $x_trace_id, $page, $size, $order_by, $object_storage_id, $region_name, $display_name): \OpenAPI\Client\Model\ListCredentialResponse
Get list of S3 compatible object storage credentials for user.
Get list of S3 compatible object storage credentials for accessing it via S3 compatible tools like aws
cli.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
$page = 1; // int | Number of page to be fetched.
$size = 10; // int | Number of elements per page.
$order_by = name:asc; // string[] | Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`.
$object_storage_id = d8417276-d2d9-43a9-a0a8-9a6fa6060246; // string | The identifier of the S3 object storage
$region_name = Asia (Singapore); // string | Filter for Object Storage by regions. Available regions: Asia (Singapore), European Union, United States (Central)
$display_name = Object Storage EU 420; // string | Filter for Object Storage by his displayName.
try {
$result = $apiInstance->listObjectStorageCredentials($x_request_id, $user_id, $x_trace_id, $page, $size, $order_by, $object_storage_id, $region_name, $display_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->listObjectStorageCredentials: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
page | int | Number of page to be fetched. | [optional] |
size | int | Number of elements per page. | [optional] |
order_by | string[] | Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC | DESC`. |
object_storage_id | string | The identifier of the S3 object storage | [optional] |
region_name | string | Filter for Object Storage by regions. Available regions: Asia (Singapore), European Union, United States (Central) | [optional] |
display_name | string | Filter for Object Storage by his displayName. | [optional] |
\OpenAPI\Client\Model\ListCredentialResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
regenerateObjectStorageCredentials($x_request_id, $user_id, $object_storage_id, $credential_id, $x_trace_id): \OpenAPI\Client\Model\FindCredentialResponse
Regenerates secret key of specified user for the S3 compatible object storages.
Regenerates secret key of specified user for the a specific S3 compatible object storages.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$object_storage_id = d8417276-d2d9-43a9-a0a8-9a6fa6060246; // string | The identifier of the S3 object storage
$credential_id = 12345; // int | The ID of the object storage credential
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$result = $apiInstance->regenerateObjectStorageCredentials($x_request_id, $user_id, $object_storage_id, $credential_id, $x_trace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->regenerateObjectStorageCredentials: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
object_storage_id | string | The identifier of the S3 object storage | |
credential_id | int | The ID of the object storage credential | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
\OpenAPI\Client\Model\FindCredentialResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
resendEmailVerification($x_request_id, $user_id, $x_trace_id, $redirect_url)
Resend email verification
Resend email verification for a specific user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
$redirect_url = https://test.contabo.de; // string | The redirect url used for email verification
try {
$apiInstance->resendEmailVerification($x_request_id, $user_id, $x_trace_id, $redirect_url);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->resendEmailVerification: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
redirect_url | string | The redirect url used for email verification | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
resetPassword($x_request_id, $user_id, $x_trace_id, $redirect_url)
Send reset password email
Send reset password email for a specific user
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
$redirect_url = https://test.contabo.de; // string | The redirect url used for resetting password
try {
$apiInstance->resetPassword($x_request_id, $user_id, $x_trace_id, $redirect_url);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->resetPassword: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
redirect_url | string | The redirect url used for resetting password | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
retrieveUser($x_request_id, $user_id, $x_trace_id): \OpenAPI\Client\Model\FindUserResponse
Get specific user by id
Get attributes for a specific user.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$result = $apiInstance->retrieveUser($x_request_id, $user_id, $x_trace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->retrieveUser: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
\OpenAPI\Client\Model\FindUserResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
retrieveUserClient($x_request_id, $x_trace_id): \OpenAPI\Client\Model\FindClientResponse
Get client
Get idm client.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$result = $apiInstance->retrieveUserClient($x_request_id, $x_trace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->retrieveUserClient: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
\OpenAPI\Client\Model\FindClientResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
retrieveUserList($x_request_id, $x_trace_id, $page, $size, $order_by, $email, $enabled, $owner): \OpenAPI\Client\Model\ListUserResponse
List users
List and filter all your users.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
$page = 1; // int | Number of page to be fetched.
$size = 10; // int | Number of elements per page.
$order_by = name:asc; // string[] | Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC|DESC`.
$email = [email protected]; // string | Filter as substring match for user emails.
$enabled = true; // bool | Filter if user is enabled or not.
$owner = true; // bool | Filter if user is owner or not.
try {
$result = $apiInstance->retrieveUserList($x_request_id, $x_trace_id, $page, $size, $order_by, $email, $enabled, $owner);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->retrieveUserList: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
x_trace_id | string | Identifier to trace group of requests. | [optional] |
page | int | Number of page to be fetched. | [optional] |
size | int | Number of elements per page. | [optional] |
order_by | string[] | Specify fields and ordering (ASC for ascending, DESC for descending) in following format `field:ASC | DESC`. |
string | Filter as substring match for user emails. | [optional] | |
enabled | bool | Filter if user is enabled or not. | [optional] |
owner | bool | Filter if user is owner or not. | [optional] |
\OpenAPI\Client\Model\ListUserResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateUser($x_request_id, $user_id, $update_user_request, $x_trace_id): \OpenAPI\Client\Model\UpdateUserResponse
Update specific user by id
Update attributes of a user. You may only specify the attributes you want to change. If an attribute is not set, it will retain its original value.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearer
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\UsersApi(
// 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
);
$x_request_id = 04e0f898-37b4-48bc-a794-1a57abe6aa31; // string | [Uuid4](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) to identify individual requests for support cases. You can use [uuidgenerator](https://www.uuidgenerator.net/version4) to generate them manually.
$user_id = 6cdf5968-f9fe-4192-97c2-f349e813c5e8; // string | The identifier of the user.
$update_user_request = new \OpenAPI\Client\Model\UpdateUserRequest(); // \OpenAPI\Client\Model\UpdateUserRequest
$x_trace_id = 'x_trace_id_example'; // string | Identifier to trace group of requests.
try {
$result = $apiInstance->updateUser($x_request_id, $user_id, $update_user_request, $x_trace_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling UsersApi->updateUser: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
x_request_id | string | Uuid4 to identify individual requests for support cases. You can use uuidgenerator to generate them manually. | |
user_id | string | The identifier of the user. | |
update_user_request | \OpenAPI\Client\Model\UpdateUserRequest | ||
x_trace_id | string | Identifier to trace group of requests. | [optional] |
\OpenAPI\Client\Model\UpdateUserResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]