Create a Team for a Role
post
/api/v2/roles/{id}/teams/
Make a POST request to this resource with the following team fields to create a new team associated with this role.
name
: Name of this team. (string, required)description
: Optional description of this team. (string, default=""
)organization
: (id, required)
Add Teams for a Role:
Make a POST request to this resource with only an id
field to associate an
existing team with this role.
Remove Teams from this Role:
Make a POST request to this resource with id
and disassociate
fields to
remove the team from this role
without deleting the team.
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : Team
Type:
Show Source
object
-
created:
string
Title:
Created
Read Only:true
-
description:
string
Title:
Description
-
id:
integer
Title:
ID
Read Only:true
-
modified:
string
Title:
Modified
Read Only:true
-
name(required):
string
Title:
Name
Minimum Length:1
Maximum Length:512
-
organization(required):
integer
Title:
Organization
- related: string
-
summary_fields:
string
Title:
Summary fields
Read Only:true
-
type:
string
Title:
Type
Read Only:true
-
url:
string
Title:
Url
Read Only:true
Response
Supported Media Types
- application/json
201 Response
Root Schema : Team
Type:
Show Source
object
-
created:
string
Title:
Created
Read Only:true
-
description:
string
Title:
Description
-
id:
integer
Title:
ID
Read Only:true
-
modified:
string
Title:
Modified
Read Only:true
-
name(required):
string
Title:
Name
Minimum Length:1
Maximum Length:512
-
organization(required):
integer
Title:
Organization
- related: string
-
summary_fields:
string
Title:
Summary fields
Read Only:true
-
type:
string
Title:
Type
Read Only:true
-
url:
string
Title:
Url
Read Only:true