sources_scim_users_create
POST/api/v3//sources/scim_users/
SCIMSourceUser Viewset
Request
- application/json
Bodyrequired
idstringrequired
Possible values: non-empty
userintegerrequired
sourceuuidrequired
attributes
Responses
- 201
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
idstringrequired
userintegerrequired
user_obj object
sourceuuidrequired
attributes
{
"id": "string",
"user": 0,
"user_obj": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-07-29T15:51:28.071Z",
"email": "user@example.com",
"attributes": {},
"uid": "string"
},
"source": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"attributes": {}
}
- 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/scim_users/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"id\": \"string\",\n \"user\": 0,\n \"source\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"attributes\": {}\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());