action cpy_add_user { label: "Create a user" provider: cpy method: POST path: "/api/v1/users" encoding: json input: { required: ["email", "password", "role", "username", "videoQuota", "videoQuotaDaily"] properties: { adminFlags: { type: "integer" description: "Admin flags for the user (None = `0`, Bypass video blocklist = `1`)" enum: [0, 1] } channelName: { type: "string" description: "immutable name of the channel, used to interact with its actor" } email: { type: "string" format: "email" description: "The user email" } password: { type: "string" format: "password" } role: { type: "integer" description: "The user role (Admin = `0`, Moderator = `1`, User = `2`)" enum: [0, 1, 2] } username: { type: "string" description: "immutable name of the user, used to find or mention its actor" } videoQuota: { type: "integer" description: "The user video quota in bytes" } videoQuotaDaily: { type: "integer" description: "The user daily video quota in bytes" } } } output: { properties: { user: { type: "object" properties: { account: { type: "object" properties: { id: { type: "integer" } } } id: { type: "object" additionalProperties: true } } } } } }