sources_user_connections_oauth_partial_update
PATCH/api/v3//sources/user_connections/oauth/:id/
Source Viewset
Request
Path Parameters
id integerrequired
A unique integer value identifying this User OAuth Source Connection.
- application/json
Body
user integer
identifier string
Possible values: non-empty
and <= 255 characters
access_token stringnullable
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
pk ID (integer)required
user integerrequired
source
object
required
identifier stringrequired
Possible values: <= 255 characters
{
"pk": 0,
"user": 0,
"source": {
"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",
"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"
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PATCH '/api/v3/sources/user_connections/oauth/:id/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"user": 0,
"identifier": "string",
"access_token": "string"
}'