Create object
client.Prism.Objects.Identities.New(ctx, params) (*PrismObjectIdentityNewResponse, error)
POST/v2/prism/{teamId}/identity
Create object
package main
import (
"context"
"fmt"
"github.com/micro-so/micro-sdk-go"
"github.com/micro-so/micro-sdk-go/option"
)
func main() {
client := micro.NewClient(
option.WithAPIKey("My API Key"),
option.WithTeamID("My Team ID"),
)
identity, err := client.Prism.Objects.Identities.New(context.TODO(), micro.PrismObjectIdentityNewParams{
PrismObjectProperties: micro.PrismObjectPropertiesParam{
},
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", identity.ID)
}
{
"id": "11111111-1111-4111-8111-111111111111",
"default": {
"full_name": "Sarah Chen",
"email": "sarah@example.com",
"title": "Partner",
"organization": "Acme Ventures"
}
}{
"id": "22222222-2222-4222-8222-222222222222",
"default": {
"name": "Acme Ventures",
"domain": "example.com",
"industry": "Venture Capital"
}
}{
"id": "33333333-3333-4333-8333-333333333333",
"default": {
"name": "Acme Ventures — Series A",
"amount": 2500000,
"stage": "negotiation",
"organization": "Acme Ventures"
}
}{
"id": "44444444-4444-4444-8444-444444444444",
"default": {
"name": "Follow up with Sarah Chen",
"status": "open",
"due_date": "2026-08-06",
"contact": "Sarah Chen"
}
}{
"id": "55555555-5555-4555-8555-555555555555",
"default": {
"name": "Acme Ventures — Series A notes",
"content": "Sarah Chen is coordinating diligence for the Series A.",
"organization": "Acme Ventures"
}
}Returns Examples
{
"id": "11111111-1111-4111-8111-111111111111",
"default": {
"full_name": "Sarah Chen",
"email": "sarah@example.com",
"title": "Partner",
"organization": "Acme Ventures"
}
}{
"id": "22222222-2222-4222-8222-222222222222",
"default": {
"name": "Acme Ventures",
"domain": "example.com",
"industry": "Venture Capital"
}
}{
"id": "33333333-3333-4333-8333-333333333333",
"default": {
"name": "Acme Ventures — Series A",
"amount": 2500000,
"stage": "negotiation",
"organization": "Acme Ventures"
}
}{
"id": "44444444-4444-4444-8444-444444444444",
"default": {
"name": "Follow up with Sarah Chen",
"status": "open",
"due_date": "2026-08-06",
"contact": "Sarah Chen"
}
}{
"id": "55555555-5555-4555-8555-555555555555",
"default": {
"name": "Acme Ventures — Series A notes",
"content": "Sarah Chen is coordinating diligence for the Series A.",
"organization": "Acme Ventures"
}
}