Skip to content

Commit 722a055

Browse files
docs: Make it clearer that goal is optional
1 parent 47238ac commit 722a055

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api-reference/campaigns/post-goal.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ openapi: POST /api/teams/{teamId}/campaigns/goal
55

66
This endpoint is used to mark a campaign contact as "won" using the API.
77

8-
You are required to provide the goal, for example "meeting scheduled", and we will find the contact in the most recent campaign with that goal and mark them as "won". You also need to provide a way to find the contact, for example by email, ID, or nested custom data (any one of the fields is required).
8+
You are required to provide a way to find the contact, for example by email, ID, or nested custom data. At least property is required to identify the contact.
9+
10+
You can also choose to provide the goal, for example "meeting scheduled", and we will find the contact in the most recent campaign with that goal and mark them as "won". If you don't provide a goal, we will select the contact in the most recent campaign.

0 commit comments

Comments
 (0)