Admin - API Endpoints
privacyPolicy
Privacy Policy
Base 64 of PDF or url
https://www.helloiconic.com/privacy-policy
0466770d-4024-457c-92d5-fbe9022ee5b7
This icon should match with an existing icon in the frontend
book-open
url
Possible values: This value is in ms. This value is the expiration time of the presigned url. Default is 23 hours for PDFs, and is null for URLs and public documents
36000
Public documents can be seen by anyone. Private documents can only be seen by logged in users. Default is false.
true
{"statusCode":201}
POST /admin/contents/documents HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"name": "privacyPolicy",
"title": "Privacy Policy",
"content": "https://www.helloiconic.com/privacy-policy",
"documentCategoryId": "0466770d-4024-457c-92d5-fbe9022ee5b7",
"iconName": "book-open",
"format": "url",
"expirationTime": 36000,
"isPublic": true
}
{
"statusCode": 201
}
0466770d-4024-457c-92d5-fbe9022ee5b7
termsAndConditions
Terms & Conditions
Base 64 of PDF or url
https://www.helloiconic.com/privacy-policy
0466770d-4024-457c-92d5-fbe9022ee5b7
This icon should match with an existing icon in the frontend
book-open
This is the order that will be returned to the frontend
5
url
Possible values: This value is in ms. This value is the expiration time of the presigned url. Default is 23 hours for PDFs, and is null for URLs and public documents
36000
Public documents can be seen by anyone. Private documents can only be seen by logged in users. Default is false.
true
{"statusCode":200}
PUT /admin/contents/documents/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 260
{
"name": "termsAndConditions",
"title": "Terms & Conditions",
"content": "https://www.helloiconic.com/privacy-policy",
"documentCategoryId": "0466770d-4024-457c-92d5-fbe9022ee5b7",
"iconName": "book-open",
"index": 5,
"format": "url",
"expirationTime": 36000,
"isPublic": true
}
{
"statusCode": 200
}
0466770d-4024-457c-92d5-fbe9022ee5b7
{"statusCode":200}
DELETE /admin/contents/documents/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"statusCode": 200
}
settings
{"statusCode":201}
POST /admin/contents/document-categories HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"name": "settings"
}
{
"statusCode": 201
}
0466770d-4024-457c-92d5-fbe9022ee5b7
settings
{"statusCode":200}
PUT /admin/contents/document-categories/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"name": "settings"
}
{
"statusCode": 200
}
0466770d-4024-457c-92d5-fbe9022ee5b7
{"statusCode":200}
DELETE /admin/contents/document-categories/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"statusCode": 200
}
Last updated
Was this helpful?