`POST /v1/orgs/{org}/invitations`.
POST
/v1/orgs/{org}/invitations
const url = 'https://api.updawg.net/v1/orgs/example/invitations';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example","role":"viewer"}'};
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://api.updawg.net/v1/orgs/example/invitations \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "role": "viewer" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string
role
required
string
Responses
Section titled “Responses”Invited. ⚠️ The token is in the email and is not in this response.
Media typeapplication/json
object
email
required
string
expires_at
required
string format: date-time
id
required
string
role
required
string
Example
{ "role": "viewer"}Not an address, or not a role.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours — one answer for both.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}That person is already in this organization.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}