Skip to content

Instantly share code, notes, and snippets.

@shemogumbe
Created April 19, 2024 13:47
Show Gist options
  • Save shemogumbe/23997bfb6397b899d3727ca411e0fd3a to your computer and use it in GitHub Desktop.
Save shemogumbe/23997bfb6397b899d3727ca411e0fd3a to your computer and use it in GitHub Desktop.
Lacking ability to delete user photo -
'/users/{user-id}/photo/$value':
description: Provides operations to manage the media for the user entity.
get:
tags:
- users.profilePhoto
summary: Get media content for the navigation property photo from users
externalDocs:
description: Find more info here
url: https://learn.microsoft.com/graph/api/profilephoto-get?view=graph-rest-1.0
operationId: users.GetPhotoContent
responses:
2XX:
description: Retrieved media content
content:
application/octet-stream:
schema:
type: string
format: binary
4XX:
$ref: '#/components/responses/error'
5XX:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
put:
tags:
- users.profilePhoto
summary: Update media content for the navigation property photo in users
operationId: users.UpdatePhotoContent
requestBody:
description: New media content.
content:
application/octet-stream:
schema:
type: string
format: binary
required: true
responses:
2XX:
description: Success
4XX:
$ref: '#/components/responses/error'
5XX:
$ref: '#/components/responses/error'
x-ms-docs-operation-type: operation
parameters:
- name: user-id
in: path
description: The unique identifier of user
required: true
schema:
type: string
x-ms-docs-key-type: user
@shemogumbe
Copy link
Author

Only has Get and put methods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment