1️⃣1️⃣ POST - Group DNs

my_api.post.group_dns()

Adds a range of numbers to a Group. 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 range must be complete

Parameters

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

  • group_id (str): Group ID where numbers should be added to.

  • 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.group_dns(
    "serviceProviderId",
    "groupID",
    start_of_range_number="+1-1234567891,
    end_of_range_number="+1-1234567892
)

Last updated