/organization/acceptterms v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Organizations
postOrganizationAcceptTerms
Code samples
const inputBody = '{
"params": {
"accepted": true,
"version": 3
}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json'
};
fetch('https://goldleaf.app/api/v1/organization/acceptterms',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /organization/acceptterms
Record acceptance of terms and conditions
Records that an admin user has accepted the organization's terms and conditions, including the accepted version.
Body parameter
{
"params": {
"accepted": true,
"version": 3
}
}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | true | none |
| » params | body | object | false | none |
| »» accepted | body | boolean | true | Indicates acceptance of terms. |
| »» version | body | number | true | Version number of the accepted terms. |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Terms acceptance recorded successfully | None |
| 500 | Internal Server Error | Internal server error | string |
