Skip to content

Update a fax

PUT
/v1/Accounts/{auth_id}/Faxes/{fax_sid}
curl --request PUT \
--url https://api.siprtc.io/v1/Accounts/AC000000000000000000/Faxes/FX0123456789ABCDEF0123456789ABCDEF \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "from": "+15555550100", "media_url": "", "quality": "standard", "status_callback": "https://example.com/fax/status", "status_callback_method": "GET", "to": "+15555550124" }'

Changes stored fields of one of your faxes that has not been deleted: from, to, media_url, status_callback and quality. Fields left out or empty keep their value; other fields are ignored. The update does not send, re-queue or cancel the fax and does not change the document that is transmitted; a retry that runs after the update dials the updated to and from. Returns the fax sid and its current status. A fax of another account, or a deleted one, is 404.

auth_id
required
string

Your account’s Auth ID (20 upper-case letters and digits).

Example

AC000000000000000000
fax_sid
required
string

Fax sid (FX followed by 32 hexadecimal characters).

Example

FX0123456789ABCDEF0123456789ABCDEF

Fields to change.

Media type application/json
object
from

New sending number.

string

Example

+15555550100
media_url

New stored media_url value (stored as given; it does not change the document that is transmitted).

string

Example

quality

New quality label.

string
Allowed values: standard fine superfine

Example

fine
status_callback

New status callback URL (http or https, at most 2048 characters).

string

Example

https://example.com/fax/status
status_callback_method

Accepted (GET or POST, any case) but not stored by an update.

string
Allowed values: GET POST get post

Example

POST
to

New destination number.

string

Example

+15555550124

Updated.

Media type application/json
object
sid

The fax’s identifier: “FX” followed by 32 upper-case hexadecimal characters.

string
status

Send a fax: always “success” (the fax was accepted and queued). Update a fax: the fax’s current status.

string

Example

{
"sid": "FX0123456789ABCDEF0123456789ABCDEF",
"status": "success"
}

Malformed JSON, an invalid status_callback/status_callback_method (message like ’validation failed on field ‘status_callback’, condition: http_url, actual: …’), or a storage error.

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}

Missing or wrong credentials, or credentials that may not act for {auth_id}. Body: ‘Authentication failed’.

Media type application/json
string

Example generated

example

No such fax on this account (message ‘fax not found’).

Media type application/json
object
message

Human-readable reason.

string
status

Always “failed”.

string

Example

{
"message": "fax not found",
"status": "failed"
}

Unexpected server error.

Media type application/json
object
message

Human-readable reason.

string

Example

{
"message": "Request Entity Too Large"
}