Create User Profile
beta.user_profiles.create(**kwargs) -> BetaUserProfile { id, created_at, metadata, 4 more }
POST/v1/user_profiles
Create User Profile
Parameters
external_id: String
metadata: Hash[Symbol, String]
Free-form key-value data to attach to this user profile. Maximum 16 keys, with keys up to 64 characters and values up to 512 characters. Values must be non-empty strings.
Returns
Create User Profile
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_user_profile = anthropic.beta.user_profiles.create
puts(beta_user_profile)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"
}