Create acronym

Namespace: microsoft.graph.search

Create a new acronym object.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) SearchConfiguration.Read.All SearchConfiguration.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application SearchConfiguration.Read.All SearchConfiguration.ReadWrite.All

HTTP request

POST /search/acronyms

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the acronym object.

The following table shows the properties that are available when you create an acronym.

Property Type Description
description String A brief description of the acronym that gives users more information about the acronym and what it stands for. Inherited from searchAnswer.
displayName String The actual short form or acronym. Inherited from searchAnswer.
standsFor String What the acronym stands for.
state microsoft.graph.search.answerState State of the acronym. Possible values are: published, draft, excluded, unknownFutureValue.
webUrl String The URL of the page or website where users can go for more information about the acronym. Inherited from searchAnswer.

Response

If successful, this method returns a 201 Created response code with the ID of the acronym created.

Examples

Request

The following example shows a request.

POST https://graph.microsoft.com/v1.0/search/acronyms
Content-Type: application/json

{
  "displayName": "DNN",
  "standsFor": "Deep Neural Network",
  "description": "A deep neural network is a neural network with a certain level of complexity, a neural network with more than two layers.",
  "webUrl": "http://microsoft.com/deep-neural-network",
  "state": "draft"
}

Response

The following example shows the response.

HTTP/1.1 201 Created
Content-Type: application/json

{
  "id": "733b26d5-af76-4eea-ac69-1a0ce8716897"
}