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
| Value | Name |
|---|---|
| 1 | AllChildren |
| 2 | AllParents |
| 3 | AllLocations |
| 4 | HomeLocationOnly |
| 5 | HomeLocationChildren |
| 6 | HomeLocationParents |
| 7 | ThisLocationOnly |
| 8 | AllParentChildren |
Request Body
Required Fields
The Id of the CommunityPerk record to update.
ID of the location this perk belongs to.
Name of the perk as displayed on the Members Portal and the Admin Panel.
Position of this perk in the list relative to other perks. Lower values appear first.
Number of times customers have clicked on this perk.
Optional Fields
URL where customers are redirected when clicking the Claim button. If blank, no Claim button is shown. Must start with https://.
Short description shown under the perk title on the Perks listing page of the Members Portal.
Full description of the perk, displayed when a customer clicks on it from the Perks listing page.
URL of a new small image to upload for this perk.
Set to true to remove the current small image from this perk.
URL of a new large image to upload for this perk.
Set to true to remove the current large image from this perk.
Whether this perk is published and visible to customers on the Members Portal. When false, the perk is only visible on the Admin Panel.
Group or category this perk belongs to, used to organise perks on the Members Portal.
Whether to feature this perk on the Members Portal home page after users log in.
Whether this perk is only available to contacts. Set both OnlyForContacts and OnlyForMembers to false to make the perk available to all customers.
Whether this perk is only available to members. Set both OnlyForContacts and OnlyForMembers to false to make the perk available to all customers.
IDs of the pricing plans (tariffs) whose members can see and claim this perk. Leave empty to make the perk available regardless of pricing plan.
IDs of pricing plans to add to this perk’s allowed tariffs.
IDs of pricing plans to remove from this perk’s allowed tariffs.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the update.
Contains the
Id of the updated record.true if the communityperk was updated successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Update CommunityPerk