POST
Invite a user to the account
Scope:
system:users.writehttps://api.holded.com/api/v2/account/usersSends an invitation email to the specified address and creates a pending membership for the account.
Request body
object
emailstring<email>required
Email address of the user to invite
role_idstringrequired
Role identifier to assign to the invited user
Request
python
import requests
url = "https://api.holded.com/api/v2/account/users"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"email": "user@example.com",
"role_id": "507f1f77bcf86cd799439011"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())Responses
Response
json
{
"id": "507f1f77bcf86cd799439011"
}Success responses
201Invitation createdapplication/jsonobject
idstring
Error responses
400Bad requestapplication/json401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json409User is already a member or has a pending invitation422No seats available for the requested role429Rate limit exceededapplication/json