Checking out a document

You can use a mutation to check out a document.
Note the following considerations:
  • The mutation returns the source document that is being checked out.
  • The newly checked out Reservation object can be obtained by selecting the reservation field.
  • The newly checked out reservation properties can optionally be set inside the SubCheckoutActionInput object that is assigned to the checkoutAction field.
The following example shows the mutation to check out a document:
mutation {
    checkoutDocument(
repositoryIdentifier:"OS1",
    	identifier:"{40A9876C-0000-CF10-900C-02E3975438A5}",
  	checkoutAction: {
		reservationProperties: 
      	[
        		{DocumentTitle: "reservation doc"}
      	]   
})
  {
    id
    name
    reservation
    {
      id
      name
      dateCreated
    }
  }
}