Create acronym

Namespace: microsoft.graph.search

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Create a new acronym object.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) SearchConfiguration.Read.All, SearchConfiguration.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application SearchConfiguration.Read.All, SearchConfiguration.ReadWrite.All

HTTP request

POST /search/acronyms

Request headers

Name Description
Authorization Bearer {token}. Required.
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 info about the acronym and what it stands for. Inherited from searchAnswer.
displayName String The actual short form or acronym. Inherited from searchAnswer.
standsFor String collection What the acronym stands for.
state microsoft.graph.search.answerState State of the acronym. Possible values are: published, draft, excluded, or 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 200 Ok response code.

Examples

Request

POST https://graph.microsoft.com/beta/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

Here is an example of the response.

HTTP/1.1 200 Ok
Content-Type: application/json

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