Skip to main content

propertymappings_source_oauth_update

PUT 

/api/v3//propertymappings/source/oauth/:pm_uuid/

OAuthSourcePropertyMapping Viewset

Request

Path Parameters

    pm_uuid uuidrequired

    A UUID string identifying this OAuth Source Property Mapping.

Bodyrequired

    managedManaged by authentik (string)nullable

    Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.

    Possible values: non-empty

    namestringrequired

    Possible values: non-empty

    expressionstringrequired

    Possible values: non-empty

Responses

Schema
    pkuuidrequired
    managedManaged by authentik (string)nullable

    Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.

    namestringrequired
    expressionstringrequired
    componentstringrequired

    Get object's component so that we know how to edit the object

    verbose_namestringrequired

    Return object's verbose_name

    verbose_name_pluralstringrequired

    Return object's plural verbose_name

    meta_model_namestringrequired

    Return internal model name

Authorization: http

name: authentiktype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "/api/v3/propertymappings/source/oauth/:pm_uuid/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"managed\": \"string\",\n \"name\": \"string\",\n \"expression\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
/api/v3
Auth
Parameters
— pathrequired
Body required
{
  "managed": "string",
  "name": "string",
  "expression": "string"
}