Setup | User method
Allows adding or modifying the user in your database. Authorized user must have ManageUsers privilege to call this method.
Parameters
- user’s email. Can be either email address as is or take the form of "Name" <email>. If user account does not exist it is created. In this case, account’s first and last names properties will be pre-filled from name part, if present.
- role
- The role to assign. Pass empty string (e.g. role= ) to disable user.
- defaultSet
- 1 to include user in default user set. 0 otherwise.
- external
- 1 if the user is external user.
- invite
- 1 to send default invitation letter, 0 to skip sending. Default is 0.
Request
GET https://www.teamdesk.net/secure/api/v2/{appid}/setup/user.{json|xml}?parameters
Response (JSON)
{
// 201 - created, 200 - updated
"status": 201,
// authorization ticket for invitation email
"ticket": "5c98ad47-c6ca-437d-8c2f-cb2f929c54b8"
}
Response (XML)
<Response>
<status>201</status>
<ticket>5c98ad47-c6ca-437d-8c2f-cb2f929c54b8</ticket>
</Response>