curl --request POST \ --url https://dev-iam.razi.ai/v1/authorization/organizations/218910290/members \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --header 'X-App-Name: ' \ --data '{ "email": "[email protected]", "firstName": "John", "lastName": "Doe", "role": "admin", "userId": "218910290" // user id of the org owner/org manager assigning the role. }'
curl --request PUT \ --url https://dev-iam.razi.ai/v1/authentication/users/invite \ --header 'Content-Type: application/json' \ --header 'X-App-Name: ' \ --data '{ "orgId": "271296458001489512", "email": "[email protected]", "verificationCode": "XSR89TU", "newPassword": "Secret@slidezAB" }'