GET Api/Policies/{policyId}
Returns a specific policy.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
policyId |
The ID of the policy. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A policy.
PolicyResponseName | Description | Type | Additional information |
---|---|---|---|
Id |
The unique identifier of the policy. |
integer |
None. |
Text |
The policy text |
string |
None. |
CreatedOn |
Date of creation |
date |
None. |
Type |
Type of the policy |
PolicyType |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Text": "sample string 2", "CreatedOn": "2024-12-30T19:21:55.0968051+01:00", "Type": 0 }
application/xml, text/xml
Sample:
<PolicyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Responses"> <CreatedOn>2024-12-30T19:21:55.0968051+01:00</CreatedOn> <Id>1</Id> <Text>sample string 2</Text> <Type>Consent</Type> </PolicyResponse>