sources_group_connections_plex_create
POST/api/v3//sources/group_connections/plex/
Group-source connection Viewset
Request
- application/json
Bodyrequired
groupuuidrequired
sourceuuidrequired
identifierstringrequired
Possible values: non-empty
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
pkID (integer)required
groupuuidrequired
sourceuuidrequired
source_obj object
identifierstringrequired
createddate-timerequired
{
"pk": 0,
"group": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"source": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"source_obj": {
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"slug": "string",
"enabled": true,
"authentication_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"enrollment_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"user_property_mappings": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"group_property_mappings": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"component": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"policy_engine_mode": "all",
"user_matching_mode": "identifier",
"managed": "string",
"user_path_template": "string",
"icon": "string"
},
"identifier": "string",
"created": "2024-07-29T15:51:28.071Z"
}
- 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/sources/group_connections/plex/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"group\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"source\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"identifier\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());