---
updatedAt: 2026-10-29T08:22:22.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Update target

Updates a webhook target. This webhook target can be used for listening to multiple events from multiple accounts.

> 👍 How to use this endpoint
>
> * To see example requests of full and minimal payload, click **Examples** in the payload on the right.
> * To skip a parameter, enter "null" or exclude it from the payload.

> 📘 Only `https://` URLs are accepted.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Yotpo API V3",
    "description": "Yotpo API V3 endpoints on api.yotpo.com. Webhook events are defined separately, in webhooks.json.",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://api.yotpo.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "X-Yotpo-Token": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Yotpo-Token",
        "description": "Your Yotpo account access token. See [Authentication](https://core-api.yotpo.com/reference/yotpo-authentication) to learn how to generate your access token."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Unauthorized. The access token in `X-Yotpo-Token` is invalid or expired. Generate a new one with [Generate access token](ref:yotpo-authentication). The body is plain text.",
        "content": {
          "text/plain": {
            "schema": {
              "type": "string",
              "example": "unauthorized"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden. The request has no `X-Yotpo-Token` header.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Error message.",
                  "example": "Forbidden"
                }
              }
            },
            "examples": {
              "Missing token": {
                "value": "{\n  \"message\": \"Forbidden\"\n}"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "X-Yotpo-Token": []
    }
  ],
  "paths": {
    "/core/v3/stores/{store_id}/webhooks/targets/{yotpo_target_id}": {
      "patch": {
        "summary": "Update target",
        "description": "Updates a webhook target. This webhook target can be used for listening to multiple events from multiple accounts.",
        "operationId": "update-target",
        "parameters": [
          {
            "name": "store_id",
            "in": "path",
            "description": "The ID of the target to update",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "name": "yotpo_target_id",
            "in": "path",
            "description": "The ID of the target to update",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "webhook_target"
                ],
                "properties": {
                  "webhook_target": {
                    "type": "object",
                    "description": "The callback URL",
                    "required": [
                      "url"
                    ],
                    "properties": {
                      "url": {
                        "type": "string",
                        "description": "The HTTPS URL that receives the events. Only `https://` URLs are accepted.",
                        "default": "https://www.waverider.com/"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Update target": {
                  "value": {
                    "webhook_target": {
                      "url": "https://example.com/webhooks/yotpo-v2"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK. The response has no body."
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Unexpected input": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"unexpected input: <reason>\"\n    }\n  ]\n}"
                  },
                  "Target is missing a <property> definitio": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook target is missing a <property> definition\"\n    }\n  ]\n}"
                  },
                  "Target contains an invalid value for <property>": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook target contains an invalid value for <property>: <error-description>\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "title": "Unexpected input",
                      "type": "object",
                      "properties": {
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string",
                                "example": "unexpected input: <reason>",
                                "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                              }
                            }
                          },
                          "description": "The validation errors. Usually one item."
                        }
                      }
                    },
                    {
                      "title": "Target is missing a <property> definitio",
                      "type": "object",
                      "properties": {
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string",
                                "example": "webhook target is missing a <property> definition",
                                "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                              }
                            }
                          },
                          "description": "The validation errors. Usually one item."
                        }
                      }
                    },
                    {
                      "title": "Target contains an invalid value for <property>",
                      "type": "object",
                      "properties": {
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "message": {
                                "type": "string",
                                "example": "webhook target contains an invalid value for <property>: <error-description>",
                                "description": "What's wrong with the request, usually naming the missing or invalid field. Meant for logs; the wording can change, so don't parse it."
                              }
                            }
                          },
                          "description": "The validation errors. Usually one item."
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "description": "404",
            "content": {
              "application/json": {
                "examples": {
                  "Target not found": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook target not found\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "webhook target not found",
                            "description": "Says which object wasn't found. Meant for logs; the wording can change, so don't parse it."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "409",
            "content": {
              "application/json": {
                "examples": {
                  "Target already exists": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"webhook target already exists\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "webhook target already exists",
                            "description": "Says that an object with the same identifier already exists."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Unexpected error": {
                    "value": "{\n  \"errors\": [\n    {\n      \"message\": \"unexpected error, try again later\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "message": {
                            "type": "string",
                            "example": "unexpected error, try again later",
                            "description": "A general error message. Retry with backoff."
                          }
                        }
                      },
                      "description": "The errors. Usually one item."
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "value": "application/json",
        "key": "Content-Type"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```

# Sibling pages

* [Create target](https://docs.yotpo.com/reference/create-target.md)
* [Retrieve targets](https://docs.yotpo.com/reference/retrieve-targets.md)
* [Retrieve target by ID](https://docs.yotpo.com/reference/retrieve-target-by-id.md)
* [Delete target](https://docs.yotpo.com/reference/delete-target.md)
* [Create filter](https://docs.yotpo.com/reference/create-filter.md)
* [Retrieve filters](https://docs.yotpo.com/reference/retrieve-filters.md)
* [Retrieve filter by ID](https://docs.yotpo.com/reference/retrieve-filter-by-id.md)
* [Update filter](https://docs.yotpo.com/reference/update-filter.md)
* [Delete filter](https://docs.yotpo.com/reference/delete-filter.md)
* [Create subscription](https://docs.yotpo.com/reference/create-subscription.md)
* [Retrieve subscriptions](https://docs.yotpo.com/reference/retrieve-subscriptions.md)
* [Retrieve subscription by ID](https://docs.yotpo.com/reference/retrieve-subscription-by-id.md)
* [Update subscription](https://docs.yotpo.com/reference/update-subscription.md)
* [Delete subscription](https://docs.yotpo.com/reference/delete-subscription.md)