openapi: 3.2.0 info: title: Groups.profile Photo API version: v1.0 servers: - url: https://graph.microsoft.com/v1.0/ description: Core security: - azureaadv2: [] tags: - name: groups.profilePhoto paths: /groups/{group-id}/photo: get: tags: - groups.profilePhoto summary: Get photo from groups description: The group's profile photo operationId: group_GetPhoto parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - name: $select in: query description: Select properties to be returned style: form explode: false schema: uniqueItems: true type: array items: type: string - name: $expand in: query description: Expand related entities style: form explode: false schema: uniqueItems: true type: array items: type: string responses: 2XX: description: Retrieved navigation property content: application/json: schema: $ref: '#/components/schemas/microsoft.graph.profilePhoto' default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation patch: tags: - groups.profilePhoto summary: Update the navigation property photo in groups operationId: group_UpdatePhoto parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group requestBody: description: New navigation property values content: application/json: schema: $ref: '#/components/schemas/microsoft.graph.profilePhoto' required: true responses: 2XX: description: Success content: application/json: schema: $ref: '#/components/schemas/microsoft.graph.profilePhoto' default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation delete: tags: - groups.profilePhoto summary: Delete navigation property photo for groups operationId: group_DeletePhoto parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - name: If-Match in: header description: ETag style: simple schema: type: string responses: 2XX: description: Success default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation /groups/{group-id}/photo/$value: get: tags: - groups.profilePhoto summary: Get media content for the navigation property photo from groups description: The group's profile photo operationId: group_GetPhotoContent parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group responses: 2XX: description: Retrieved media content content: application/octet-stream: schema: type: string format: binary default: $ref: '#/components/responses/error' put: tags: - groups.profilePhoto summary: Update media content for the navigation property photo in groups description: The group's profile photo operationId: group_SetPhotoContent parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group requestBody: description: New media content. content: application/octet-stream: schema: type: string format: binary required: true responses: 2XX: description: Success default: $ref: '#/components/responses/error' delete: tags: - groups.profilePhoto summary: Delete media content for the navigation property photo in groups description: The group's profile photo operationId: group_DeletePhotoContent parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - name: If-Match in: header description: ETag style: simple schema: type: string responses: 2XX: description: Success default: $ref: '#/components/responses/error' /groups/{group-id}/photos: get: tags: - groups.profilePhoto summary: List photos description: Retrieve a list of profilePhoto objects. externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/group-list-photos?view=graph-rest-1.0 operationId: group_ListPhoto parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - $ref: '#/components/parameters/top' - $ref: '#/components/parameters/skip' - $ref: '#/components/parameters/search' - $ref: '#/components/parameters/filter' - $ref: '#/components/parameters/count' - name: $orderby in: query description: Order items by property values style: form explode: false schema: uniqueItems: true type: array items: type: string - name: $select in: query description: Select properties to be returned style: form explode: false schema: uniqueItems: true type: array items: type: string - name: $expand in: query description: Expand related entities style: form explode: false schema: uniqueItems: true type: array items: type: string responses: 2XX: $ref: '#/components/responses/microsoft.graph.profilePhotoCollectionResponse' default: $ref: '#/components/responses/error' x-ms-pageable: nextLinkName: '@odata.nextLink' operationName: listMore x-ms-docs-operation-type: operation /groups/{group-id}/photos/{profilePhoto-id}: get: tags: - groups.profilePhoto summary: Get photos from groups description: The profile photos owned by the group. Read-only. Nullable. operationId: getGroupsByGroupIdPhotosByProfilePhotoId parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - name: profilePhoto-id in: path description: The unique identifier of profilePhoto required: true style: simple schema: type: string x-ms-docs-key-type: profilePhoto - name: $select in: query description: Select properties to be returned style: form explode: false schema: uniqueItems: true type: array items: type: string - name: $expand in: query description: Expand related entities style: form explode: false schema: uniqueItems: true type: array items: type: string responses: 2XX: description: Retrieved navigation property content: application/json: schema: $ref: '#/components/schemas/microsoft.graph.profilePhoto' default: $ref: '#/components/responses/error' x-ms-docs-operation-type: operation x-operation-id-source: normalized x-operation-id-original: group_GetPhoto /groups/{group-id}/photos/{profilePhoto-id}/$value: get: tags: - groups.profilePhoto summary: List photos description: Retrieve a list of profilePhoto objects. externalDocs: description: Find more info here url: https://learn.microsoft.com/graph/api/group-list-photos?view=graph-rest-1.0 operationId: group_GetPhotosContent parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - name: profilePhoto-id in: path description: The unique identifier of profilePhoto required: true style: simple schema: type: string x-ms-docs-key-type: profilePhoto responses: 2XX: description: Retrieved media content content: application/octet-stream: schema: type: string format: binary default: $ref: '#/components/responses/error' put: tags: - groups.profilePhoto summary: Update media content for the navigation property photos in groups description: The unique identifier for an entity. Read-only. operationId: group_SetPhotosContent parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - name: profilePhoto-id in: path description: The unique identifier of profilePhoto required: true style: simple schema: type: string x-ms-docs-key-type: profilePhoto requestBody: description: New media content. content: application/octet-stream: schema: type: string format: binary required: true responses: 2XX: description: Success default: $ref: '#/components/responses/error' delete: tags: - groups.profilePhoto summary: Delete media content for the navigation property photos in groups description: The unique identifier for an entity. Read-only. operationId: group_DeletePhotosContent parameters: - name: group-id in: path description: The unique identifier of group required: true style: simple schema: type: string x-ms-docs-key-type: group - name: profilePhoto-id in: path description: The unique identifier of profilePhoto required: true style: simple schema: type: string x-ms-docs-key-type: profilePhoto - name: If-Match in: header description: ETag style: simple schema: type: string responses: 2XX: description: Success default: $ref: '#/components/responses/error' components: schemas: microsoft.graph.profilePhoto: allOf: - $ref: '#/components/schemas/microsoft.graph.entity' - title: profilePhoto type: object properties: height: maximum: 2147483647 minimum: -2147483648 type: - number - 'null' description: The height of the photo. Read-only. format: int32 width: maximum: 2147483647 minimum: -2147483648 type: - number - 'null' description: The width of the photo. Read-only. format: int32 additionalProperties: type: object microsoft.graph.ODataErrors.InnerError: type: object additionalProperties: type: object description: The structure of this object is service-specific microsoft.graph.profilePhotoCollectionResponse: title: Collection of profilePhoto type: object properties: value: type: array items: $ref: '#/components/schemas/microsoft.graph.profilePhoto' '@odata.nextLink': type: - string - 'null' additionalProperties: type: object microsoft.graph.ODataErrors.ErrorDetails: required: - code - message type: object properties: code: type: string message: type: string target: type: - string - 'null' additionalProperties: type: object microsoft.graph.ODataErrors.MainError: required: - code - message type: object properties: code: type: string message: type: string x-ms-primary-error-message: true target: type: - string - 'null' details: type: array items: $ref: '#/components/schemas/microsoft.graph.ODataErrors.ErrorDetails' innerError: $ref: '#/components/schemas/microsoft.graph.ODataErrors.InnerError' additionalProperties: type: object microsoft.graph.ODataErrors.ODataError: required: - error type: object properties: error: $ref: '#/components/schemas/microsoft.graph.ODataErrors.MainError' additionalProperties: type: object microsoft.graph.entity: title: entity type: object properties: id: type: string description: The unique identifier for an entity. Read-only. additionalProperties: type: object parameters: top: name: $top in: query description: Show only the first n items style: form explode: false schema: minimum: 0 type: integer example: 50 count: name: $count in: query description: Include count of items style: form explode: false schema: type: boolean filter: name: $filter in: query description: Filter items by property values style: form explode: false schema: type: string search: name: $search in: query description: Search items by search phrases style: form explode: false schema: type: string skip: name: $skip in: query description: Skip the first n items style: form explode: false schema: minimum: 0 type: integer responses: error: description: error content: application/json: schema: $ref: '#/components/schemas/microsoft.graph.ODataErrors.ODataError' microsoft.graph.profilePhotoCollectionResponse: description: Retrieved collection content: application/json: schema: $ref: '#/components/schemas/microsoft.graph.profilePhotoCollectionResponse' securitySchemes: azureaadv2: type: oauth2 flows: authorizationCode: authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token scopes: {}