GET Api/Policies/{policyId}

Returns a specific policy.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
policyId

The ID of the policy.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A policy.

PolicyResponse
NameDescriptionTypeAdditional 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-09-03T12:31:36.5860802+02: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-09-03T12:31:36.5860802+02:00</CreatedOn>
  <Id>1</Id>
  <Text>sample string 2</Text>
  <Type>Consent</Type>
</PolicyResponse>