poddub docs

update_source

Update a source

Corrects a source's title, language or text; a call sends at least one of the three. Any member who can see the source can use it. It never deletes a source, and it never changes the text of an uploaded file.

What the server says

The description an agent is given, word for word. This tool makes changes.

Correct a source's title, language or text. Send at least one of the three: a call with none is refused. An uploaded file's text cannot be edited.

Input

FieldTypeRequiredWhat it takes
titletextno1 to 200 characters
languagetextnomatches ^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$
bodytextnonot empty
sourceIdtextyesnot empty; The source's id, as list_sources or create_text_source answers it.

Refusals

A refusal comes back as the tool's result, marked as an error, with the code and what explains it.

CodeWhat it means
source_not_foundA source named is not one the person can see, is in another team, or was deleted.
upload_body_not_editableThe source is an uploaded file, whose text cannot be edited. Its title and language can.
source_body_too_longThe text is over 60,000 characters. The refusal says the limit and the length.

Every tool can also answer rate_limited and not_a_member: see Limits and Keys.

On this page