IdentitiesService
A list of all methods in the IdentitiesService service. Click on the method name to view detailed information about that method.
| Methods | Description |
|---|---|
| listEnrichedIdentities | Returns all Identities with enriched metadata in the org |
| createIdentity | Creates a new identity. An identity represents a human, service, or workload. |
| getIdentity | Returns the details of an identity. |
| updateIdentity | Updates an identity. |
| deleteIdentity | Deletes the specified identity. |
listEnrichedIdentities
Returns all Identities with enriched metadata in the org
- HTTP Method:
GET - Endpoint:
/identities
Return Type
List<Identity>
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Identity;
import java.util.List;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
List<Identity> response = testSdk.identities.listEnrichedIdentities();
System.out.println(response);
}
}
createIdentity
Creates a new identity. An identity represents a human, service, or workload.
- HTTP Method:
POST - Endpoint:
/identities
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| identityParams | IdentityParams | ✅ | Request Body |
Return Type
Identity
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Identity;
import com.swagger.petstore.models.IdentityParams;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
IdentityParams identityParams = IdentityParams.builder()
.abbeyAccount("abbey_account")
.source("source")
.metadata("metadata")
.build();
Identity response = testSdk.identities.createIdentity(identityParams);
System.out.println(response);
}
}
getIdentity
Returns the details of an identity.
- HTTP Method:
GET - Endpoint:
/identities/{identity_id}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| identityId | String | ✅ | The ID of the identity to retrieve |
Return Type
Identity
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Identity;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
Identity response = testSdk.identities.getIdentity("identity_id");
System.out.println(response);
}
}
updateIdentity
Updates an identity.
- HTTP Method:
PUT - Endpoint:
/identities/{identity_id}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| identityId | String | ✅ | The ID of the identity to retrieve |
| identityParams | IdentityParams | ✅ | Request Body |
Return Type
Identity
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
import com.swagger.petstore.models.Identity;
import com.swagger.petstore.models.IdentityParams;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
IdentityParams identityParams = IdentityParams.builder()
.abbeyAccount("abbey_account")
.source("source")
.metadata("metadata")
.build();
Identity response = testSdk.identities.updateIdentity("identity_id", identityParams);
System.out.println(response);
}
}
deleteIdentity
Deletes the specified identity.
- HTTP Method:
DELETE - Endpoint:
/identities/{identity_id}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| identityId | String | ✅ | The ID of the identity to delete |
Example Usage Code Snippet
import com.swagger.petstore.TestSdk;
import com.swagger.petstore.config.TestSdkConfig;
public class Main {
public static void main(String[] args) {
TestSdkConfig config = TestSdkConfig.builder()
.accessToken("YOUR_ACCESS_TOKEN")
.build();
TestSdk testSdk = new TestSdk(config);
testSdk.identities.deleteIdentity("identity_id");
}
}