teams
Creates a team
You need contracts.devTeam.edit permission to access this resource
post/teams
Request
- Base URL: https://api.elastic.io/v2
- URL: https://api.elastic.io/v2/teams
- Auth: HTTP basic
Request body
Example request
{
"data": {
"attributes": {
"name": "My team",
"docker_registry": {
"uri": "https://index.docker.io/v1/",
"credentials": {
"authFile": "~/.docker/config.json"
}
}
},
"relationships": {
"contract": {
"data": {
"id": "5b4f337bff4304610483ba67"
}
}
}
}
}Response
Created
Example response
{
"data": {
"id": "5b4f337bff4304610483ba67",
"links": {
"self": "/v2/teams/5b4f337bff4304610483ba67"
},
"attributes": {
"name": "Team name"
},
"relationships": {
"contract": {
"data": {
"id": "5b4f337bff4304610483ba67"
},
"links": {
"self": "/v2/contracts/5b4f337bff4304610483ba67"
}
},
"users": {
"data": [
{
"id": "5b4f337bff4304610483ba67"
}
]
},
"components": {
"data": [
{
"id": "5b4f337bff4304610483ba67"
}
]
}
}
},
"links": {
"self": "/v2/teams/5b4f337bff4304610483ba67"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.