ExtendedAttributes are being ignored in Update Events REST Endpoint

Hi everyone,

I am trying to find out how to update ExtendedAttributes for events via the Update Events REST Endpoint as documented here,

https://community.telligent.com/community/11/w/api-documentation/64621/update-events-rest-endpoint

Which strangely uses a string instead of the RestExtendedAttributes used by REST endpoints like Create Group REST Endpoint

https://community.telligent.com/community/11/w/api-documentation/64700/create-group-rest-endpoint

I have tried both approaches, including several others, just blindly trying to come up with something that would either produce an error, or change ExtendedAttributes  to anything else other than null.

Does anyone has any idea what format ExtendedAttributes  for Events is supposed to be, or it is just ignored by the Events REST endpoint regardless of what gets given in the call?

Thanks in advance,
Paulo

Parents Reply
  • The code below will work.  There is an issue in the endpoint when it attempts to read the value of the extended attributes.  You can work around this by including the value twice:

    '__extendedattributes_Test' : 'testvalue',

    'Test' : 'testvalue'

    Due to the bug and how you have to work around it, you will want to avoid using an extended attribute name that is the same as a parameter used by the endpoint.


    jQuery.telligent.evolution.put({
    	url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/calendars/events/{id}.json',
    	data: { 
    		'id': '1',
    		'__extendedattribute_Test': 'testvalue',
            'Test': 'testvalue'
    	},
    	success: function(response) {
    
    	}
    });

Children