1
0
Fork 0
arangodb/Documentation/DocuBlocks/Rest/Replication/JSF_put_batch_replication.md

1.3 KiB

//////////////////////////////////////////////////////////////////////////////// /// @startDocuBlock JSF_put_batch_replication /// @brief handle a dump batch command /// /// @RESTHEADER{PUT /_api/replication/batch/{id}, Prolong existing dump batch} /// /// Note: These calls are uninteresting to users. /// /// @RESTBODYPARAM{ttl,integer,required,int64} /// the time-to-live for the new batch (in seconds) /// /// @RESTURLPARAMETERS /// /// @RESTURLPARAM{id,string,required} /// The id of the batch. /// /// @RESTDESCRIPTION /// Extends the ttl of an existing dump batch, using the batch's id and /// the provided ttl value. /// /// If the batch's ttl can be extended successfully, the response is empty. /// /// Note: on a coordinator, this request must have the query parameter /// DBserver which must be an ID of a DBserver. /// The very same request is forwarded synchronously to that DBserver. /// It is an error if this attribute is not bound in the coordinator case. /// /// @RESTRETURNCODES /// /// @RESTRETURNCODE{204} /// is returned if the batch's ttl was extended successfully. /// /// @RESTRETURNCODE{400} /// is returned if the ttl value is invalid or the batch was not found. /// /// @RESTRETURNCODE{405} /// is returned when an invalid HTTP method is used. /// @endDocuBlock ////////////////////////////////////////////////////////////////////////////////