CommandRequired ParametersRequired Corrade PermissionsExample
setprofiledatagroup, password, datagrooming
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "setprofiledata",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "data", wasListToCSV([
                "AboutText", "Good day!",
                // assuming cat is a texture in the inventory
                "ProfileImage", "cat"
            ])
        ]
    )
);

The data parameter follows the AvatarProperties libopenmetaverse structure and sub-structures.

ParameterPossible ValuesDescription
dataAboutTextSecond Life profile text
AllowPublishShould this profile be published on the web
FirstLifeImageFirst Life image ID
FirstLifeTextFirst Life about text
FlagsFlags of the profile
MaturePublishIs this a mature profile
ProfileImageProfile image ID
ProfileURLWeb URL for this profile
LanguagesTextLanguages profile field
SkillsMaskSkills mask
SkillsTextSkills text
WantToMaskWantTo mask
WantToTextWantTo text

The SkillsMask and the SkillsMask are special, they represent a bitfield mask corresponding to the individual tick-boxes on the interests profile tab.

The following table gives the individual values of each tick-box for the I Want To: section:

I Want To:Value
Build1
Explore2
Meet4
Group8
Buy16
Sell32
Be Hired64
Hire128

And the following table is for the skills section:

Skills:Value
Textures1
Architecture2
Event Planning4
Modeling8
Scripting16
Custom Characters32

Setting the SkillsMask and the WantToMask is fairly literal and can be done using one single command using the wasSetBitFlags from the LSL FUSS page.

For example, if we wanted to set the tick-boxes of Group and Explore we would send the command to Corrade in the following way:

        llInstantMessage(CORRADE,
            wasKeyValueEncode(
                [
                    "command", "setprofiledata",
                    "group", wasURLEscape(GROUP),
                    "password", wasURLEscape(PASSWORD),
                    "data", wasListToCSV(
                        [
                            "WantToMask",
                            wasSetBitFlags(
                                [ "Group","Explore" ],
                                [ "Build", "Explore", "Meet", "Group", "Buy", "Sell", "Be Hired", "Hire" ]
                            )
                        ]
                    ),
                    "callback", wasURLEscape(URL)
                ]
            )
        );

The same applies procedure applies to SkillsMask. Suppose we wanted to tick the checkbox of Event Planning and Custom Characters. In that case we would issue:

        llInstantMessage(CORRADE,
            wasKeyValueEncode(
                [
                    "command", "setprofiledata",
                    "group", wasURLEscape(GROUP),
                    "password", wasURLEscape(PASSWORD),
                    "data", wasListToCSV(
                        [
                            "SkillsMask",
                            wasSetBitFlags(
                                [ "Event Planning", "Custom Characters" ],
                                [ "Textures", "Architecture", "Event Planning", "Modeling", "Scripting", "Custom Characters" ]
                            )
                        ]
                    ),
                    "callback", wasURLEscape(URL)
                ]
            )
        );

Notes