Skip to content

Update configuration

Request

Update default configurations for a given project

Security
basicAuth or bearerAuth
Bodyapplication/jsonrequired

Update default configurations for a given project

contactobject

Contains the contact information for the default user.

webhookUrlstring

The default webhook URL to use for callbacks.

Example:"my.callback.server"
defaultPortTimestring

The default time for porting in numbers. If you don't specify a time in the order this time will be used.

Example:"09:00:00"
defaultPortTimeZonestring

The default time zone for porting in numbers. If you don't specify a time zone in the order, this time zone will be used.

Enum ValueDescription
US/Eastern

US Eastern Timezone

US/Central

US Central Timezone

US/Mountain

US Mountain Timezone

US/Pacific

US Pacific Timezone

curl -i -X PUT \
  -u '<username>:<password>' \
  https://porting.api.sinch.com/v1/projects/YOUR_project_id/configuration \
  -H 'Content-Type: application/json' \
  -d '{
    "contact": {
      "email": "name@email.com",
      "name": "John Smith",
      "phone": "+15559999"
    },
    "webhookUrl": "my.callback.server",
    "defaultPortTime": "09:00:00",
    "defaultPortTimeZone": "US/Eastern"
  }'

Responses

Successful operation

Bodyapplication/json
contactobject

Contains the contact information for the default user.

webhookUrlstring

The default webhook URL to use for callbacks.

Example:"my.callback.server"
defaultPortTimestring

The default time for porting in numbers. If you don't specify a time in the order this time will be used.

Example:"09:00:00"
defaultPortTimeZonestring

The default time zone for porting in numbers. If you don't specify a time zone in the order, this time zone will be used.

Enum ValueDescription
US/Eastern

US Eastern Timezone

US/Central

US Central Timezone

US/Mountain

US Mountain Timezone

US/Pacific

US Pacific Timezone

Response
{ "contact": { "email": "name@email.com", "name": "John Smith", "phone": "+15559999" }, "webhookUrl": "my.callback.server", "defaultPortTime": "09:00:00", "defaultPortTimeZone": "US/Eastern" }
We'd love to hear from you!
Rate this content: