Edit Group
From KickApps Documentation
Edit an existing group within your community. You can make an HTTP POST or GET request for this call. This call is only available to users with administrative access permissions for their token.
http://api.kickapps.com/rest/group/edit/{groupId}/{as}
Contents |
Parameters
As shown above, your call will include the following parameters:
- groupId. The ID of the group to be edited.
- as. The site that the group is a part of. as is unique for each of the affiliate's sites.
Post Parameters
- t. String. Required. Your access permissions.
- callback. String. Optional. The name of your JavaScript callback function.
- clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".
- groupName. Optional. The new name for the group.
- category. Optional. The new category to which the group should be assigned.
- description. Optional. The group’s new description.
If included, the values for any of the group parameters listed above will overwrite the existing group metadata.
JSON Payload
On success, a payload that begins with "status":"1","error":"" and includes updated group object.
- status. 1 if the call was a success. -1 if the call produced an error.
- error. If the call status is -1, error will contain descriptive text for the error.
The group object will contain the following:
- isPublicTaggingAllowed. true or false. Whether or not community members can tag this group.
- groupCategories. categories assigned to the group.
- numMembers. Number of members that are assigned to the group. *adminTags. Admin Tags assigned to the group.
- name. Name of the group
- createdAtA nested object stating when the group was created. All times are returned as Greenwich Mean Time (GMT).
- dayofweek, month day, time AM or PM
- This would appear as follows:
"createdAt":"Wednesday, Jul 7, 07:48"
- description. The description of the group.
- createdBy. The id of the member/webmaster who created the group.
- isVisible. true or false. Whether the group is visible to the community members.
- numAudios. Number of Audios assigned to the group.
- groupId. The id for the group.
- updatedAt. A nested object stating when the group was last updated. All times are returned as Greenwich Mean Time (GMT).
- dayofweek, month day, time AM or PM
- This would appear as follows:
"updatedAt":"Wednesday, Jul 7, 07:48",
- numComments. Number of comments left for the group.
- pathToPreview The url for the group icon.
- mediaType. Media type for groups is "CLUB".
- pathToPhoto. The url for the group icon.
- numPhotos. Number of photos assigned to the group.
- numBlogs. Number of blogs assigned ot the group.
- numVideos. Number of videos assigned to the group.
- updateBy. Member Id for the member who last updated the group.
- tags. tags assigned to the group.
- mediaId. The id for the group. Same as groupId.
Permissions
Overview
KickConnect API call that lets you post activities done outside the community into the community activity feeds for members.
Your request will look something like the following:
http://api.kickapps.com/rest/kickconnect/{memberId}/{as}
Parameters
As shown above, your call will include the following parameters:
- memberId. The id of the user for who the update is being made.
- as. The site Id to search. as is unique for each of the affiliate's sites.
Post Parameters
- t. String. Required. Your access permissions.
- callback. String. Optional. The name of your JavaScript callback function.
- clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".
- storyContent. Required. Accepts HTML and text. Allows 5,000 characters. Be sure to urlEncode the string that you pass for this variable.
- storyIcon. Optional. url of the image to be associated with the story. Recommended size is 16 X 16.
- postedFromSource. Optional. This is the name of the service from which the activity is being posted from. Allows 200 characters.
- postToGroups. Optional. Should accept comma separated groupID's. Should only post to a group if the user is a member of that group.
JSON Payload
- On success, the call will return "status":"1","message":"Story published successfully."
- On failure, the call will return "status":"-1","message":"Story could not be published. Please make sure that the provided information is accurate."
- If the user doesn't belong to the group(s) return, "status":"-1","message":"Story could not be published. Please make sure that the member belongs to the group(s)."
Permissions
List of KickApps API Calls
Note: Occasionally (and without advanced warning) we modify our API calls by adding new parameters in the response payload. Please keep this in mind when designing your strategy for parsing our responses.
Favorites






