Pair a mentor with a mentee: their shared workspace
PUT
/v1/integration-api/mentoring/pairs
const url = 'https://api.academy.example.com/v1/integration-api/mentoring/pairs';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"mentorId":"6f1c2a10-0000-4000-8000-0000000000a4","menteeId":"6f1c2a10-0000-4000-8000-0000000000a1"}'};
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/mentoring/pairs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "mentorId": "6f1c2a10-0000-4000-8000-0000000000a4", "menteeId": "6f1c2a10-0000-4000-8000-0000000000a1" }'Versioned integration contract.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
mentorId
required
string format: uuid
menteeId
required
string format: uuid
Example
{ "mentorId": "6f1c2a10-0000-4000-8000-0000000000a4", "menteeId": "6f1c2a10-0000-4000-8000-0000000000a1"}Responses
Section titled “Responses”Success
Media typeapplication/json
object
workspaceId
required
string format: uuid
mentorId
required
string format: uuid
menteeId
required
string format: uuid
created
required
boolean
Example
{ "workspaceId": "6f1c2a10-0000-4000-8000-0000000000b2", "mentorId": "6f1c2a10-0000-4000-8000-0000000000a4", "menteeId": "6f1c2a10-0000-4000-8000-0000000000a1", "created": 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"}