Turn down joining by email domain
DELETE
/api/v1/join
const url = 'http://localhost:3000/api/v1/join';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/api/v1/join \ --header 'Authorization: Bearer <token>'Not now: the offer isn’t made again.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Turned down
Media typeapplication/json
object
data
required
object
organization
required
object
id
required
string format: uuid
name
required
string
domain
required
The email domain it opened
string
Examplegenerated
{ "data": { "organization": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "name": "example" }, "domain": "example" }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}