members_set
Invite a member or change their role.
REST · POST /api/v1/operations/members_set · MCP · members_set
Required scope · admin. Send Idempotency-Key in REST or requestKey in MCP. Replace example IDs and times before running.
A delegated call creates a handoff for owner review. Follow its ID to check the outcome.
Example request body
{
"email": "editor@example.test",
"role": "viewer"
}
REST returns the output below directly. In MCP read structuredContent.result. Check the current installation at /api/v1/openapi.json.
For 401 check credential validity. For 403 inspect the role, scopes and selected accounts. For 409 reread the record before retrying.
JSON Schema · Input
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
},
"role": {
"type": "string",
"enum": [
"editor",
"viewer"
]
}
},
"required": [
"email",
"role"
],
"additionalProperties": false
}
JSON Schema · Output
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "object",
"properties": {
"user_id": {
"type": "string"
},
"role": {
"type": "string"
}
},
"required": [
"user_id"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string",
"const": "invited"
},
"inviteUrl": {
"type": "string"
}
},
"required": [
"id",
"status",
"inviteUrl"
],
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"status": {
"type": "string",
"const": "action_required"
},
"reason": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"id",
"status",
"reason",
"url"
],
"additionalProperties": {}
}
]
}