GET api/v1.0/System/GetCodeOfConduct
Get the Code of Conduct Details.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
HTML and String versions of the Code of Conduct, along with a flag specifying if the User must Accept the Code of Conduct prior to gaining access to the site.
Collection of CodeOfConductName | Description | Type | Additional information |
---|---|---|---|
Body | string |
None. |
|
BodyWithoutMarkup | string |
None. |
|
AcceptanceRequired | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Body": "sample string 1", "BodyWithoutMarkup": "sample string 2", "AcceptanceRequired": true }, { "Body": "sample string 1", "BodyWithoutMarkup": "sample string 2", "AcceptanceRequired": true } ]
application/xml, text/xml
Sample:
<ArrayOfCodeOfConduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise"> <CodeOfConduct> <AcceptanceRequired>true</AcceptanceRequired> <Body>sample string 1</Body> <BodyWithoutMarkup>sample string 2</BodyWithoutMarkup> </CodeOfConduct> <CodeOfConduct> <AcceptanceRequired>true</AcceptanceRequired> <Body>sample string 1</Body> <BodyWithoutMarkup>sample string 2</BodyWithoutMarkup> </CodeOfConduct> </ArrayOfCodeOfConduct>