Skip to main content
PATCH
Update a Line
Updates a line’s display profile (firstName, lastName, profileImageUrl), its call forwarding number (forwardCallsTo) and its call recording notice (callRecordingDisclosure, callRecordingDisclosureMessage). Send only the fields you want to change. Get the line _id from Get All Lines.

Endpoint

  • Method: PATCH
  • Path: /api/lines/{id}
  • Auth: Authorization: Bearer tuco_xxxxxxxxxxxxx

Body

Send at least one field. Any other field (for example dailyTotalMessagesLimit) is rejected with 400 and nothing is changed.
3 line info changes per line per month. Each change to the name, photo or call forwarding number needs a person on our side to update the line, so a line’s info can change at most 3 times per calendar month (UTC). One request that changes several of them counts once. The 4th returns 400 with "code": "LINE_INFO_UPDATE_LIMIT" and nothing is changed — contact support@tuco.ai. Sending the same values the line already has doesn’t count, and the name, photo and forwarding number you set when ordering the line are free. Every response includes lineInfoUpdates so you can see how many changes are left. Review everything and be sure before you send. Turning the call recording notice on or off, or changing its wording, does not count toward this limit.
Tuco stores the photo link you send — it does not copy the image. Host the photo somewhere permanent; if the link stops working, the photo stops showing.

Example request

Remove the photo:

Call forwarding

Calls to the line’s own number ring the number you set in forwardCallsTo:
  • Same country as the eSIM. A US line forwards to a US number, a Canadian line to a Canadian number.
  • Not the line’s own number. Calls would loop back to the line.
  • Takes effect once our team applies it to the line. The change is saved right away and the team is told at the same time.
  • Stop forwarding: send { "forwardCallsTo": null }.
You can also change it in the dashboard: Lines → Edit on the line.

Call recording notice

Every outbound call placed through Tuco is recorded. If you need the person you call to be told, turn on the notice for the line that places your calls:
Use your own wording (optional):
How it works:
  • When: the moment the person you call picks up, before anyone talks. It takes about 3–5 seconds.
  • Who hears it: the person you call and your rep, so your rep knows to let it finish.
  • On the recording: yes. The notice is at the start of the call recording, so you have proof it played.
  • Which calls: every call this line places through Tuco: the dashboard dialer, Place a Call, and calls made from your CRM through Tuco. It also plays when the call goes out from a Registered caller ID number.
  • Not covered: calls on the FaceTime Audio add-on, and calls you make from your own phone. Those don’t go through Tuco’s calling, so there is nothing to play the notice into.
  • Takes effect: on the next call that’s answered. It’s free.
You can also turn it on in the dashboard: Lines → Calling on the line.
Whether a notice like this meets the recording-consent rules where you and the people you call are (for example, US states that require all parties to consent) is your call. Check with your own counsel.

Success response (200)

Returns the updated line, in the same shape as an item from Get All Lines, plus lineInfoUpdates: how many line info changes (name, photo, forwarding number) this line has used and has left this month.

Error responses


Use the Try it panel to run this request interactively.