I am trying to create ArcGIS Server folders with the rest API. This is what I have tried:
def create_folders(admin, password):
url = 'https://xyzx.com:6443/arcgis/admin/services/createFolder'
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
payload = {'folderName': 'my_test'}
auth = (admin, password)
response = requests.post(url, headers=headers, json=payload, auth=auth)
print(response.json)The print statement is dumping out <bound method Response.json of <Response [200]>> and no folder is created.
https://developers.arcgis.com/rest/enterprise-administration/server/createfolder/