action stream_io_api_create_role { label: "Create role" description: "Creates custom role" provider: stream_io_api method: POST path: "/roles" encoding: json input: { type: "object" required: ["name"] properties: { name: { type: "string" description: "Role name" } } } output: { type: "object" required: ["duration", "role"] properties: { duration: { type: "string" description: "Duration of the request in human-readable format" } role: { type: "object" required: ["created_at", "custom", "name", "scopes", "updated_at"] properties: { created_at: { type: "string" format: "date-time" description: "Date/time of creation" } custom: { type: "boolean" description: "Whether this is a custom role or built-in" } name: { type: "string" description: "Unique role name" } scopes: { type: "array" description: "List of scopes where this role is currently present. `.app` means that role is present in app-level grants" items: { type: "string" } } updated_at: { type: "string" format: "date-time" description: "Date/time of the last update" } } } } } }