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

Groups

get

This class will define the view behavior

Args: viewsets ([ModelViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Query parameters
formatstring · enumOptionalPossible values:
limitintegerOptional

Number of results to return per page.

namestringOptional
offsetintegerOptional

The initial index from which to return the results.

orderingstringOptional

Which field to use when ordering the results.

permissionsinteger[]Optional
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/groups/
GET /groups/ 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,
      "name": "text",
      "permissions": [
        1
      ]
    }
  ]
}
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
namestring · max: 150Required
permissionsinteger[]Optional
is_protectedbooleanWrite-onlyOptional
Responses
201Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 150Required
permissionsinteger[]Optional
is_protectedbooleanWrite-onlyOptional
post/groups/
POST /groups/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 53

"name='text'&permissions=[1]&is_protected=true"
201Success
{
  "id": 1,
  "name": "text",
  "permissions": [
    1
  ]
}
get

This class will define the view behavior

Args: viewsets ([ModelViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this group.

Query parameters
formatstring · enumOptionalPossible values:
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 150Required
permissionsinteger[]Optional
is_protectedbooleanWrite-onlyOptional
get/groups/{id}/
GET /groups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
200Success
{
  "id": 1,
  "name": "text",
  "permissions": [
    1
  ]
}
put

This class will define the view behavior

Args: viewsets ([ModelViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this group.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 150Required
permissionsinteger[]Optional
is_protectedbooleanWrite-onlyOptional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 150Required
permissionsinteger[]Optional
is_protectedbooleanWrite-onlyOptional
put/groups/{id}/
PUT /groups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 53

"name='text'&permissions=[1]&is_protected=true"
200Success
{
  "id": 1,
  "name": "text",
  "permissions": [
    1
  ]
}
delete

This class will define the view behavior

Args: viewsets ([ModelViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this group.

Query parameters
formatstring · enumOptionalPossible values:
Responses
204

No response body

No content

delete/groups/{id}/
DELETE /groups/{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 ([ModelViewSet])

Authorizations
AuthorizationstringRequired

Token-based authentication with required prefix "Token"

Path parameters
idintegerRequired

A unique integer value identifying this group.

Query parameters
formatstring · enumOptionalPossible values:
Body

This serialize class provide the API representation

idintegerRead-onlyOptional
namestring · max: 150Optional
permissionsinteger[]Optional
is_protectedbooleanWrite-onlyOptional
Responses
200Success

This serialize class provide the API representation

idintegerRead-onlyRequired
namestring · max: 150Required
permissionsinteger[]Optional
is_protectedbooleanWrite-onlyOptional
patch/groups/{id}/
PATCH /groups/{id}/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 53

"name='text'&permissions=[1]&is_protected=true"
200Success
{
  "id": 1,
  "name": "text",
  "permissions": [
    1
  ]
}

Last updated