providers_microsoft_entra_groups_create
POST/api/v3//providers/microsoft_entra_groups/
MicrosoftEntraProviderGroup Viewset
Request
- application/json
Bodyrequired
microsoft_idstringrequired
Possible values: non-empty
groupuuidrequired
providerintegerrequired
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
iduuidrequired
microsoft_idstringrequired
groupuuidrequired
group_obj object
providerintegerrequired
attributesrequired
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"microsoft_id": "string",
"group": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"group_obj": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"attributes": {}
},
"provider": 0
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "/api/v3/providers/microsoft_entra_groups/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"microsoft_id\": \"string\",\n \"group\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"provider\": 0\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());