Skip to main content
POST
Set the anniversary of a line
  • Credential: an API key. See Anniversary and billing anchor.
  • Account: wholesale partners only: a line whose owner is not a wholesale partner returns 409 line_not_wholesale_metered.
  • Line-scoped keys: a line-scoped key gets 403 forbidden unless the line is in its list.
  • Idempotency-Key: not honored. The call overwrites any earlier value, so the same request sent twice leaves the line in the same state.
  • Events: none.

Errors

The errors that every operation shares are in Errors.

Authorizations

Authorization
string
header
required

An API key created in the iSnap dashboard, or a trial key, sent as Authorization: Bearer <key>. An API key starts with isnap_live_ or isnap_test_; both act on the same account, lines and billing. A trial key acts on its trial only.

Path Parameters

id
string
required

Id of a line: line_ followed by 25 letters or digits.

Pattern: ^line_[0-9A-Za-z]{25}$

Body

application/json

The anniversary to record on the line.

anniversary_at
string<date-time>
required

The timestamp at which you took this line (ISO 8601, UTC, with a Z suffix). The day of the month and the time of day are both kept. A future timestamp returns 400 anniversary_in_the_future.

Example:

"2026-07-02T09:15:00Z"

Response

The line, with the new anniversary_at.

success
enum<boolean>
required

Always true on a success response.

Available options:
true
data
object
required

A line. billing_tier, byod, shared, test_line and inbound_only tell the kinds of line apart: a rented line (two-way or inbound-only), a BYOD line, a shared line, a test line.

trace_id
string
required

Trace id of the request that produced this response: 32 lowercase hexadecimal characters. Quote it when you report a problem to iSnap.

request_id
string
required

Id of the request that produced this response: req_ followed by 25 letters or digits.