Skip to main content

Update a campaign

Path Parameters
  • id integer required
Request Body
  • name string required

    Possible values: <= 120 characters

  • start_date string required

    Possible values: Value must match regular expression ^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$

    Date when the campaign the number belongs to starts. Formatted as ISO 8601 without time. Required if run_continuously is false.

  • end_date string required

    Possible values: Value must match regular expression ^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$

    Date when the campaign the number belongs to ends. Formatted as ISO 8601 without time. Required if run_continuously is false.

  • run_continuously boolean required

    When set to true, the number will be always available. When set to false, the number will be available until end_date

Responses


Schema
  • id integer
  • name string
  • start_date string

    Possible values: Value must match regular expression ^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$

    Date when the campaign the number belongs to starts. Formatted as ISO 8601 without time. Required if run_continuously is false.

  • end_date string

    Possible values: Value must match regular expression ^\d{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[0-1])$

    Date when the campaign the number belongs to ends. Formatted as ISO 8601 without time. Required if run_continuously is false.

  • run_continuously boolean

    When set to true, the number will be always available. When set to false, the number will be available until end_date