Invites

Invites Create

Create an organization invite for a specific user

Request

posthttps://api.cloudsmith.io/v1/orgs/{org}/invites
Body params optional

Response body

object

object

email
email
optional
length ≥ 1
role
string
optional
Allowed values: Owner, Manager, Member, Collaborator
Defaults to Member
teams
array of objects
optional
user
string
optional
length ≥ 1

Response

Responses

Invite sent

object

object

email
email
optional
length ≥ 1
expires_at
date-time
optional
inviter
string
optional
length ≥ 1
inviter_url
uri | null
optional
org
string
optional
role
string
optional
Allowed values: Owner, Manager, Member, Collaborator
Defaults to Member
slug_perm
slug
optional
^[-a-zA-Z0-9_]+$
length ≥ 1
teams
array of objects
optional
user
string
optional
length ≥ 1
user_url
uri | null
optional

The invite cannot be created.

object

object

detail
string
required
length ≥ 1
fields
object
optional

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1
fields
object
optional