Using the business contact id in the request path, the method creates the contact's email address.
Responses
-
Created email address successfully.
-
Invalid request. See response body for details.
-
Unauthorized request. See response body for details.
-
Permission denied. See response body for details.
-
Business contact not found.
-
Email address already exists.
-
Unknown error. See response body for details.
POST
/business-contacts/{businessContactId}/email-addresses
curl \
--request POST 'http://api.example.com/business-contacts/{businessContactId}/email-addresses' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"typeCode":"string","address":"string"}'
Request example
{
"typeCode": "string",
"address": "string"
}
Response examples (201)
{}
Response examples (404)
{
"code": 42,
"message": "string",
"details": [
"string"
]
}
Response examples (409)
{
"code": 42,
"message": "string",
"details": [
"string"
]
}