Previous Topic: Fields in an Add Request

Next Topic: Batch Request

Example of an Add Request

The following request creates a new User object with the unique identifier User=_spml_user,Domain=EXAMPLE_DOMAIN,Server=Server:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addRequest xmlns="urn:oasis:names:tc:SPML:1:0" xmlns:dsml="urn:oasis:names:tc:DSML:2:0:core">
    <identifier type="urn:oasis:names:tc:SPML:1:0#DN">
        <id>User=_spml_user,Domain=EXAMPLE_DOMAIN,Server=Server</id>
    </identifier>
    <attributes>
        <attr name="accountId">
            <dsml:value>_spml_user</dsml:value>
        </attr>
        <attr name="suspended">
            <dsml:value>true</dsml:value>
        </attr>
    </attributes>
</addRequest>