cloadyDocs
API ReferenceEndpointsWorkspaces

Create or change an alias

Makes an address deliver to mailboxes of the workspace, replacing its targets if it exists. The address must be on a domain of the workspace with email on and not be a mailbox (409 `address_taken`). Forwarding to outside addresses isn't available yet: a target that isn't a mailbox of the workspace answers 400 `bad_target`. Needs the admin role.

PUT
/api/workspaces/{workspaceSlug}/mail/aliases/{address}
AuthorizationBearer <token>

Personal API token (cldy_…)

In: header

Path Parameters

workspaceSlug*string
address*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/workspaces/string/mail/aliases/string" \  -H "Content-Type: application/json" \  -d '{    "targets": [      "string"    ]  }'
{  "address": "string",  "targets": [    "string"  ],  "type": "alias"}