Jump to content

REST API Documentation

/core/clubs/{id}


Edit a club

Parameters

Name Type Description
Required name string The club name
about string Information about the club
type string Club type (one of public, open, private, readonly or closed). Defaults to open.
approved bool Whether the club is approved or not (if not using an OAuth Access Token for a particular member)
featured bool Whether the club is featured or not (if not using an OAuth Access Token for a particular member)
lat float Latitude of the club
long float Longitude of the club
showMemberTab string Who can see the list of members: nonmember = Everyone can see, member = Only members can see, moderator = Only moderators can see
joiningFee money object Cost to join the club (Nexus must be installed, paid clubs must be enabled, and the owner must be allowed to create paid clubs)
renewalTerm renewalterm object Renewal term for the club (joiningFee must be set)

Exceptions

Code Message Description
1C386/5 INVALID_ID The club ID was invalid or the authorized member does not have permission to edit it
1C386/L CANNOT_CREATE The authorized member or supplied owner cannot create the type of club requested

Response

Name Type Description
id int ID number
name string Name
url string URL to the club
type string Type of club (public, open, closed, private, readonly)
approved bool Whether the club is approved or not
created datetime Datetime the club was created
memberCount int Number of members in the club
owner member object Club owner
photo string|null URL to the club's profile photo
paid bool Whether the club is paid or not
featured bool Whether the club is featured or not
location \IPS\GeoLocation|NULL Geolocation object representing the club's location, or NULL if no location is available
about string Club 'about' information supplied by owner
lastActivity datetime Datetime of last activity within the club
contentCount int Count of all content items + comments in the club
coverPhotoUrl string|NULL URL to the club's cover photo, or NULL if no cover photo is available
coverOffset string Cover photo offset
coverPhotoColor string Cover photo overlay background color
members array of member objects Club members
leaders array of member objects Club leaders
moderators array of member objects Club moderators
fieldValues array of field objects Club's custom field values
nodes array of model objects Nodes created for this club
joiningFee \IPS\nexus\Money|null Cost to join the club, or null if there is no cost
renewalTerm \IPS\nexus\Purchase\RenewalTerm|null Renewal term for the club, or null if there are no renewals

member object

Name Type Description
id int ID number
name string Username
title string Member title
timezone string Member timezone
formattedName string Username with group formatting
primaryGroup group object Primary group
secondaryGroups array of group objects Secondary groups
email string Email address
joined datetime Registration date
registrationIpAddress string IP address when registered
warningPoints int Number of active warning points
reputationPoints int Number of reputation points
photoUrl string URL to photo (which will be the site's default if they haven't set one)
photoUrlIsDefault bool Indicates if the value of photoUrl is the site's default
coverPhotoUrl string URL to profile cover photo (will be blank if there isn't one)
profileUrl string|null URL to profile
validating bool Whether or not the validating flag is set on the member account
posts int Number of content item submissions member has made
lastActivity datetime|null Last activity date on the site.
lastVisit datetime|null Last distinct visit date on the site.
lastPost datetime|null Latest content submission date.
profileViews int Number of times member's profile has been viewed
birthday string Member birthday in MM/DD/YYYY format (or MM/DD format if no year has been supplied).
customFields array of fieldgroup objects Custom profile fields. For requests using an OAuth Access Token for a particular member, only fields the authorized user can view will be included
rank array of rank objects Rank
achievements_points int Points
allowAdminEmails bool Whether or not this member wants to receive admin emails
completed bool Whether or not the registration is completed

group object

Name Type Description
id int ID number
name string Name
formattedName string Name with formatting

fieldgroup object

Name Type Description
name string Group name
fields array of field objects Fields

field object

Name Type Description
name string Field name
value string Value

rank object

Name Type Description
id int ID number
name string Name
url string Path to the rank icon
points int Points

model object

Name Type Description
id int ID number
name string Name
url string URL
class string Node class
parentId int|null Parent Node ID
permissions object|null Node permissions
×
×
  • Create New...