Skip to content

Update numbers for email

Request

Set the numbers for an email.

Security
BasicAuth or OAuth2
Path
projectIdstringrequired

The projectId is a required parameter you must include when making any API calls. You can find your project ID on your Build dashboard.

Example:3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47
serviceIdstringrequired

The serviceId containing the email you want to work with.

emailstringrequired

The email you want to work with.

Bodyapplication/json
phoneNumbersArray of objects(Number)required

List of numbers

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://fax.api.sinch.com/v3/projects/3acb7ae1-cf3d-4112-ba5e-3a9d8c71cd47/services/{serviceId}/emails/{email}' \
  -H 'Content-Type: application/json' \
  -d '{
    "phoneNumbers": [
      {
        "number": "+14155552222",
        "permissions": "both"
      }
    ]
  }'

Responses

The added email

Bodyapplication/json
emailstring, (email)required
Example:"user@domain.com"
phoneNumbersArray of objects(Number)required

Numbers you want to associate with this email.

projectIdstring(ProjectId)read-only

The Id of the project associated with the call.

Example:"ae00f005-e392-44dc-b3f5-a657a2684dg3"
createdAtstring, (date-time)read-only

The date and time the email configuration was created.

updatedAtstring, (date-time)read-only

The date and time the email configuration was last updated.

Response
{ "email": "user@domain.com", "phoneNumbers": [ { … } ], "projectId": "ae00f005-e392-44dc-b3f5-a657a2684dg3", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }
We'd love to hear from you!
Rate this content: