/api/v1/locations/{id}/mailbox (PUT)
PUT
/api/v1/locations/{id}/mailbox
const url = 'https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mailbox';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"host":"example","port":1,"security":"tls","username":"example","password":"example","folder":"example","allowedSenders":[]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mailbox \ --header 'Content-Type: application/json' \ --data '{ "host": "example", "port": 1, "security": "tls", "username": "example", "password": "example", "folder": "example", "allowedSenders": [] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
host
required
string
port
integer
security
required
string
username
required
string
password
string
folder
required
string
allowedSenders
Array<string>
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
id
required
string format: uuid
host
required
string
port
required
integer
security
required
string
username
required
string
folder
required
string
allowedSenders
required
Array<string>
active
required
boolean
lastError
required
string | null
createdBy
required
object
id
required
string format: uuid
displayName
required
string
Example
{ "security": "tls", "disabledReason": "creator_left"}