NodiRef LogoNodiRef
Referral links/Id

/referral-links/:id

This endpoint allows you to update an existing referral link by providing the necessary details.

Request Body

{
  "partner_id": "PARTNER_UUID", // Required
  "code": "UNIQUE_CODE", // Required
  "metadata": {}, // Optional
  "project_id": "PROJECT_UUID" // Optional
}

Response

The response for this request is an empty array with a 200 HTTP Code

PUT/referral-links/{id}

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonOptional

Path Parameters

idRequiredstring

Response Body

Successful response

curl -X PUT "https://api.nodiref.com/referral-links/9ebf1864-aca2-40c4-9cc6-0ed9ae961e01" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "partner_id": "9ebf1841-22c4-4d30-942e-7c7eb942a7a3",
    "code": "abcdefgghijklmnop",
    "target_url": "https://nodifyit.com"
  }'
Empty