Skip to content

Send a person's invitation (again)

POST
/v1/integration-api/people/{id}/invitation
curl --request POST \
--url https://api.academy.example.com/v1/integration-api/people/example/invitation \
--header 'Authorization: Bearer <token>'

Versioned integration contract.

id
required
string

Success

Media typeapplication/json
object
personId
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)$/
invitation
required
string
Allowed values: sent failed

Example

{
"personId": "6f1c2a10-0000-4000-8000-0000000000a1",
"invitation": "sent"
}

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