Skip to content

Pair a mentor with a mentee: their shared workspace

PUT
/v1/integration-api/mentoring/pairs
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.

Media typeapplication/json
object
mentorId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
menteeId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/

Example

{
"mentorId": "6f1c2a10-0000-4000-8000-0000000000a4",
"menteeId": "6f1c2a10-0000-4000-8000-0000000000a1"
}

Success

Media typeapplication/json
object
workspaceId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
mentorId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
menteeId
required
string format: uuid
/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/
created
required
boolean

Example

{
"workspaceId": "6f1c2a10-0000-4000-8000-0000000000b2",
"mentorId": "6f1c2a10-0000-4000-8000-0000000000a4",
"menteeId": "6f1c2a10-0000-4000-8000-0000000000a1",
"created": true
}

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"
}