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
| Name | Type | Description |
|---|---|---|
doers | [String!] | Unique identifiers of the Users who did the activity. Required: a call without doers is refused with a BAD_USER_INPUT error |
done | String! | Unique identifier of the Task done |
date | Date | Date 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 }
}
}