Create identifier
Creates an identifier. The system uses "identifier" as an abstraction: choose what type of identifier you need to participate in your chosen ecosystem.
Related guide: Identifiers
Function
- React Native
- iOS
- Android
createIdentifier(identifierRequest: CreateIdentifierRequest): Promise<string>;
func createIdentifier(request: CreateIdentifierRequestBindingDto) async throws -> String
fun `createIdentifier`(`request`: CreateIdentifierRequestBindingDto): kotlin.String
Parameters
- React Native
- iOS
- Android
export interface CreateIdentifierRequest {
organisationId: string;
name: string;
keyId?: KeyListItem["id"];
did?: CreateIdentifierDidRequest;
}
public struct CreateIdentifierRequestBindingDto {
public var organisationId: String
public var name: String
public var keyId: String?
public var did: CreateIdentifierDidRequestBindingDto?
}
data class CreateIdentifierRequestBindingDto (
var `organisationId`: kotlin.String,
var `name`: kotlin.String,
var `keyId`: kotlin.String?,
var `did`: CreateIdentifierDidRequestBindingDto?
)
Fields
-
organisationId
- Value from create organization. -
name
- Must be unique in the organization. -
Must choose one of:
-
keyId
: Reference a key to create an identifier. -
did
: Create a new DID.
-
Return value
The system returns the UUID of the identifier.