Skip to main content
PUT
/
v2
/
loyalty
/
programs
/
{programId}
Update Loyalty Program Details
curl --request PUT \
  --url https://api.loyalty.dog/v2/loyalty/programs/{programId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "language": "<string>",
  "country": "<string>",
  "company": "<string>",
  "address": "<string>",
  "website": "<string>",
  "email": "[email protected]",
  "phone": "<string>",
  "terms": "<string>",
  "pointsAddEmail": 123,
  "pointsAddPhone": 123,
  "pointsInstallPass": 123,
  "pointsScanPass": 123,
  "dynamicScanPoints": true,
  "pointsReferral": 123,
  "referralRequiredPoints": 123,
  "customPointsChangeMessage": "<string>",
  "disableCustomPointsChangeMessage": true,
  "customPointName": "<string>",
  "customPointsName": "<string>",
  "customFields": [],
  "requiredFields": [],
  "retention_period_days": 182
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT access token obtained from POST /v2/token.

Headers

authorization
string | null

Path Parameters

programId
required
Required string length: 24
Pattern: ^[0-9a-f]{24}$
Example:

"5eb7cf5a86d9755df3a6c593"

Body

application/json
name
string | null
description
string | null
language
string | null
country
string | null
company
string | null
address
string | null
website
string<uri> | null
Required string length: 1 - 2083
email
phone
string | null
terms
string | null
pointsAddEmail
integer | null
pointsAddPhone
integer | null
pointsInstallPass
integer | null
pointsScanPass
integer | null
dynamicScanPoints
boolean | null
pointsReferral
integer | null
referralRequiredPoints
integer | null
scannerType
enum<string> | null
Available options:
Browser,
PassVerifier,
CodeReadr,
None
customPointsChangeMessage
string | null
disableCustomPointsChangeMessage
boolean | null
customPointName
string | null
customPointsName
string | null
customFields
TemplatePlaceholder · object[]
requiredFields
string[]
retention_period_days
integer | null

Days to retain deleted data (0-365)

Required range: 0 <= x <= 365

Response

Successful Response