authenticators_admin_sms_update
PUT/api/v3//authenticators/admin/sms/:id/
Viewset for sms authenticator devices (for admins)
Request
Path Parameters
id integerrequired
A unique integer value identifying this SMS Device.
- application/json
Body
required
name stringrequired
The human-readable name of this device.
Possible values: non-empty
and <= 64 characters
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
name stringrequired
The human-readable name of this device.
Possible values: <= 64 characters
pk ID (integer)required
phone_number stringrequired
{
"name": "string",
"pk": 0,
"phone_number": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"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.Put, "/api/v3/authenticators/admin/sms/:id/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"name\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());