GET Api/Policies?portal={portal}&culture={culture}

Returns a list of policies.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
portal

string

None.

culture

string

None.

Body Parameters

None.

Response Information

Resource Description

A list of policies.

Collection of 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.5128951+02:00",
    "Type": 0
  },
  {
    "Id": 1,
    "Text": "sample string 2",
    "CreatedOn": "2024-09-03T12:31:36.5128951+02:00",
    "Type": 0
  }
]

application/xml, text/xml

Sample:
<ArrayOfPolicyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Responses">
  <PolicyResponse>
    <CreatedOn>2024-09-03T12:31:36.5128951+02:00</CreatedOn>
    <Id>1</Id>
    <Text>sample string 2</Text>
    <Type>Consent</Type>
  </PolicyResponse>
  <PolicyResponse>
    <CreatedOn>2024-09-03T12:31:36.5128951+02:00</CreatedOn>
    <Id>1</Id>
    <Text>sample string 2</Text>
    <Type>Consent</Type>
  </PolicyResponse>
</ArrayOfPolicyResponse>