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.

What to expect after you change a line

Why it takes time. A person on our team goes to the data center to make each change by hand. That is also why each line can be changed 3 times per month. Name, photo and call forwarding count. Ordering the line is free and does not count. Apple caches names and photos. After we make a name or photo change, Apple decides when it shows on people’s phones. People the line has already messaged may keep seeing the old name or photo for days. We can’t speed that up. How to test. Send a message from the line to a phone number it has never messaged before. That person sees the new name and photo. Still the old name after a few days? Reply to support@tuco.ai and we will look at it. After the 3 changes for the month are used, contact support@tuco.ai as well. After a counted change, the JSON response also includes a message string that explains this timing. The call recording notice fields are not counted against the limit and apply right away.
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 as soon as we make the change, within 24 hours. The change is saved right away and the team is told at the same time. Apple caching does not apply to call forwarding.
  • 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. After a counted change, the response also has a message string that explains the timing.

Error responses


Use the Try it panel to run this request interactively.