4️⃣4️⃣ POST - Service Provider DNs

my_api.post.service_provider_dns()

Adds a range of numbers to a Service Provider/ Enterprise. Range of numbers must be complete and format of number must follow: +{country code}-{number}.

Adding a singular number - Set both the start and end of range parameters as the same number.

format of number must follow: +{country code}-{number} and the range must be complete.

Parameters

  • service_provider_id (str): Service provider ID where the target group is located.

  • start_of_range_number (str): Starting number in range to add to group.

  • end_of_range_number (str): Ending number in range to add to group.

Returns

  • None: This method does not return any specific value.

How To Use:

from odins_spear import api

my_api= api.Api(base_url="https://base_url/api/vx", username="john.smith", password="ODIN_INSTANCE_1")
my_api.authenticate()

my_api.post.service_provider_dns(
    "serviceProviderId",
    start_of_range_number="+1-1234567891,
    end_of_range_number="+1-1234567892
)

Last updated