Create Team

POST https://api.profit.co/app/dao/v6/teams?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>

To create a new team in your Profit.co account

Request Params

KeyDatatypeRequiredDescription
astring
apiKeystringRequired: API key of your Profit.co Account
accessKeystringRequired: Access key of your Profit.co Account

Request Body

[{"name"=>"teamData", "value"=>"{\"isEnabled\":\"Y\",\"customAttributes\":[],\"iconCls\":\"card_giftcard\",\"cc\":\"#2196F3\",\"teamName\":\"Mobile\",\"removeRestrictedIds\":[],\"employeeIds\":[2132271,2146425],\"tlids\":[],\"ptn\":null,\"ptId\":null,\"aopkc\":\"Y\",\"emailId\":\"\"}", "datatype"=>"string"}, {"name"=>"subTeamIds", "value"=>"[]", "datatype"=>"string"}]