5 operation(s). Part of the API index.
Call these as $client-><service>-><method>(...). <service> is the client field for this
group — the README lists the field name for every service.
These pages group operations the way the OpenAPI specification tags them, which
is not always one field per page.
POST /identity/v2/auth/customobject
Create Custom Object
Creates a Custom Object associated with the authenticated User using an Access Token.
function callCreateCustomObjectByToken($client) {
$requestBody = []; //Required
$customobjectid = '<customobjectid>'; //Optional
$objectname = '<objectname>'; //Optional
$accessToken = '<accessToken>'; //Optional
$preventWebhook = true; //Optional
$xPreventWebhook = true; //Optional
try {
$response = $client->customObject->createCustomObjectByToken($requestBody, customobjectid: $customobjectid, objectname: $objectname, accessToken: $accessToken, preventWebhook: $preventWebhook, xPreventWebhook: $xPreventWebhook);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
customobjectid |
query | string | no | Unique identifier for the Custom Object record |
objectname |
query | string | no | Name of the Custom Object to be used in the request. The name should match the Custom Object configured in your LoginRadius account. |
access_token |
query | string | no | Access Token of the User |
prevent_webhook |
query | boolean | no | When true, suppresses webhook events for this operation. |
X-PreventWebhook |
header | boolean | no | When true, suppresses webhook events for this operation. |
CustomObjectRequest as application/json.
CustomObjectResponseModel
DELETE /identity/v2/auth/customobject/{objectrecordid}
Delete Custom Object by ID
Deletes the Custom Object associated with the specified User using an Access Token and record ID.
function callDeleteCustomObjectByTokenAndRecordId($client) {
$objectrecordid = '<objectrecordid>'; //Required
$accessToken = '<accessToken>'; //Optional
$preventWebhook = true; //Optional
$xPreventWebhook = true; //Optional
$objectname = '<objectname>'; //Optional
$customobjectid = '<customobjectid>'; //Optional
try {
$response = $client->customObject->deleteCustomObjectByTokenAndRecordId(objectrecordid: $objectrecordid, accessToken: $accessToken, preventWebhook: $preventWebhook, xPreventWebhook: $xPreventWebhook, objectname: $objectname, customobjectid: $customobjectid);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
objectrecordid |
path | string (uuid) | yes | Unique identifier for the Custom Object record. The ID is used to target a specific Custom Object. |
access_token |
query | string | no | Access Token of the User |
prevent_webhook |
query | boolean | no | When true, suppresses webhook events for this operation. |
X-PreventWebhook |
header | boolean | no | When true, suppresses webhook events for this operation. |
objectname |
query | string | no | Name of the Custom Object to be used in the request. The name should match the Custom Object configured in your LoginRadius account. |
customobjectid |
query | string | no | Unique identifier for the Custom Object record |
IsDeleted
GET /identity/v2/auth/customobject
Retrieve Custom Objects
Retrieves Custom Objects associated with the authenticated User using an Access Token.
function callGetCustomObjectByToken($client) {
$customobjectid = '<customobjectid>'; //Optional
$objectname = '<objectname>'; //Optional
$accessToken = '<accessToken>'; //Optional
try {
$response = $client->customObject->getCustomObjectByToken(customobjectid: $customobjectid, objectname: $objectname, accessToken: $accessToken);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
customobjectid |
query | string | no | Unique identifier for the Custom Object record |
objectname |
query | string | no | Name of the Custom Object to be used in the request. The name should match the Custom Object configured in your LoginRadius account. |
access_token |
query | string | no | Access Token of the User |
CustomObjectsResponseModel
GET /identity/v2/auth/customobject/{objectrecordid}
Retrieve Custom Object by ID
Retrieves the Custom Object associated with the specified User using an Access Token and record ID.
function callGetCustomObjectByTokenAndRecordId($client) {
$objectrecordid = '<objectrecordid>'; //Required
$accessToken = '<accessToken>'; //Optional
$objectname = '<objectname>'; //Optional
$customobjectid = '<customobjectid>'; //Optional
try {
$response = $client->customObject->getCustomObjectByTokenAndRecordId(objectrecordid: $objectrecordid, accessToken: $accessToken, objectname: $objectname, customobjectid: $customobjectid);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
objectrecordid |
path | string (uuid) | yes | Unique identifier for the Custom Object record. The ID is used to target a specific Custom Object. |
access_token |
query | string | no | Access Token of the User |
objectname |
query | string | no | Name of the Custom Object to be used in the request. The name should match the Custom Object configured in your LoginRadius account. |
customobjectid |
query | string | no | Unique identifier for the Custom Object record |
CustomObjectResponseModel
PUT /identity/v2/auth/customobject/{objectrecordid}
Update Custom Object by ID
Updates a Custom Object associated with the authenticated User using an Access Token and record ID.
function callUpdateCustomObjectByTokenAndRecordId($client) {
$objectrecordid = '<objectrecordid>'; //Required
$updateType = '<updateType>'; //Required
$requestBody = []; //Required
$objectname = '<objectname>'; //Optional
$accessToken = '<accessToken>'; //Optional
$preventWebhook = true; //Optional
$xPreventWebhook = true; //Optional
$customobjectid = '<customobjectid>'; //Optional
try {
$response = $client->customObject->updateCustomObjectByTokenAndRecordId($requestBody, objectrecordid: $objectrecordid, updateType: $updateType, objectname: $objectname, accessToken: $accessToken, preventWebhook: $preventWebhook, xPreventWebhook: $xPreventWebhook, customobjectid: $customobjectid);
echo $response;
} catch (\LoginRadius\Sdk\Internal\OpenApi\ApiException $e) {
$lr = \LoginRadius\Sdk\Client::toLoginRadiusException($e);
echo $lr->description();
}
}| Name | In | Type | Required | Description |
|---|---|---|---|---|
objectrecordid |
path | string (uuid) | yes | Unique identifier for the Custom Object record. The ID is used to target a specific Custom Object. |
objectname |
query | string | no | Name of the Custom Object to be used in the request. The name should match the Custom Object configured in your LoginRadius account. |
updateType |
query | string | yes | The type of update to be performed on the Custom Object. This parameter is used to specify whether the update should be a full update or a partial update. |
access_token |
query | string | no | Access Token of the User |
prevent_webhook |
query | boolean | no | When true, suppresses webhook events for this operation. |
X-PreventWebhook |
header | boolean | no | When true, suppresses webhook events for this operation. |
customobjectid |
query | string | no | Unique identifier for the Custom Object record |
CustomObjectRequest as application/json.
CustomObjectResponseModel