Create one plan family.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/entitlement-operations/models/example/example/plan-families"), Content = new StringContent("{ \"Key\": \"example\", \"DisplayName\": \"example\", \"Description\": \"example\", \"SortOrder\": 1, \"IsActive\": true }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/entitlement-operations/models/example/example/plan-families';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Key":"example","DisplayName":"example","Description":"example","SortOrder":1,"IsActive":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/entitlement-operations/models/example/example/plan-families \ --header 'Content-Type: application/json' \ --data '{ "Key": "example", "DisplayName": "example", "Description": "example", "SortOrder": 1, "IsActive": true }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Create a plan family for one entitlement model.
object
Optional stable family key. The server generates one when omitted.
Family display name.
Optional family description.
Optional display order. The server appends when omitted.
Whether this family can be assigned to plans.
Examplegenerated
{ "Key": "example", "DisplayName": "example", "Description": "example", "SortOrder": 1, "IsActive": true}Create a plan family for one entitlement model.
object
Optional stable family key. The server generates one when omitted.
Family display name.
Optional family description.
Optional display order. The server appends when omitted.
Whether this family can be assigned to plans.
Examplegenerated
{ "Key": "example", "DisplayName": "example", "Description": "example", "SortOrder": 1, "IsActive": true}Create a plan family for one entitlement model.
object
Optional stable family key. The server generates one when omitted.
Family display name.
Optional family description.
Optional display order. The server appends when omitted.
Whether this family can be assigned to plans.
Examplegenerated
{ "Key": "example", "DisplayName": "example", "Description": "example", "SortOrder": 1, "IsActive": true}Responses
Section titled “Responses”OK
object
Plan family detail.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Plan family detail.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Conflict
object
Plan family detail.
object
object
object
object
object
Example
{ "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}