CommunityPerks
Update CommunityPerk
Update an existing CommunityPerk record.
PUT
Update CommunityPerk
Updates an existing CommunityPerk record. You must include the
Id of the record to update along with all required fields.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the CommunityPerk-Edit role.Enums
eDataVisibilityCriteria
eDataVisibilityCriteria
Request Body
Required Fields
integer
required
The Id of the CommunityPerk record to update.
integer
required
ID of the location this perk belongs to.
string
required
Name of the perk as displayed on the Members Portal and the Admin Panel.
integer
required
Position of this perk in the list relative to other perks. Lower values appear first.
Optional Fields
string
Optional URL opened when a customer uses the Claim button; leave blank to omit the button.
string
Short description shown under the perk title on the Perks listing page of the Members Portal.
string
Full description of the perk, displayed when a customer clicks on it from the Perks listing page.
string
URL of a new small image to upload for this perk.
boolean
Set to true to remove the current small image from this perk.
string
URL of a new large image to upload for this perk.
boolean
Set to true to remove the current large image from this perk.
boolean
Whether this perk is published and visible to customers on the Members Portal. When false, the perk is only visible on the Admin Panel.
string
Group or category this perk belongs to, used to organise perks on the Members Portal.
boolean
Whether to feature this perk on the Members Portal home page after users log in.
boolean
Whether to exclude members and show this perk only to contacts, who have no active contract; do not set this and OnlyForMembers together.
boolean
Whether to exclude contacts and show this perk only to members, who have an active contract; do not set this and OnlyForContacts together.
integer[]
List of plan IDs eligible for this perk when a customer is a member; an empty list does not restrict members by plan, and contacts are not checked against this list.
integer[]
IDs added to the Tariffs relationship..
integer[]
IDs removed from the Tariffs relationship..
Code Examples
Response
200
integer
HTTP status code.
200 on success.string
A human-readable message confirming the update.
object
Contains the
Id of the updated record.boolean
true if the communityperk was updated successfully.array
null on success.Example Response
400
string
A summary of the validation error(s), in the format
PropertyName: error message.any
null on validation failure.object[]
Array of validation errors.
boolean
false when the request fails validation.Example Response