Logo
Profit.co's Public API Documentation

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

 

Body PARAM

Key Datatype Required Description 
a
string
apiKey
string Required: API key of your Profit.co Account
accessKey
string Required: Access key of your Profit.co Account



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.profit.co/app/dao/v6/teams?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>?a=save&apiKey=<API_KEY>&accessKey=<ACCESS_KEY>' -F '{"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"}=' -F '{"name"=>"subTeamIds", "value"=>"[]", "datatype"=>"string"}='

ENDPOINTS