class

OpenAI::PublicCreateOrganizationRoleBody

Inherits JSON::Serializable < Reference < Object

Request payload for creating a custom role.

Constructors

new(role_name : String = "", permissions : Array(String) = [] of String, description : PublicCreateOrganizationRoleBodyDescription | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description

Optional description of the role.

Source
description=(description : PublicCreateOrganizationRoleBodyDescription | Nil)

Optional description of the role.

Source
permissions

Permissions to grant to the role.

Source
permissions=(permissions : Array(String))

Permissions to grant to the role.

Source
role_name

Unique name for the role.

Source
role_name=(role_name : String)

Unique name for the role.

Source