SOAP API request to create Automation folders using DataFolder object are failing
Trailblazer Community

SOAP API request to create Automation folders using DataFolder object are failing

Marketing Cloud Automations , Marketing Cloud API

Last updated 2021-04-28 ·Reference W-8558450 ·Reported By 3 users

No Fix

Summary
When a SOAP API request is made to create Automation folders using the DataFolder object, the request fails with the following error: "API Permission Failed"

Repro
Make a Create Request using DataFolder object using the Automations entity. When doing this use the ID of your root automations folder:

Example Request:
===============
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">;
<wsse:UsernameToken wsu:Id="UsernameToken-32259181" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">;
<wsse:Username>{{Username}}</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">{{Password}}</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">;
<Objects xsi:type="DataFolder">
<PartnerKey xsi:nil="true"></PartnerKey>
<ObjectID xsi:nil="true"></ObjectID>
<CustomerKey>SOAPTest</CustomerKey>
<ParentFolder>
<ID>12345</ID>
</ParentFolder>
<Name>SOAPTest</Name>
<Description>SOAP Test</Description>
<ContentType>Automations</ContentType>
<IsActive>true</IsActive>
<IsEditable>true</IsEditable>
</Objects>
</CreateRequest>
</soapenv:Body>
</soapenv:Envelope>

Example Response:
===============
<CreateResponse xmlns="http://exacttarget.com/wsdl/partnerAPI">;
<Results>
<StatusCode>Error</StatusCode>
<StatusMessage>API Permission Failed.</StatusMessage>
<OrdinalID>0</OrdinalID>
<ErrorCode>7</ErrorCode>
<NewID>0</NewID>
</Results>
<RequestID>343ffa0b-87e9-4d51-b727-d78d612da351</RequestID>
<OverallStatus>Error</OverallStatus>
</CreateResponse>

Workaround
Create the automation folder manually from UI

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.