Create one renewal policy.
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/renewal-policies"), Content = new StringContent("{ \"Key\": \"example\", \"DisplayName\": \"example\", \"Description\": \"example\", \"Mode\": 0, \"LeadDays\": 1, \"ExternalPolicyKey\": \"example\", \"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/renewal-policies';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"Key":"example","DisplayName":"example","Description":"example","Mode":0,"LeadDays":1,"ExternalPolicyKey":"example","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/renewal-policies \ --header 'Content-Type: application/json' \ --data '{ "Key": "example", "DisplayName": "example", "Description": "example", "Mode": 0, "LeadDays": 1, "ExternalPolicyKey": "example", "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 renewal policy for one entitlement model.
object
Optional stable policy key. The server generates one when omitted.
Policy display name.
Optional policy description.
Manual review lead time in days.
External integration policy key.
Whether this policy can be assigned to plans.
Create a renewal policy for one entitlement model.
object
Optional stable policy key. The server generates one when omitted.
Policy display name.
Optional policy description.
Manual review lead time in days.
External integration policy key.
Whether this policy can be assigned to plans.
Create a renewal policy for one entitlement model.
object
Optional stable policy key. The server generates one when omitted.
Policy display name.
Optional policy description.
Manual review lead time in days.
External integration policy key.
Whether this policy can be assigned to plans.
Responses
Section titled “Responses”OK
object
Renewal policy detail.
object
object
object
object
object
Example
{ "Data": { "Mode": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Renewal policy detail.
object
object
object
object
object
Example
{ "Data": { "Mode": 0 }, "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
Renewal policy detail.
object
object
object
object
object
Example
{ "Data": { "Mode": 0 }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}