Update a signature
const url = 'https://open-api.replyco.com/openapi/signature/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'}, body: '{ "text": "<p>Kind regards,<br/>Jane — Customer Support</p>" }'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://open-api.replyco.com/openapi/signature/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json-patch+json' \ --data '{ "text": "<p>Kind regards,<br/>Jane — Customer Support</p>" }'Replaces the text of one of the authenticated user’s signatures, identified by id, and returns it.
Returns 404 if the signature is not yours. The signature’s integration links are left unchanged.
Request
text(required) — the new signature content (plain text or HTML). HTML is sanitized on save.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The id of the signature to update.
Request Body
Section titled “Request Body”The new signature content.
Input model for updating the current user’s signature. Replaces the signature content. The signature’s integration links are left unchanged.
object
The new signature content. Required. Accepts plain text or HTML. HTML is sanitized on save: unsafe markup (scripts, event handlers, etc.) is stripped.
Example
<p>Kind regards,<br/>Jane — Customer Support</p>Input model for updating the current user’s signature. Replaces the signature content. The signature’s integration links are left unchanged.
object
The new signature content. Required. Accepts plain text or HTML. HTML is sanitized on save: unsafe markup (scripts, event handlers, etc.) is stripped.
Example
<p>Kind regards,<br/>Jane — Customer Support</p>Input model for updating the current user’s signature. Replaces the signature content. The signature’s integration links are left unchanged.
object
The new signature content. Required. Accepts plain text or HTML. HTML is sanitized on save: unsafe markup (scripts, event handlers, etc.) is stripped.
Example
<p>Kind regards,<br/>Jane — Customer Support</p>Input model for updating the current user’s signature. Replaces the signature content. The signature’s integration links are left unchanged.
object
The new signature content. Required. Accepts plain text or HTML. HTML is sanitized on save: unsafe markup (scripts, event handlers, etc.) is stripped.
Example
<p>Kind regards,<br/>Jane — Customer Support</p>Responses
Section titled “Responses”The signature was updated and is returned.
A signature belonging to the current user. A signature applies across all of the user’s connected integrations.
object
The signature content. May contain HTML; unsafe markup is stripped on save.
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "text": "example"}The request is invalid (e.g. text is missing).
User is not authenticated or authorized.
No such signature belongs to the current user.