Update User Profile
client.Beta.UserProfiles.Update(ctx, id, params) (*BetaUserProfile, error)
POST/v1/user_profiles/{id}
Update User Profile
Parameters
id string
Returns
Update User Profile
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
betaUserProfile, err := client.Beta.UserProfiles.Update(
context.TODO(),
"id",
anthropic.BetaUserProfileUpdateParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaUserProfile.ID)
}
Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "string"
},
"trust_grants": {
"foo": {
"status": "status"
}
},
"type": "type",
"updated_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id"
}Returns Examples
Response 200
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "string"
},
"trust_grants": {
"foo": {
"status": "status"
}
},
"type": "type",
"updated_at": "2019-12-27T18:11:19.117Z",
"external_id": "external_id"
}