Create account staff group
/CreateAccountStaffGroupMapping
import requests
import json
url = “https://stageapi.cfsemoney.com/v1/CreateAccountStaffGroupMapping”
payload = json.dumps({
“accountGroupUserGroupName”: “xyz-test”,
“accountGroupName“: “accountgroup12”,
“userGroupName“: [
“abc-xyz-group”
]
})
headers = {
‘x-api-key’: ‘Your-API-KEY‘,
‘Authorization’: ‘Bearer <<bearer-token>>’
}
response = requests.request(“POST”, url, headers=headers, data=payload)
print(response.text)
“properties”: {
“accountGroupUserGroupName”: {“type”: “string”,”minLength”: 2,”maxLength”:50,”pattern”: “^[a-zA-Z0-9._-]+$”},
“accountGroupName“: {“type”: “string”,”minLength”: 2,”maxLength”:50},
“userGroupName“: {“type”: “array”,”items”: { “type”: “string” } }
},”required”: [“accountGroupUserGroupName”, “accountGroupName“,”userGroupName“] }
{
“statusCode”: 200,
“body”: “{\”message\”: \”Group Created\”, \”status\”: true}”
}
{
“statusCode”: 400,
“body”: “{\”message\”: \”xxx”}”
}