post_api_management_v1_workspaces_slug_members
POST
/api/management/v1/workspaces/{slug}/members
const url = 'https://example.com/api/management/v1/workspaces/example/members';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"example","role":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/management/v1/workspaces/example/members \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "role": "example" }'Invite workspace member through the authenticated management service.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Workspace management slug
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string
role
string
Example generated
{ "email": "example", "role": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
changed
required
boolean
id
required
string format: uuid
key
required
string
resource_type
required
string
status
required
string
Example generated
{ "changed": true, "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "key": "example", "resource_type": "example", "status": "example"}