{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"<b>Required scope: </b><code>notifications:write</code>\n\nMarks only the given notifications as unread for the authenticated user. A notification that is archived is also unarchived and moves to the top of Inbox, matching the Inbox UI's unarchive action. Notifications already in Inbox keep their existing position. A user may only mark their own notifications. GIDs that don't exist, don't belong to the caller, or have been deleted are reported in failed_gids rather than failing the whole request.","properties":{"path":{"type":"object","properties":{"user_gid":{"type":"string","examples":["me"],"description":"A string identifying a user. This can either be the string \"me\", an email, or the gid of a user."}},"required":["user_gid"],"additionalProperties":false},"query":{"type":"object","properties":{"opt_pretty":{"type":"boolean","examples":[true],"description":"Provides “pretty” output.\nProvides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging."},"opt_fields":{"type":"array","items":{"type":"string","enum":["failed_gids"]},"examples":[["failed_gids"]],"description":"This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. Properties can include nested fields. To learn more, see the [input/output options guide](/docs/inputoutput-options#selecting-nested-fields)."}},"required":[],"additionalProperties":false},"body":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/definitions/MarkNotificationsRequest"}}}},"required":["path","body"],"additionalProperties":false,"definitions":{"MarkNotificationsRequest":{"type":"object","required":["workspace","notification_gids"],"properties":{"workspace":{"description":"GID of the workspace used to route the request.","type":"string","examples":["31326"]},"notification_gids":{"description":"The notifications to update. Between 1 and 50 GIDs may be supplied, and duplicate GIDs are ignored.","type":"array","minItems":1,"maxItems":50,"items":{"type":"string","description":"The `gid` of a notification."},"examples":[["1234567890","1234567891"]]}}}}},"name":"Mark notifications as unread","id":"asana.marknotificationsunreadforuser","example":{"path":{"user_gid":"me"},"body":{"data":{"workspace":"31326","notification_gids":["1234567890","1234567891"]}}},"maxRequests":1,"summary":false}}