Magidoc

Role
Object

A named placeholder for who does the work (e.g. "Architect"), scoped by projectId, recipeId, or workspaceId. Roles attach to tasks (todos, recipeTodos) and to people (users); attaching a user to a role auto-assigns them to every project task carrying it. Role names need not be unique — workspace-level operations (renameRole, hideRole) treat same-named roles in one workspace as a single logical role, and hidden names are listed in Workspace.hiddenRoles. Records with default true are workspace-level entries holding the default rates (hourlyRate, dailyRate, currency) for a role name, maintained via updateRole. Read through Project.roles, Recipe.roles, Workspace.roles, Todo.roles, and RecipeTodo.roles; managed with createRole, updateRole, deleteRole, renameRole, hideRole, associateRole, and disassociateRole.

A role here is the hat a person wears on a project (Business Analyst, Developer). It is not a permission such as Project Admin; the field named role on an assignment holds a permission.

Fields

#

creatorId

currency

dailyRate

Daily role billing rate, subject to the same billing_rates and role requirements as hourlyRate. Otherwise null.

default

hourlyRate

Hourly role billing rate. Requires persisted billing_rates permission and an eligible organization/workspace role or admin rights on this role's project. Workspace/recipe roles require an eligible organization/workspace role for browser/MCP actors. Organization-owned PATs may read rates within their organization. Otherwise null, including public sharing.

id

name

projectId

recipeId

recipeTodos

todos

users

workspaceId

Usages

#

References

#