Create a new realm attribute
POSThttps://app.phasetwo.io/realms/:realm/attributes
Create a new realm attribute
Request
Path Parameters
realm stringrequired
realm name (not id!)
- application/json
Body
required
JSON body
name string
value string
realm string
Responses
- 201
- 400
Attribute created
Malformed attribute
Authorization: http
name: access_tokentype: httpscheme: bearerbearerFormat:
- 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.Post, "https://app.phasetwo.io/realms/:realm/attributes");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var content = new StringContent("{\n \"name\": \"string\",\n \"value\": \"string\",\n \"realm\": \"string\"\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear