Create a recipient
PUT/users
Create a recipient
Request
Query Parameters
- true - Filtering policy will be applied to messages intended for this recipient. If this would exceed the protected-addresses limit, return an error.
- false - Filtering policy will not be applied to messages intended for this recipient.
- compute (default) - Filtering policy will be applied to messages intended for this recipient. If this would exceed the protected-addresses limit, filtering policy will not be applied, and no error will be returned.
The email address of the user to add
Flag to indicate if the user is a domain admin or a regular user
Possible values: [true
, false
, compute
]
Whether or not to filter mail for this recipient. There are three valid values.
- application/json
Body
list_entries
object
safelist and blocklist entries to be added
Responses
- 200
- 201
- 400
- 403
- 500
Returned in the case where the recipient already exists and in that case no changes will be made to the safe/block list entries.
The recipient was created successfully.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
recipient
the email address of the user
array of roles the given user has
determines if policy should be applied to messages intended for this recipient
list_entries
undefined[]
The value of this entry. The meaning of this value depends on the item_type.
The item type.
Which list this entry is on, e.g. safelist or blocklist.
{
"recipient": {
"email_address": "string",
"roles": [
"string"
],
"filter": true
},
"list_entries": [
{
"item": "string",
"item_type": "string",
"action": "string"
}
]
}
Returned when the email_address is invalid.
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Retuned when customer/API-key does not have the required privileges to make this request. Also returned when an account is created with filter = true and there is no room in the protected-addresses limit to filter mail for more recipients
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"code": 0,
"message": "string",
"errors": [
"string"
]
}