Skip to content
Contents

Reference · Mutation

createActivity

🙌 Add a new activity for the team (possible only with a date within the current week). Paused members cannot get activities. When the token owner is under parental control, the activity waits for an admin's approval, as in the app

Arguments

NameTypeDescription
doers[String!]Unique identifiers of the Users who did the activity. Required: a call without doers is refused with a BAD_USER_INPUT error
doneString!Unique identifier of the Task done
dateDateDate of the activity (defaults to now if not provided) & must be within the current week

Returns

[Activity]

Example

mutation {
  createActivity(doers: ["USER_UID"], done: "TASK_UID") {
    uid
    draft
    task { name value }
    user { name }
  }
}