SkillHub
Referenceorgs

Invite a member to the organization

POST
/orgs/{handle}/invites

Path Parameters

handle*string
Lengthlength <= 64

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/orgs/string/invites" \  -H "Content-Type: application/json" \  -d '{    "invitee": {},    "role": "owner"  }'
{  "invite": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "target": {      "targetType": "org",      "orgHandle": "string",      "role": "owner"    },    "email": "string",    "githubHandle": "string",    "invitedBy": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "handle": "string",      "displayName": "string",      "avatarUrl": "string"    },    "acceptedAt": "2019-08-24T14:15:22Z",    "expiresAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z"  },  "inviteUrl": "http://example.com"}