NodiRef LogoNodiRef
Projects/Id

/projects/:id

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

Request Body

{
    "name": "Default Project", // Required
    "base_url": "https://nodiref.com", // Required
    "cookie_lifetime": 365, // Max is 365
    "status_id": "", // Optional, UUID, Default: Active
    "automatically_approve_conversions": false, // Optional, Default: false
    "automatically_approve_rewards": false, // Optional, Default: false
    "enable_fraud_detection": true // Optional, Default: true
}

Response

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

PUT/projects/{id}

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonOptional

Path Parameters

idRequiredstring

Response Body

Successful response

curl -X PUT "https://api.nodiref.com/projects/9ebf0a3b-6d2b-4016-9d52-7fc97621f428" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "company_id": "asd",
    "external_id": "external-id",
    "is_internal": true,
    "name": "Test Name 2"
  }'
Empty