Skip to main content

CreateClient

CreateClient creates a single client.

Method Options​

Authorisation specification of the CreateClient method.

TypeMETHOD_TYPE_WRITE
Access LevelMETHOD_ACCESS_LEVEL_AUTHORISED
Roles
  • ROLE_COMPLIANCE_ADMIN
  • ROLE_COMPLIANCE_CLIENT_ADMIN

Parameters​

Request and response parameter message overview:

Input: CreateClientRequest Message​

FieldTypeRequiredDescription
Client

meshtrade.compliance.client.v1.Client

True

Client is the client resource to create.

Returns: Client Message​

Code Examples​

Select supported SDK in the language of your choice for a full example of how to invoke the this method:

package main

import (
"context"
"log"

clientv1 "github.com/meshtrade/api/go/compliance/client/v1"
)

func main() {
ctx := context.Background()

// Default configuration is used and credentials come from MESH_API_CREDENTIALS
// environment variable or default discovery methods. Zero config required
// unless you want custom configuration.
service, err := clientv1.NewClientService()
if err != nil {
log.Fatalf("Failed to create service: %v", err)
}
defer service.Close()

// Create request with service-specific parameters
request := &clientv1.CreateClientRequest{
// FIXME: Populate service-specific request fields
}

// Call the CreateClient method
client, err := service.CreateClient(ctx, request)
if err != nil {
log.Fatalf("CreateClient failed: %v", err)
}

// FIXME: Add relevant response object usage
log.Printf("CreateClient successful: %+v", client)
}

Advanced Configuration​

For advanced client configuration options (custom endpoints, TLS settings, timeouts), see the SDK Configuration Guide.

Other Methods​