Skip to main content
PATCH
Update a Line
Updates a line’s display profile: firstName, lastName, and profileImageUrl. 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.
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:

Success response (200)

Returns the updated line, in the same shape as an item from Get All Lines.

Error responses


Use the Try it panel to run this request interactively.