Update a Team

PUT/api/teams/{id}

Only the fields present in the request change. Sending members replaces the whole member list, it does not append to it. Leaving members out keeps the current list untouched, while sending it as an empty array or an empty string empties the team - that is the only way to remove the last member.

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number Team unique ID
title String optional Optional Team title
members String|Number[] optional Optional Staff user ids, as an array or a comma separated list. Replaces the whole list. An empty array or empty string is rejected with a 400 - RISE requires every team to keep at least one member, so delete the team instead of emptying it.
curl -X PUT "https://yoursite.com/api/teams/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "field": "value" }'

Success-Response:

HTTP/1.1 200 OK
{ "status": 200, "messages": { "success": "The record has been saved." } }

Error-Response:

HTTP/1.1 404 Not Found
{ "status": false, "messages": { "error": "No data were found" } }
MethodPUT
Path/api/teams/{id}
GroupTeam
Sincev1.0.0
Defined inRestApi/Controllers/TeamController.php