API.revise

This action allows you to publish a new revision of a document.

Request

The API key must have the publish access right.
Note: Requests must be multipart/form-data encoded and the endpoint must be http://upload.calameo.com/1.0
Name Type Description
apikey[required] string API public key
signature[required] string Signature of the request. See how to sign your requests.
expires[required] timestamp UNIX timestamp for request expiration.
output string Format of the response. Either XML (default), JSON or PHP.
book_id[required] string ID of the publication.
file[required] file Document to be uploaded (like provided by a HTML form file field).

Response

Returns a publication.

Example responses

<response> <requestid>...</requestid> <requests>...</requests> <status>ok</status> <content> <ID>...</ID> <AccountID>...</AccountID> <SubscriptionID>...</SubscriptionID> <Name>...</Name> <Description>...</Description> <Status>...</Status> <IsPublished>...</IsPublished> <IsPrivate>...</IsPrivate> <AuthID>...</AuthID> <AllowMini>...</AllowMini> <Date>...</Date> <Creation>...</Creation> <Modification>...</Modification> </content> </response>
{ "response": { "requestid": ..., "requests": ..., "status": "ok", "content": { "ID": ..., "AccountID": ..., "SubscriptionID": ..., "Name": ..., "Description": ..., "Status": ..., "IsPublished": ..., "IsPrivate": ..., "AuthID": ..., "AllowMini": ..., "Date": ..., "Creation": ..., "Modification": ... } } }
[ "response" => [ "requestid" => ..., "requests" => ..., "status" => "ok", "content" => [ "ID" => ..., "AccountID" => ..., "SubscriptionID" => ..., "Name" => ..., "Description" => ..., "Status" => ..., "IsPublished" => ..., "IsPrivate" => ..., "AuthID" => ..., "AllowMini" => ..., "Date" => ..., "Creation" => ..., "Modification" => ... ] ] ]

Error codes

See the error code section.