cURL
curl --request POST \ --url https://api.getgranite.ai/api/create_organization \ --header 'Content-Type: application/json' \ --data ' { "organization_name": "<string>", "organization_slug": "<string>" } '
{ "status": "<string>", "message": "<string>", "user": { "member_id": "<string>", "email": "<string>", "organization": { "organization_id": "<string>", "organization_name": "<string>", "organization_slug": "<string>" } } }
Create a new organization and add the user as a member
Request model for creating a new organization
Organization display name
URL-friendly organization identifier
Successful Response
Response from organization actions
Action status
Status message
Updated user information
Show child attributes