Create Custom Object

Creates a Custom Object associated with the authenticated User using an Access Token.

POST
/identity/v2/auth/customobject

Creates a Custom Object associated with the authenticated User using an Access Token.

Authorization

BearerToken APIKey
AuthorizationBearer <token>

Bearer token for user authentication

In: header

apikey<token>

Tenant API Key for authentication

In: query

Query Parameters

customobjectid?string

Unique identifier for the Custom Object record

objectname?string

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?string

Access Token of the User

prevent_webhook?boolean

When true, suppresses webhook events for this operation.

Header Parameters

X-PreventWebhook?boolean

When true, suppresses webhook events for this operation.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

[key: string]?any

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.loginradius.com/identity/v2/auth/customobject?customobjectid=customObject12&objectname=customObjectName1&access_token=493318dd-487a-439b-8302-5e27f1110244&prevent_webhook=true" \  -H "X-PreventWebhook: true" \  -H "Content-Type: application/json" \  -d '{    "firstName": "John",    "lastName": "Doe",    "age": 30,    "address": {      "street": "123 Main St",      "city": "Metropolis"    },    "isActive": true  }'
{
  "IsActive": true,
  "IsDeleted": false,
  "CustomObject": {
    "firstName": "John",
    "lastName": "Doe",
    "age": 30
  },
  "Id": "abc123",
  "Uid": "user456",
  "DateCreated": "2024-05-28T12:34:56Z",
  "DateModified": "2024-05-29T09:10:11Z"
}

{
  "ErrorCode": 920,
  "Message": "API key is invalid",
  "Description": "The provided LoginRadius API key is invalid, please use a valid API key of your LoginRadius account."
}

{
  "errorCode": 1409,
  "message": "Authentication failed",
  "description": "The credentials provided could not be authenticated."
}

{
  "ErrorCode": 901,
  "Message": "The API key is unauthorized",
  "Description": "The provided LoginRadius API key is invalid or is not authorized, please use a valid or authorized LoginRadius API key or check the API key for your LoginRadius account."
}