Discussions

Ask a Question
Back to All

/GroupMember Post and Put not working.

Hello,

I was interested in trying to add new members to a chapter through the /GroupMember post request.

Here is my post request below, which moves the entry to the chapter CHAPT/CCA.

{
    "$type": "Asi.Soa.Membership.DataContracts.GroupMemberData, Asi.Contracts",
    "MembershipDetails": {
        "$type": "Asi.Soa.Membership.DataContracts.GroupMemberDetailDataCollection, Asi.Contracts",
        "$values": [
            {
                "$type": "Asi.Soa.Membership.DataContracts.GroupMemberDetailData, Asi.Contracts",
                "GroupMemberDetailId": "CHAPT/CCA:25218",
                "Stage": {
                    "$type": "Asi.Soa.Membership.DataContracts.GroupStageData, Asi.Contracts"
                },
                "EffectiveDate": "2024-11-01T00:00:00",
                "ExpirationDate": "2025-12-31T00:00:00",
                "IsActive": true,
                "Role": {
                    "$type": "Asi.Soa.Membership.DataContracts.GroupRoleData, Asi.Contracts",
                    "UseDates": true,
                    "RoleId": "SUBSCRIPTION:MEMBER",
                    "Description": "Member",
                    "Name": "Member",
                    "Priority": 0
                }
            }
        ]
    },
    "GroupMemberId": "CHAPT/CCA:25218",
    "Group": {
        "$type": "Asi.Soa.Membership.DataContracts.GroupSummaryData, Asi.Contracts",
        "GroupId": "CHAPT/CCA",
        "Name": "California Chapter",
        "Description": "California Chapter Membership Fees",
        "ParentIdentity": {
            "$type": "Asi.Soa.Core.DataContracts.IdentityData, Asi.Contracts",
            "EntityTypeName": "Public",
            "IdentityElements": {
                "$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
                "$values": [
                    "Public Groups"
                ]
            }
        },
        "GroupClass": {
            "$type": "Asi.Soa.Membership.DataContracts.GroupClassSummaryData, Asi.Contracts",
            "GroupClassId": "CHAPT",
            "Name": "Chapter",
            "Description": ""
        },
        "StatusCode": ""
    },
    "Party": {
        "$type": "Asi.Soa.Membership.DataContracts.PartySummaryData, Asi.Contracts",
        "CityName": "",
        "CountryName": "",
        "CountrySubEntityName": "",
        "Email": "[email protected]",
        "Phone": "(555) 111-2222",
        "PartyId": "25218",
        "Id": "25218",
        "UniformId": "22754752-86a1-460d-808f-b9e2a9475bc5",
        "Status": {
            "$type": "Asi.Soa.Membership.DataContracts.PartyStatusData, Asi.Contracts",
            "PartyStatusId": "A",
            "Name": "Active",
            "Description": "Active"
        },
        "Name": "Fake TestRecord",
        "Sort": "TESTRECORD, FAKE",
        "IsMarkedForDelete": false
    },
    "JoinDate": "2024-11-01T00:00:00",
    "DropDate": "2025-12-31T00:00:00",
    "IsActive": true
}

Strangely, what is happening is that the server states that the post request is valid, giving a 201 response and parroting back the contents. However, I do not see that this content has been added; when I make a get request to the content with this ?GroupMemberId=CHAPT/CCA:25218, it simply returns nothing which is very bizzare.

Is there something that is preventing the post from going through?

I also tried a put request with the same body but with /GroupMember/CHAPT%2FCCA%3A25218, it simply returns a 500 error.

Contact us
Copyright © Advanced Solutions International, All rights reserved.