# Create workspace delegation microsoft start

Open Microsoft admin consent, which is a redirect an administrator walks rather than something that can be saved: this only answers the URL, and the grant itself lands on the OAuth callback. returnTo must be the app's loopback receiver or the webapp's own origin. 503 when this deployment holds no Microsoft app registration or no public base URL. Admin and Enterprise only.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/delegation/microsoft/start`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "returnTo": "string"
  },
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "redirectUrl": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
