Update inbox
curl --request PATCH \
--url https://api.moonemail.co/inboxes/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.moonemail.co/inboxes/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/inboxes/{id}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"address": "<string>",
"status": "enabled",
"created_at": "<string>",
"aliases": [
"<string>"
]
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}Inboxes
Update inbox
Enable or disable delivery into an inbox. Disabled addresses discard new incoming mail; addresses are never reassigned.
Required permission: inboxes:write.
PATCH
/
inboxes
/
{id}
Update inbox
curl --request PATCH \
--url https://api.moonemail.co/inboxes/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.moonemail.co/inboxes/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.moonemail.co/inboxes/{id}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"name": "<string>",
"address": "<string>",
"status": "enabled",
"created_at": "<string>",
"aliases": [
"<string>"
]
}{
"statusCode": 123,
"name": "<string>",
"message": "<string>"
}Authorizations
Moonemail API key; x-required-scope applies.
Path Parameters
Required string length:
1 - 200Pattern:
^[A-Za-z0-9_-]+$Body
application/json
Available options:
enabled, disabled