Set or clear the team notification address
const url = 'https://api.deploybase.eu/api/v1/api/v1/notification-email';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"email":"example"}'};
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://api.deploybase.eu/api/v1/api/v1/notification-email \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "email": "example" }'Requests a new team notification address, or clears it with null or “”. An address equal to a confirmed member’s own address in this team is in force at once (verified). Any other address becomes pending and is sent one confirmation email; the current address keeps receiving mail until it is confirmed. Every owner and the previous address are told. Caps: 5 changes and 3 confirmation emails per team per day; the per-address cap across teams is silent. Admin only, and the caller’s own email must be confirmed.
Authorizations
Section titled “ Authorizations ”Request Body
Section titled “ Request Body ”The new address, or null to clear
object
Example generated
{ "email": "example"}Responses
Section titled “ Responses ”OK
object
Status is verified (in force now: the address is a confirmed member’s own), pending (a confirmation was mailed to it) or none (cleared).
Example generated
{ "status": "example"}INVALID_EMAIL or ADDRESS_NOT_ALLOWED
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Unauthorized
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Forbidden
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}RESOURCE_NOT_FOUND: the team does not exist
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}RATE_LIMIT_EXCEEDED
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}INTERNAL_ERROR
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}A required check is unavailable
object
object
Example generated
{ "code": "example", "details": "example", "error": "example", "meta": { "request_id": "example", "timestamp": "example", "trace_id": "example" }}Live 174db30c built