Update a Goal

HTTP method End Point
POST /goals/{campaignId}/{goalId}

Request Fields

Field Type Description Nullable
title string Goal Type -> public, private Yes
value string Yes
payout float Yes
revenue float Yes
type string Goal Type -> public or private Yes

Example Request

curl -X POST \
  https://api.vnative.com/goals/{CampaignId}/{GoalId} \
  -H 'Content-Type: application/json' \
  -H 'Postman-Token: e1b6affb-13b2-43a8-8528-042db834204d' \
  -H 'cache-control: no-cache' \
  -H 'x-api-key: {API-KEY}' \
  -d '{
    "type": "public",
    "payout":2,
    "revenue": 10,
    "title":"Testing Goal",
    "value": "testing"
}'

Response body

{
    "success": true,
    "data": {
        "goal": {
            "_id": "{Goal ID}",
            "title": "Testing Goal",
            "value": "testing",
            "type": "public",
            "revenue": 10,
            "payout": 2,
            "currency": "USD"
        },
        "message": "Goal Saved Successfully!!"
    }
}

results matching ""

    No results matching ""