@PATCH(METADATA_BASE_PATH + V1) @Multipart Response addUserMetadata( @Header(TOKEN_HEADER) AuthenticationToken<?, ?> token, @Path(USER_STORE_VARIABLE) ResourceIdentifier userStore, @Path(USER_UUID_VARIABLE) UUID userUuid, @Part("metadata") List<Metadata<?>> metadata ) throws HodErrorException;
@PATCH("user/profiles/{token}") Call<User> editUser(@Path("token") String token,@Body User user);
@PATCH("password/change") Call<User> changePwd(@Body PasswordChange passwordChange);
@PATCH("orders/{orderId}/line_items/{id}") Call<Order> editQuantity(@Path("orderId") String orderId, @Path("id") int id, @Query("token") String token, @Body LineItemWrapper lineItemWrapper);
@Headers("Accept: application/json") @PATCH("/notifications/viewed") Observable<ResponseBody> patchNotifications();
@PATCH("/v1/disk/resources/") Resource patchResource(@Query("path") String path, @Query("fields") String fields, @Body TypedOutput body) throws IOException, ServerIOException;
@NotNull @PATCH("/candidates/{id}") Candidate updateCandidate(@NotNull @Path("id") final String id, @NotNull @Body final Candidate candidate);
@PATCH("/api/{version}/accounts/{id}") Object updateUser(@Path("version") int version, @Path("id") int id, @Body Object userData);
/** * Appends new content to an existing page * specified by page id * * Note: This passes a blank Accept-Encoding header to * work around a known issue with the PATCH on this OneNote API * * @param encoding * @param version * @param pageId * @param body * @param callback */ @PATCH("/{version}/me/notes/pages/{pageId}/content") void patchPage( @Header("Accept-Encoding") String encoding, @Path("version") String version, @Path("pageId") String pageId, @Body TypedString body, Callback<Envelope<Page>> callback );
/** * Updates a customer * @see <a href="http://dev.desk.com/API/customers/#update">http://dev.desk.com/API/customers/#update</a> * * @param customerId the customer id * @param updatedCustomer the updated customer * @return a customer */ @PATCH(CUSTOMERS_URI + "/{id}") Call<Customer> updateCustomer(@Path("id") int customerId, @Body Customer updatedCustomer);
/** * Update a mobile device setting * @see <a href="http://dev.desk.com/API/users/#mobile-devices-settings-update">http://dev.desk.com/API/users/#mobile-devices-settings-update</a> * * @param userId the user id * @param deviceId the device id * @param settingId the setting id * @param update the setting update body * @return a setting */ @PATCH(USERS_URI + "/{userId}/" + MOBILE_DEVICES_URI + "/{deviceId}/" + SETTINGS_URI + "/{settingId}") Call<Setting> updateMobileDeviceSetting(@Path("userId") int userId, @Path("deviceId") int deviceId, @Path("settingId") int settingId, @Body SettingUpdate update);
/** * Locks or unlocks a case * @see <a href="http://dev.desk.com/API/cases/#update">http://dev.desk.com/API/cases/#update</a> * * @param caseId the id of the case * @param caseLock the case lock * @return a case */ @PATCH(CASES_URI + "/{id}") Call<Case> updateCaseLock(@Path("id") int caseId, @Body CaseLock caseLock);
/** * Updates a case * @see <a href="http://dev.desk.com/API/cases/#update">http://dev.desk.com/API/cases/#update</a> * * @param caseId the id of the case * @param updatedCase the updated case * @return a case */ @PATCH(CASES_URI + "/{id}") Call<Case> updateCase(@Path("id") int caseId, @Body Case updatedCase);
/** * Updates a case * @see <a href="http://dev.desk.com/API/cases/#update">http://dev.desk.com/API/cases/#update</a> * * @param caseId the id of the case * @param updatedCase the updated case * @param embed what to embed in the response * @param fields the fields requested in the response * @return a case */ @PATCH(CASES_URI + "/{id}") Call<Case> updateCase(@Path("id") int caseId, @Body Case updatedCase, @Query("embed") Embed embed, @Query("fields") Fields fields);
/** * Updates a case message * @see <a href="http://dev.desk.com/API/cases/#message-update">http://dev.desk.com/API/cases/#message-update</a> * * @param caseId the id of the case * @param updatedMessage the updated message * @return a message */ @PATCH(CASES_URI + "/{id}/message") Call<Message> updateCaseMessage(@Path("id") int caseId, @Body Message updatedMessage);
/** * Updates a case reply * @see <a href="http://dev.desk.com/API/cases/#replies-update">http://dev.desk.com/API/cases/#replies-update</a> * * @param caseId the id of the case * @param replyId the id of the reply * @param updatedReply the updated reply * @return a message */ @PATCH(CASES_URI + "/{caseId}/" + REPLIES_URI + "/{replyId}") Call<Message> updateCaseReply(@Path("caseId") int caseId, @Path("replyId") int replyId, @Body Message updatedReply);
/** * Updates a draft * @see <a href="http://dev.desk.com/API/cases/#drafts-update">http://dev.desk.com/API/cases/#drafts-update</a> * * @param caseId the id of the case * @param draft the updated draft * @return a message */ @PATCH(CASES_URI + "/{id}/" + DRAFT_URI) Call<Message> updateDraft(@Path("id") int caseId, @Body Message draft);
/** * Performs a request to update the card. * * @param cardId The id of the card. * @param updateFields The fields to update. * @param callback A callback to receive the request information. */ @PATCH("/v0/me/cards/{cardId}") void update(@Path("cardId") String cardId, @Body HashMap<String, Object> updateFields, Callback<Card> callback);
/** * Performs a request to update the user values. * * @param field An {@link HashMap<String, Object>} with the user field to change and the value. * @param callback A callback to receive the request information. */ @PATCH("/v0/me") void updateUser(@Body HashMap<String, Object> field, Callback<User> callback);