Team
All team resources must be reassigned or deleted before team deletion. Only users with owner role can delete teams. The last team in an organization cannot be deleted.Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
slugstringRequired
Team slug
Responses
200
Team deleted successfully
application/json
400
Bad request
401
Unauthorized
delete
/sfp/api/teams/{slug} Team must maintain at least one owner. Users cannot remove themselves if they are the last owner. Only team owners can remove members.Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
slugstringRequired
Team slug
emailstringRequired
Member email
Responses
200
Member removed successfully
application/json
400
Bad request
401
Unauthorized
403
Forbidden
delete
/sfp/api/teams/{slug}/members/{email} Role changes take effect immediately. Teams must maintain at least one owner. Users cannot demote themselves if they are the last owner. Only team owners can change member roles.Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
slugstringRequired
Team slug
emailstringRequired
Member email
Body
rolestring · enumRequiredPossible values:
The new role for the team member
Responses
200
Member role updated successfully
application/json
400
Bad request
401
Unauthorized
403
Forbidden
put
/sfp/api/teams/{slug}/members/{email}/role The team slug must be unique and URL-friendly. The creating user automatically becomes a team owner. Only users with owner role can create new teams.Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequiredExample:
The name of the team
Engineering TeamslugstringRequiredExample:
The slug for the team URL
engineering-teamdescriptionstringOptionalExample:
Optional description of the team
Team responsible for product engineeringResponses
201
Team created successfully
application/json
400
Bad request
401
Unauthorized
post
/sfp/api/teams Supports filtering by role and pagination via limit/offset. All authenticated users can view team member lists for teams they have access to. Team membership is verified based on the requesting user's permissions.Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
slugstringRequired
Team slug
Query parameters
limitnumberOptionalExample:
Maximum number of members to return
10offsetnumberOptionalExample:
Offset for pagination
0rolestring · enumOptionalExample:
Filter by role
ownerPossible values: Responses
200
List of team members retrieved successfully
application/json
400
Bad request
401
Unauthorized
403
Forbidden
get
/sfp/api/teams/{slug}/members The user must already have an account in the system. Use the users endpoint to create new users first. Only team owners can add new members.Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
slugstringRequired
Team slug
Body
rolestring · enumRequiredExample:
Role for the user in the team
memberPossible values: Responses
201
Member added successfully
application/json
400
Bad request
401
Unauthorized
403
Forbidden
post
/sfp/api/teams/{slug}/membersLast updated