We are trying to create multiple similar roles and in order to avoid manual clicking and potential human error we would like to create these roles via API. Based on https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/configure.htm Create, Update and Delete should all work with the Configure Request type, which is noted as the correct one on https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/role.htm (along with retrieve).

When using Delete, this does work, but when changing to update or create (as per snippet) this returns the error

<StatusMessage>Create is not a valid Role Configure action.</StatusMessage>

Sample Request body for Create, but Update returns the exact same thing

            <Configuration xsi:type="Role">
                <Name>Campaign Manager</Name>
                        <PartnerKey xsi:nil="true" />
                        <ObjectID xsi:nil="true" />
                        <Name>WebService API</Name>
                        <Description>WebService API</Description>
                        <ObjectType>API Access</ObjectType>
                        <Operation>Access Web Service API</Operation>

Salesforce support, after much discussion, advised that roles cannot be created or updated via API

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.