How to set access using ajax?

I'm trying to set the access level for brief description to default but my ajax post keeps putting it on private. Here's my code:

elgg.action('action/profile/edit', {
    data: {
        guid: elgg.get_page_owner_guid(),
        briefdescription: $('textarea[name=briefdescription]').val(),
        access_id: 'ACCESS_DEFAULT'
    success: function(data) {
        // do something

 Any suggestions?

  • Ahh never mind, I figured it out from looking at the Elgg profile edit action php file. Turns out the access levels are put into an array.

    accesslevel: {briefdescription: 2}