Skip to content

Update a signature

POST
/mail/signatures/{signatureHash}
curl --request POST \
--url https://mail.work.optidata.cloud/api/mail/signatures/39922fe6-7060-4932-bc32-eaf484adfd7a \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'signature={ "content": "example", "name": "example" }' \
--form 'attachments=[ { "file": "binary", "url": "example", "disposition": "inline", "type": "example" } ]'

Replace the content of an existing signature, addressed by its hash. The body is the same as on creation.

signatureHash
required
string

The signature’s hash.

object
signature
required
object
content
required

HTML content of the signature.

string
name
string | null
attachments

Images embedded in the signature, at up to 10 MB each.

Array<object> | null
object
file
required
string format: binary
url
required

The placeholder URL used inside signature.content.

string
disposition
required
string
type
required
string

The updated signature.

Media typeapplication/json

A signature block appended to outgoing mail.

object
id
integer
user_id
integer
hash

Stable identifier, used to address the signature.

string
name
string | null
content

HTML content.

string
created_at
string
updated_at
string
Example
{
"hash": "39922fe6-7060-4932-bc32-eaf484adfd7a"
}

Missing, malformed or expired authentication key.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

The request tried to read or write the signatures of another user, which only an administrator may do.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Exampledenied
{
"message": "Only administrators can manage signatures for other users."
}

No such resource, or it does not belong to the caller.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplemissing
{
"message": "No query results for model."
}

The request body or query string failed validation.

Media typeapplication/json
object
message
required

The first validation message.

string
errors
required

Validation messages keyed by field name.

object
key
additional properties
Array<string>
Examples
Exampleinvalid
{
"message": "The conversations field is required.",
"errors": {
"conversation_ids": [
"The conversations field is required."
]
}
}

Rate limit exceeded. Retry after the window resets.

Media typeapplication/json

Generic error envelope used by policy, binding and framework failures.

object
message
required

Human-readable description of the failure.

string
Examples
Examplethrottled
{
"message": "Too Many Attempts."
}