Skip to content

`POST /v1/orgs/{org}/invitations`.

POST
/v1/orgs/{org}/invitations
curl --request POST \
--url https://api.updawg.net/v1/orgs/example/invitations \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "role": "viewer" }'
org
required
string

Organization slug.

Media typeapplication/json
object
email
required
string
role
required
string
Allowed values: viewer operator admin owner

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
Allowed values: viewer operator admin owner
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"
}