Skip to content

Commit ea2b760

Browse files
authored
Merge pull request #32 from dragonchaser/guest-invite
add invitation post request
2 parents ce908fd + 059720c commit ea2b760

1 file changed

Lines changed: 137 additions & 9 deletions

File tree

api/openapi-spec/v1.0.yaml

Lines changed: 137 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ paths:
142142
default:
143143
$ref: '#/components/responses/error'
144144
delete:
145-
tags:
146-
- me.photo
147-
summary: Delete the current user's profile photo
148-
operationId: DeleteOwnUserPhoto
149-
responses:
150-
'204':
151-
description: Success
152-
default:
153-
$ref: '#/components/responses/error'
145+
tags:
146+
- me.photo
147+
summary: Delete the current user's profile photo
148+
operationId: DeleteOwnUserPhoto
149+
responses:
150+
'204':
151+
description: Success
152+
default:
153+
$ref: '#/components/responses/error'
154154
'/v1beta1/extensions/org.libregraph/activities':
155155
get:
156156
tags:
@@ -2593,6 +2593,66 @@ paths:
25932593
$ref: '#/components/responses/error'
25942594
x-ms-docs-operation-type: operation
25952595

2596+
/v1.0/invitations:
2597+
post:
2598+
tags:
2599+
- invitations
2600+
summary: Create a new invitation
2601+
operationId: CreateInvitation
2602+
requestBody:
2603+
description: New invitation
2604+
content:
2605+
application/json:
2606+
schema:
2607+
$ref: '#/components/schemas/invitation'
2608+
responses:
2609+
'201':
2610+
description: Invitation created successfully
2611+
content:
2612+
application/json:
2613+
schema:
2614+
$ref: '#/components/schemas/invitation'
2615+
x-ms-docs-operation-type: operation
2616+
get:
2617+
tags:
2618+
- invitations
2619+
summary: Get a list of invitations
2620+
operationId: ListInvitations
2621+
responses:
2622+
'200':
2623+
description: Retrieved invitations
2624+
content:
2625+
application/json:
2626+
schema:
2627+
title: Collection of invitations
2628+
type: object
2629+
properties:
2630+
value:
2631+
type: array
2632+
items:
2633+
$ref: '#/components/schemas/invitation'
2634+
2635+
/v1.0/invitations/{invitation-id}:
2636+
get:
2637+
tags:
2638+
- invitations
2639+
summary: Get an invitation by key
2640+
operationId: GetInvitation
2641+
parameters:
2642+
- name: invitation-id
2643+
in: path
2644+
description: 'key: id of invitation'
2645+
required: true
2646+
schema:
2647+
type: string
2648+
responses:
2649+
'200':
2650+
description: Retrieved invitation
2651+
content:
2652+
application/json:
2653+
schema:
2654+
$ref: '#/components/schemas/invitation'
2655+
25962656
/v1.0/users:
25972657
get:
25982658
tags:
@@ -4461,6 +4521,74 @@ components:
44614521
'@libre.graph.userType':
44624522
type: string
44634523
description: 'The type of the identity. This can be either "Member" for regular user, "Guest" for guest users or "Federated" for users imported from a federated instance. Can be used by clients to indicate the type of user. For more details, clients should look up and cache the user at the /users endpoint.'
4524+
invitation:
4525+
type: object
4526+
description: |
4527+
Represents an invitation to a drive item.
4528+
properties:
4529+
invitedUserDisplayName:
4530+
type: string
4531+
description: The display name of the user being invited.
4532+
invitedUserEmailAddress:
4533+
type: string
4534+
description: The email address of the user being invited. Required.
4535+
invitedUserMessageInfo:
4536+
$ref: '#/components/schemas/invitedUserMessageInfo'
4537+
description: Additional information about the invitation message.
4538+
sendInvitationMessage:
4539+
type: boolean
4540+
description: Indicates whether an invitation message should be sent to the user.
4541+
inviteRedirectUrl:
4542+
type: string
4543+
description: The URL to which the user is redirected after accepting the invitation. Required.
4544+
inviteRedeemUrl:
4545+
type: string
4546+
description: The URL that the user can use to redeem the invitation. Read-only.
4547+
readOnly: true
4548+
status:
4549+
type: string
4550+
description: The status of the invitation. Read-only.
4551+
readOnly: true
4552+
invitedUser:
4553+
$ref: '#/components/schemas/user'
4554+
description: The user object of the invited user. Read-only.
4555+
readOnly: true
4556+
invitedUserType:
4557+
type: string
4558+
description: The type of user being invited.
4559+
invitedUserMessageInfo:
4560+
type: object
4561+
description: Additional information about the invitation message.
4562+
properties:
4563+
ccRecipients:
4564+
type: array
4565+
items:
4566+
$ref: '#/components/schemas/recipient'
4567+
description: Additional recipients who will receive a copy of the invitation message.
4568+
customizedMessageBody:
4569+
type: string
4570+
description: The customized message body that will be included in the invitation message.
4571+
messageLanguage:
4572+
type: string
4573+
description: The language of the invitation message.
4574+
recipient:
4575+
type: object
4576+
description: Represents a recipient of an invitation.
4577+
properties:
4578+
emailAddress:
4579+
$ref: '#/components/schemas/emailAddress'
4580+
description: The email address of the recipient.
4581+
emailAddress:
4582+
type: object
4583+
description: Represents an email address.
4584+
properties:
4585+
address:
4586+
type: string
4587+
description: The email address.
4588+
name:
4589+
type: string
4590+
description: The name associated with the email address.
4591+
44644592
objectIdentity:
44654593
description: Represents an identity used to sign in to a user account
44664594
type: object

0 commit comments

Comments
 (0)