# Update a specific pledge **PATCH /pledge/{id}** Change the properties of a pledge ## Servers - API Auto Mocking: https://YOURSITE.infoodle.com/apiv2 (API Auto Mocking) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **id** (integer) Which item to be processed ## Body parameters Content-type: application/json Specify one or more fields and their new values to change it - **user_id** (integer) CORE user id - **status** (string) Current state of the pledge - **form_entry_id** (integer) It this is related to a form entry, then this is the form entry ID - **payment_method_id** (integer) Links to the Payment Method - **payment_token** (string) If a token is available then the word hidden is returned - **card_expiry_date** (string) The date the card expires - **amount** (number) The amount of each pledge that will be processed. i.e. not the total amount of the pledge - **frequency_type** (string) The type of frequency for this pledge. one is One off. Combine with frequency_count - **frequency_count** (integer) The number of times the frequency_type occurs before the next date is identified in the series of pledges e.g. 4 weeks means the pledge is paid every 4 weeks | 1 is available for type one,week,month,year 2 is available for type week 3 is available for type month 4 is available for type week 6 is available for type month - **start_date_local** (string) The first date of the pledge in local time - **last_payment_date_local** (string) Optional. The date pledges after which, they should not be processed. If blank, it will auto extend giving 3 years of dates - **finance_tags_category_1** (integer) If supplied, must link with a FinanceTagCategory id and have a finance_tags_item_1 - **finance_tags_item_1** (integer) If supplied, must link with a FinanceTagItem id and have a finance_tags_category_1 - **finance_tags_category_2** (integer) If supplied, must link with a FinanceTagCategory id and have a finance_tags_item_2 - **finance_tags_item_2** (integer) If supplied, must link with a FinanceTagItem id and have a finance_tags_category_2 - **accountcode_id** (integer) Required. Must link to an Accountcode that the user is able to see. - **campaign_id** (integer) If supplied, must link to a Campaign the user can see - **note** (string) If supplied, is the note for this pledge - **pledge_drive_id** (integer) If supplied must link to a valid PledgeDrive - **gateway_fees** (number) If the payment gateway has a fee structure, this is the amount of fees that are part of this pledge ## Responses ### 200: Item has been saved successfully #### Body Parameters: application/json (object) - **id** (integer) ### 401: Authentication unauthorised #### Body Parameters: application/json (object) - **error** (string) ### 403: Invalid permission #### Body Parameters: application/json (object) - **error** (string) ### 404: Not Found #### Body Parameters: application/json (object) - **error** (string) [Powered by Bump.sh](https://bump.sh)