For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Auth Mapping

get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
auth_configintegerOptional
external_fieldstringOptional
formatstring · enumOptionalPossible values:
internal_fieldstringOptional
limitintegerOptional

Number of results to return per page.

offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

searchstringOptional

A search term.

Responses
200Success
countintegerRequiredExample: 123
nextstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=400&limit=100
previousstring · uri · nullableOptionalExample: http://api.example.org/accounts/?offset=200&limit=100
get/auth_mapping/
GET /auth_mapping/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "count": 123,
  "next": "http://api.example.org/accounts/?offset=400&limit=100",
  "previous": "http://api.example.org/accounts/?offset=200&limit=100",
  "results": [
    {
      "id": 1,
      "auth_config": 1,
      "internal_field": "text",
      "external_field": "text"
    }
  ]
}
post

Handle post request, suitable for single and multi creation

Args: request ([dict]): can be dict or list of dicts

Returns: [type]: [description]

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
auth_configinteger · nullableOptional
internal_fieldstring · max: 255Required
external_fieldstring · max: 255Required
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
auth_configinteger · nullableOptional
internal_fieldstring · max: 255Required
external_fieldstring · max: 255Required
post/auth_mapping/
POST /auth_mapping/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 65

"auth_config=1&internal_field='text'&external_field='text'"
201Success
{
  "id": 1,
  "auth_config": 1,
  "internal_field": "text",
  "external_field": "text"
}
get

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth mapping.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
auth_configinteger · nullableOptional
internal_fieldstring · max: 255Required
external_fieldstring · max: 255Required
get/auth_mapping/{id}/
GET /auth_mapping/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "auth_config": 1,
  "internal_field": "text",
  "external_field": "text"
}
put

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth mapping.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
auth_configinteger · nullableOptional
internal_fieldstring · max: 255Required
external_fieldstring · max: 255Required
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
auth_configinteger · nullableOptional
internal_fieldstring · max: 255Required
external_fieldstring · max: 255Required
put/auth_mapping/{id}/
PUT /auth_mapping/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 65

"auth_config=1&internal_field='text'&external_field='text'"
200Success
{
  "id": 1,
  "auth_config": 1,
  "internal_field": "text",
  "external_field": "text"
}
delete

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth mapping.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/auth_mapping/{id}/
DELETE /auth_mapping/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
204

No response body

No content

patch

This class will define the view behavior

Args: viewsets ([OCSVIewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this auth mapping.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
auth_configinteger · nullableOptional
internal_fieldstring · max: 255Optional
external_fieldstring · max: 255Optional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
auth_configinteger · nullableOptional
internal_fieldstring · max: 255Required
external_fieldstring · max: 255Required
patch/auth_mapping/{id}/
PATCH /auth_mapping/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 65

"auth_config=1&internal_field='text'&external_field='text'"
200Success
{
  "id": 1,
  "auth_config": 1,
  "internal_field": "text",
  "external_field": "text"
}

Last updated