Add a person to a team kept by hand
PUT
/v1/integration-api/teams/{id}/members/{personId}
const url = 'https://api.academy.example.com/v1/integration-api/teams/example/members/example';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.academy.example.com/v1/integration-api/teams/example/members/example \ --header 'Authorization: Bearer <token>'Versioned integration contract.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
personId
required
string
Responses
Section titled “Responses”Success
Media typeapplication/json
object
teamId
required
string format: uuid
personId
required
string format: uuid
changed
required
boolean
Example
{ "teamId": "6f1c2a10-0000-4000-8000-0000000000d1", "personId": "6f1c2a10-0000-4000-8000-0000000000a1", "changed": true}default
Section titled “default”Error; error and message identify the reason
Media typeapplication/json
object
error
required
Stable code, e.g. insufficient_scope, not_found, validation_failed
string
message
string
Example generated
{ "error": "example", "message": "example"}