Cisco WebEx Social API Reference Guide, Release 3.4
Membership Request Resource Operations
Downloads: This chapterpdf (PDF - 194.0KB) The complete bookPDF (PDF - 15.05MB) | Feedback

Membership Request Resource Operations

Table Of Contents

Membership Request Resource Operations

Get Information about a Membership Request

Update a Membership Request


Membership Request Resource Operations


This chapter describes the Cisco WebEx Social API Membership Request resource operations. These operations let you retrieve and update information about a user request for membership in a Cisco WebEx Social community.

Table 7-1 provides a summary of the Membership Request resource operations. Each operation is described in detail in the section that is listed.

These sections provide this information:

Purpose—Brief explanation of the operation

Availability—Cisco WebEx Social releases that support the operation

Request—HTTP method and URI for the operation

Request Payload—Description of the request payload, if the operation requires one

Response—Description of the expected response when the operation executes

Example—Sample request and response for the operation

Table 7-1 Membership Request Resource Operations Summary 

Operation and Reference
Purpose

Get Information about a Membership Request

Retrieves information about the designated membership request

Update a Membership Request

Updates the designated membership request


Get Information about a Membership Request

Purpose

Retrieves information about the designated membership request.

Availability

Cisco WebEx Social 3.4 and later.

Request

HTTP Method
URI

GET

{http|https}://server[:port]/api/quad/rest/membershiprequests/
membership_request_id


where:

server—Host name or IP address of the Cisco WebEx Social server.

port—Port number on which the Cisco WebEx Social server listens for API requests. The default value is 80.

membership_request_id—Identifier of the membership request for which to retrieve information. For information about obtaining the identifier that you need, see the "Identifiers of Cisco WebEx Social Entities" section.

Request Payload

A request payload is not required.

Response

Standard response (see the "API Responses" section) with a response payload that can include one MembershipRequest resource (the "MembershipRequest Resource" section describes this resource).

Example

Request

GET http://webexsocialserver/api/quad/rest/membershiprequests/210747
Accept:application/json

Response

HTTP/1.1 200 OK
Content-Type: application/json
{
    "entry": [
        {
            "data": {
                "approver": null, 
                "community": {
                    "description": "second", 
                    "id": 4710003, 
                    "name": "Dos", 
                    "shortName": "/dos", 
                    "state": "live", 
                    "type": "restricted"
                }, 
                "createDate": 1319730564972, 
                "id": 110499, 
                "replyComments": "", 
                "replyDate": 0, 
                "requestComments": "", 
                "requester": {
                    "firstName": "Pat", 
                    "fullName": "Pat Kim", 
                    "id": 1234, 
                    "images": [ ], 
                    "jobTitle": "", 
                    "lastName": "Kim", 
                    "screenName": "patkim"
                }, 
                "resource": "http://quad.cisco.com/schema/1.0/membershiprequest", 
                "status": "pending"
            }
        }
    ], 
    "filtered": false, 
    "itemsPerPage": 1, 
    "serverMessages": null, 
    "sorted": false, 
    "startIndex": 0, 
    "statusCode": 200, 
    "totalResults": 0
}

Update a Membership Request

Purpose

Updates the designated membership request.

Availability

Cisco WebEx Social 3.4 and later.

Request

HTTP Method
URI

PUT

{http|https}://server[:port]/api/quad/rest/membershiprequests/
membership_request_id/


where:

server—Host name or IP address of the Cisco WebEx Social server.

port—Port number on which the Cisco WebEx Social server listens for API requests. The default value is 80.

membership_request_id—Identifier of the membership request. For information about obtaining the identifier that you need, see the "Identifiers of Cisco WebEx Social Entities" section.

Request Payload

The request payload includes fields from the Membership Request resource (Table 3-31 describes these fields:

Required Fields
Optional Fields

status

replyComments


Response

Standard response (see the "API Responses" section) with an HTTP header only.

Example

Request

PUT http://webexsocialserver/api/quad/rest/membershiprequests/210747
Accept:application/json
Content-Type: application/json
 
   
{
    "status": "approved"
}

Response

HTTP/1.1 204 No Content