Invite User to SwaggerHub Organizations
User Management for Swaggerhub
This guide documents adding users into your SwaggerHub Organization using their API. This allows you to invite users into your organization with a custom action in a Torii workflow. The SwaggerHub documentation on the topic can be found on the Smartbear support site here.
To use this action you will first need to get your SwaggerHub API key. Details on where that can be found are in this support article from the Smartbear support site.
Custom Action Configuration - Invite User to SwaggerHub Organization
Method : POST
URL : https://api.swaggerhub.com/user-management/v1/orgs/YOUR_ORG_NAME/members
Query Parameters
Parameter | Variable Mapping |
---|
Headers
Header | Value |
---|---|
Content-Type | application/json |
Accept | / |
Authorization | Bearer [SecretsVault.Swagger_API_Key] |
Body
{ "members": [
{
"email": "[Trigger.User.Email]"
}
]
}
Updated 26 days ago