Updates group information based on a group ID
bool groups.updateGroup ( int groupId, array newInfo )
Name | Type | Required | Default value | Description |
---|---|---|---|---|
groupId | int | Required | none | The ID of the group you want to update. |
newInfo | array | Required | none | The information about the group that you want to update. Note: For the list of paramaters that can be passed in the newInfo array, please refer to the documentation for the 'additionalInfo' argument for the groups.createGroup API call. |
newInfo is an array that consists of the information that you want to have updated in your group.
Name | Type | Required | Default | Possible Values | Description |
---|---|---|---|---|---|
string | no | email@example.com | The email address that users can use to email media into the group. | ||
description | string | no | string | A blurb of text that describes what the group is all about. The description is searchable. | |
logo | int | no | 0 | 5000444 | A media ID for a piece of media that is to be used as the group logo. The default value is 0, which means that the group has no logo assigned to it. |
url | string | no | http://example.com | The url for the group. | |
createdBy | int | no | 1 | 4155555 | The UID of the user who created the group. |
note | string | no | string | Some text about the group. The note is not searchable. | |
geo_longitude | float | no | 0 | -52.44 | The longitude of the group. This would be specified by the creator of the group. |
geo_latitude | float | no | 0 | 62.86 | The latitude of the group. This would be specified by the creator of the group. |
moderationStatus | string | no | unmoderated | unmoderated, accepted, denied, deleted, notdenied, moderated, all | The moderation status once the group has been created in MediaFactory. |
address | string | no | string | The address of the group. This is used if the group is a company, branch etc. This would be the office location. | |
city | string | no | Toronto | A city that the group is associated with. | |
country | string | no | CA, US | The 2-letter country code for the group location. | |
state | string | no | ON | The 2-letter state / province code for the group. | |
postalcode | string | no | M1M1M1 | A valid postal code to contact the group. | |
other | array | no | {'key': 'value'} | This is any additional information about the group that does not fit into the fields above. | |
custom1 | string | no | string | A searchable string for additional content that you want stored about the group. | |
startDate | timestamp | no | 0000-00-00 00:00:00 | 2012-02-15 00:00:00 | The date and time that the group begins. |
endDate | timestamp | no | 0000-00-00 00:00:00 | 2012-03-25 14:10:11 | The date and time that the group ends. |
parentGroup | int | no | 0 | 9499 | The ID of the parent group for the group to be created. The default value is 0, which means that the group has no parent; it is the top-level. |
The expected response for a successful update group request.
Name | Type | Description |
---|---|---|
result | INT | On success the response will be 1. |
<?xml version="1.0" encoding="UTF-8"?> <result>1</result>
{ "status": true, "result": 1 }