Skip to main content

Create a new realm attribute

POST 

https://app.phasetwo.io/realms/:realm/attributes

Create a new realm attribute

Request

Path Parameters

    realm stringrequired

    realm name (not id!)

Body

required

JSON body

    name string
    value string
    realm string

Responses

Attribute created

Authorization: http

name: access_tokentype: httpscheme: bearerbearerFormat: 
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());
Request Collapse all
Base URL
https://app.phasetwo.io/realms
Auth
Parameters
— pathrequired
Body required
{
  "name": "string",
  "value": "string",
  "realm": "string"
}
ResponseClear

Click the Send API Request button above and see the response here!