Class InviteCreateParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class InviteCreateParams implements Params
Invite a user to join the organization by email.
On plans that draw members from a finite pool of purchased seats, the invite automatically consumes a seat from the lowest tier with availability; there is no seat-tier parameter. When no seat is free the request fails with a 400 error rather than purchasing a seat.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classInviteCreateParams.BuilderA builder for InviteCreateParams.
public final classInviteCreateParams.Bodypublic final classInviteCreateParams.RoleRole for the invited User.
The accepted values depend on the organization type. Console and API organizations accept
user,developer,billing, andclaude_code_user;admincannot be assigned through the API. Claude Enterprise organizations acceptuserandmanaged; inviting with themanagedrole requires thewrite:rbac_groupsscope in addition towrite:members.
-
Method Summary
Modifier and Type Method Description final Stringemail()Email of the User. final InviteCreateParams.Rolerole()Role for the invited User. final Optional<List<String>>rbacGroupIds()RBAC group IDs to assign to the User when the Invite is accepted. final JsonField<String>_email()Returns the raw JSON value of email. final JsonField<InviteCreateParams.Role>_role()Returns the raw JSON value of role. final JsonField<List<String>>_rbacGroupIds()Returns the raw JSON value of rbacGroupIds. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final InviteCreateParams.BuildertoBuilder()final InviteCreateParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static InviteCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of InviteCreateParams. -
-
Method Detail
-
role
final InviteCreateParams.Role role()
Role for the invited User.
The accepted values depend on the organization type. Console and API organizations accept
user,developer,billing, andclaude_code_user;admincannot be assigned through the API. Claude Enterprise organizations acceptuserandmanaged; inviting with themanagedrole requires thewrite:rbac_groupsscope in addition towrite:members.
-
rbacGroupIds
final Optional<List<String>> rbacGroupIds()
RBAC group IDs to assign to the User when the Invite is accepted. A non-empty array is accepted only for a Claude Enterprise organization with RBAC groups, and requires the key to carry the
write:rbac_groupsscope.
-
_email
final JsonField<String> _email()
Returns the raw JSON value of email.
Unlike email, this method doesn't throw if the JSON field has an unexpected type.
-
_role
final JsonField<InviteCreateParams.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_rbacGroupIds
final JsonField<List<String>> _rbacGroupIds()
Returns the raw JSON value of rbacGroupIds.
Unlike rbacGroupIds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final InviteCreateParams.Builder toBuilder()
-
_body
final InviteCreateParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static InviteCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of InviteCreateParams.
The following fields are required:
.email() .role()
-
-
-
-