tasks.team.inviteToTask

Creates a new user profile, assigns a task the user, and sends the user an invitation.

HTTP method

POST

Content type

application/x-www-form-urlencoded

Parameters

  • email POST Optional
    User’s email address. Must be specified if the phone parameter is empty. An invitation will be sent to this address by the Team app.
  • phone POST Optional
    User’s phone number. Must be specified if the email parameter is empty. An invitation will be sent to this phone number via the Webasyst ID system.
  • task_id POST
    Task ID.
  • access_right POST Optional
    Access level of the invited user to Teamwork: 0 (access only to tasks assigned to the user), 1 (access to all projects and tasks), 2 (full access to the app). If not specified then value 0 is applied by default.
  • format GET Optional

    Sets response format. Available options: json (default), xml.

Return value

Array with the following keys:

  • contact int Invited user’s ID.