Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
To authenticate requests, include an Authorization
header with the value "Bearer {YOUR_AUTH_KEY}"
.
All authenticated endpoints are marked with a requires authentication
badge in the documentation below.
Login as a user, get a token and use it to make your requests. The responses you see from the requests where made with the token of a user of role admin.
Analytics
Capture a page Interaction
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/analytics/pages/9762db71-f5a6-41c4-913e-90b8aebad733/interact?interaction_type=read_more_about" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/analytics/pages/9762db71-f5a6-41c4-913e-90b8aebad733/interact"
);
const params = {
"interaction_type": "read_more_about",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "The page was not found!",
"errors": null
}
Received response:
Request failed with error:
Capture an event Interaction
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/analytics/events/9762db71-f5a6-41c4-913e-90b8aebad733/interact?interaction_type=read_more_about" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/analytics/events/9762db71-f5a6-41c4-913e-90b8aebad733/interact"
);
const params = {
"interaction_type": "read_more_about",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "The event was not found!",
"errors": null
}
Received response:
Request failed with error:
Capture a page view
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/analytics/pages/9762db71-f5a6-41c4-913e-90b8aebad733/view" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/analytics/pages/9762db71-f5a6-41c4-913e-90b8aebad733/view"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "The page was not found!",
"errors": null
}
Received response:
Request failed with error:
Capture an Event view
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/analytics/events/9762db71-f5a6-41c4-913e-90b8aebad733/view" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/analytics/events/9762db71-f5a6-41c4-913e-90b8aebad733/view"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "The event was not found!",
"errors": null
}
Received response:
Request failed with error:
Audience
Get Audience
Get paginated list of audiences.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/audiences?deleted=with&term=audience+name&source=emails&author=administrator&per_page=20&order_by=name%3Adesc%2Ccreated_at%3Adesc" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"nyhttwje\",
\"per_page\": 2,
\"drafted\": \"only\",
\"deleted\": \"with\",
\"order_by\": [
\"sunt\"
],
\"source\": \"emails\",
\"role\": \"charity\"
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences"
);
const params = {
"deleted": "with",
"term": "audience name",
"source": "emails",
"author": "administrator",
"per_page": "20",
"order_by": "name:desc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "nyhttwje",
"per_page": 2,
"drafted": "only",
"deleted": "with",
"order_by": [
"sunt"
],
"source": "emails",
"role": "charity"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Audience Options
requires authentication
Retrieve audience creation options data.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/audiences/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/audiences/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Audience Options - portal
requires authentication
Retrieve audience creation options data.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/audiences/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/audiences/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete Audiences
requires authentication
Delete multiple audiences data by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/audiences/delete?permanently=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"audiences_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences/delete"
);
const params = {
"permanently": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"audiences_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore Many Audiences
requires authentication
Restore multiple audiences data by specifying their ids.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/audiences/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"audiences_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"audiences_ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Audiences' Mailing List Items
requires authentication
Delete audiences' mailing list data by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/audiences/qui/mailing-list/delete?permanently=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"mailing_lists_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences/qui/mailing-list/delete"
);
const params = {
"permanently": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"mailing_lists_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore Audiences' Mailing List Items
requires authentication
Restore audiences' mailing list data by specifying their ids.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/audiences/aut/mailing-list/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"mailing_lists_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences/aut/mailing-list/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"mailing_lists_ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Audience Stats
requires authentication
Get Audience Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/audiences/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/audiences/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Audiences
Create a new Audience
requires authentication
New audiences can be created with optional.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/audiences/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"enim\",
\"description\": \"Et aut ut optio ut.\",
\"source\": \"mailing list\",
\"data\": \"necessitatibus\"
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "enim",
"description": "Et aut ut optio ut.",
"source": "mailing list",
"data": "necessitatibus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update an Audience
requires authentication
An existing audience can be updated.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/audiences/cumque/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"reiciendis\",
\"description\": \"Veniam autem magnam asperiores inventore rerum accusamus itaque omnis.\",
\"source\": \"emails\"
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences/cumque/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "reiciendis",
"description": "Veniam autem magnam asperiores inventore rerum accusamus itaque omnis.",
"source": "emails"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update Audience's Mailing List
requires authentication
An existing audience's mailing list can be updated.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/audiences/sunt/mailing-list/velit/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"first_name\": \"enim\",
\"last_name\": \"exercitationem\",
\"email\": \"jocelyn.thompson@example.com\",
\"phone\": \"temporibus\"
}"
const url = new URL(
"https://api.test/api/v1/portal/audiences/sunt/mailing-list/velit/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"first_name": "enim",
"last_name": "exercitationem",
"email": "jocelyn.thompson@example.com",
"phone": "temporibus"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Authentication
Login
Handle a login request to the application. Below are the logins of users with different roles. PS: All the users have a common password which is "password".
Administrator: Mark@runforcharity.com
Developer: developer@wearedamage.com
Account Manager: marc@runforcharity.com
Account Manager: freddie@runforcharity.com [WWF]
Charity: teampanda@wwf.org.uk [WWF]
Charity User: Joemcdermott@macmillan.org.uk [Macmillan Cancer Support]
Event Manager: matt@runthrough.co.uk
Participant: norberth.t@gmail.com
Participant: fharle_88@hotmail.co.uk
Example request:
curl --request POST \
"https://api.test/api/v1/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"email\": \"Mark@runforcharity.com\",
\"password\": \"Password.0!\",
\"totp_code\": \"pariatur\",
\"social_auth\": [
\"dignissimos\"
]
}"
const url = new URL(
"https://api.test/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"email": "Mark@runforcharity.com",
"password": "Password.0!",
"totp_code": "pariatur",
"social_auth": [
"dignissimos"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Create a user
Handle a registration request for the application.
Example request:
curl --request POST \
"https://api.test/api/v1/auth/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"first_name\": \"Wendy\",
\"last_name\": \"Mike\",
\"email\": \"user@email.com\",
\"phone\": \"+12333333333\",
\"password\": \"123@!PASSWORD\",
\"social_auth\": [
\"qui\"
]
}"
const url = new URL(
"https://api.test/api/v1/auth/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"first_name": "Wendy",
"last_name": "Mike",
"email": "user@email.com",
"phone": "+12333333333",
"password": "123@!PASSWORD",
"social_auth": [
"qui"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Account Password Set up
Allow user set up a password for thier account.
Example request:
curl --request POST \
"https://api.test/api/v1/account/password/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"email\": \"user@email.com\",
\"code\": \"176814\",
\"password\": \"123&kPASSWORD\"
}"
const url = new URL(
"https://api.test/api/v1/account/password/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"email": "user@email.com",
"code": "176814",
"password": "123&kPASSWORD"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Resend Password Set up Code
Resend code to user.
Example request:
curl --request POST \
"https://api.test/api/v1/account/password/resend-setup-code" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"email\": \"user@email.com\"
}"
const url = new URL(
"https://api.test/api/v1/account/password/resend-setup-code"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"email": "user@email.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Request reset code
Send a reset code to the given user who forgot their password.
Example request:
curl --request POST \
"https://api.test/api/v1/password/email" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"email\": \"sdk@email.com\"
}"
const url = new URL(
"https://api.test/api/v1/password/email"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"email": "sdk@email.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Reset Password
Complete the password reset request initiated by the user.
Example request:
curl --request POST \
"https://api.test/api/v1/password/reset" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"email\": \"user@email.com\",
\"token\": \"357742ecb53be20ad70e4b0c233a2bcee289d8f5aa3e2f844c527019f5d7496\",
\"code\": \"759210\",
\"password\": \"newPASSword123@\"
}"
const url = new URL(
"https://api.test/api/v1/password/reset"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"email": "user@email.com",
"token": "357742ecb53be20ad70e4b0c233a2bcee289d8f5aa3e2f844c527019f5d7496",
"code": "759210",
"password": "newPASSword123@"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Logout
requires authentication
Log the user out of the application.
Example request:
curl --request POST \
"https://api.test/api/v1/auth/logout?all=true%0A%3Caside+class%3D%22notice%22%3E%3Fall%3Dtrue+param+essentially+logs+out+all+currently+logged-in+devices%3C%2Faside%3E" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/auth/logout"
);
const params = {
"all": "true
<aside class="notice">?all=true param essentially logs out all currently logged-in devices</aside>",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Remove Devices
requires authentication
Disconnect multiple devices from accessing user account.
Example request:
curl --request DELETE \
"https://api.test/api/v1/users/975dcf22-21a8-406a-9a83-6b943cea0508/remove-devices" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"devices\": [
\"ipsa\"
],
\"devices[]\": \"[1, 2, 3]\"
}"
const url = new URL(
"https://api.test/api/v1/users/975dcf22-21a8-406a-9a83-6b943cea0508/remove-devices"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"devices": [
"ipsa"
],
"devices[]": "[1, 2, 3]"
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Account Verification
requires authentication
Mark the authenticated user's email address as verified.
Example request:
curl --request POST \
"https://api.test/api/v1/account/verify?type=email" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"code\": \"17681\"
}"
const url = new URL(
"https://api.test/api/v1/account/verify"
);
const params = {
"type": "email",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"code": "17681"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Redo Verification
requires authentication
Resend verification code to user.
Example request:
curl --request POST \
"https://api.test/api/v1/account/verification/resend" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/account/verification/resend"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Blog
Store Post
requires authentication
Store new blog post.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/articles/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"title\": \"Amazing Spider-man\",
\"body\": \"Some story goes here...\",
\"is_published\": true,
\"tags\": [
\"running\",
\"charity\"
],
\"cover_image\": \"quae\"
}"
const url = new URL(
"https://api.test/api/v1/portal/articles/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"title": "Amazing Spider-man",
"body": "Some story goes here...",
"is_published": true,
"tags": [
"running",
"charity"
],
"cover_image": "quae"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Upload Post
requires authentication
Update blog post.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/articles/explicabo/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"title\": \"Amazing Spider-man\",
\"body\": \"Some story goes here...\",
\"is_published\": true,
\"tags\": [
\"running\",
\"charity\"
],
\"cover_image\": \"voluptatem\"
}"
const url = new URL(
"https://api.test/api/v1/portal/articles/explicabo/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"title": "Amazing Spider-man",
"body": "Some story goes here...",
"is_published": true,
"tags": [
"running",
"charity"
],
"cover_image": "voluptatem"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Post
requires authentication
Delete blog post.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/articles/quibusdam/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/articles/quibusdam/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Blog Posts
Get paginated blog posts.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/articles?published=1&search=The+Lake&per_page=20&order_by=popular%2Coldest%2Clatest&tag=sports" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/articles"
);
const params = {
"published": "1",
"search": "The Lake",
"per_page": "20",
"order_by": "popular,oldest,latest",
"tag": "sports",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'tags.taggable_id' in 'where clause' (SQL: select count(*) as aggregate from `articles` where (`title` LIKE %The Lake% or `body` LIKE %The Lake% and exists (select * from `tags` where `articles`.`id` = `tags`.`taggable_id` and `tags`.`taggable_type` = App\\Models\\Article and `name` = sports)) and `api_client_id` = 25)",
"exception": "Illuminate\\Database\\QueryException",
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 760,
"trace": [
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 720,
"function": "runQueryCallback",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 422,
"function": "run",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2706,
"function": "select",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2694,
"function": "runSelect",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 3230,
"function": "Illuminate\\Database\\Query\\{closure}",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2695,
"function": "onceWithColumns",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2844,
"function": "get",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2803,
"function": "runPaginationCountQuery",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 891,
"function": "getCountForPagination",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Controllers/ArticleController.php",
"line": 62,
"function": "paginate",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Conditionable/Traits/Conditionable.php",
"line": 34,
"function": "App\\Http\\Controllers\\{closure}",
"class": "App\\Http\\Controllers\\ArticleController",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Controllers/ArticleController.php",
"line": 62,
"function": "when",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
"line": 54,
"function": "index",
"class": "App\\Http\\Controllers\\ArticleController",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
"line": 43,
"function": "callAction",
"class": "Illuminate\\Routing\\Controller",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 260,
"function": "dispatch",
"class": "Illuminate\\Routing\\ControllerDispatcher",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 205,
"function": "runController",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 798,
"function": "run",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/HandleRedirectMiddleware.php",
"line": 40,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\HandleRedirectMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Services/ApiClient/ApiClientSettings.php",
"line": 77,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureApiRequestHostIsValidClient.php",
"line": 31,
"function": "clientRequestAuthorizationHandshake",
"class": "App\\Services\\ApiClient\\ApiClientSettings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureApiRequestHostIsValidClient",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/ClientAuthenticationMiddleware.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\ClientAuthenticationMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 50,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureJsonResponse.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureJsonResponse",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 799,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 776,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 740,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 729,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 190,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 40,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 86,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 165,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 134,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 299,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 287,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 92,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 45,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 209,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 166,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 124,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 71,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 49,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 51,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 37,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 661,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 183,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Command/Command.php",
"line": 312,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 153,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 1022,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 314,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 168,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Application.php",
"line": 102,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 155,
"function": "run",
"class": "Illuminate\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/artisan",
"line": 37,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
}
]
}
Received response:
Request failed with error:
Fetch Post
Retrieve a specific blog post.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/articles/sunt/show" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/articles/sunt/show"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "The article was not found!",
"errors": null
}
Received response:
Request failed with error:
Book Events
Manages booked events on the application
Register for an event (participant) Participants register for events through this endpoint.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/book-events/participants/a/register" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/book-events/participants/a/register"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the registered participant.
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/book-events/participants/temporibus/register" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"eaque\"
}"
const url = new URL(
"https://api.test/api/v1/portal/book-events/participants/temporibus/register"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "eaque"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Careers
Careers
Get Careers Listing.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/careers" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/careers"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_client_careers.site_id' in 'where clause' (SQL: select * from `api_client_careers` where `api_client_careers`.`site_id` is null order by `created_at` desc)",
"exception": "Illuminate\\Database\\QueryException",
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 760,
"trace": [
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 720,
"function": "runQueryCallback",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 422,
"function": "run",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2706,
"function": "select",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2694,
"function": "runSelect",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 3230,
"function": "Illuminate\\Database\\Query\\{closure}",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2695,
"function": "onceWithColumns",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 710,
"function": "get",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 694,
"function": "getModels",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Models/ApiClientCareer.php",
"line": 71,
"function": "get",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 438,
"function": "App\\Models\\{closure}",
"class": "App\\Models\\ApiClientCareer",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php",
"line": 419,
"function": "rememberForever",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php",
"line": 338,
"function": "__call",
"class": "Illuminate\\Cache\\CacheManager",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Models/ApiClientCareer.php",
"line": 71,
"function": "__callStatic",
"class": "Illuminate\\Support\\Facades\\Facade",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Controllers/ApiClientCareerController.php",
"line": 26,
"function": "getCachedCareersCollection",
"class": "App\\Models\\ApiClientCareer",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
"line": 54,
"function": "index",
"class": "App\\Http\\Controllers\\ApiClientCareerController",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
"line": 43,
"function": "callAction",
"class": "Illuminate\\Routing\\Controller",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 260,
"function": "dispatch",
"class": "Illuminate\\Routing\\ControllerDispatcher",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 205,
"function": "runController",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 798,
"function": "run",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/HandleRedirectMiddleware.php",
"line": 40,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\HandleRedirectMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Services/ApiClient/ApiClientSettings.php",
"line": 77,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureApiRequestHostIsValidClient.php",
"line": 31,
"function": "clientRequestAuthorizationHandshake",
"class": "App\\Services\\ApiClient\\ApiClientSettings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureApiRequestHostIsValidClient",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/ClientAuthenticationMiddleware.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\ClientAuthenticationMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 50,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureJsonResponse.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureJsonResponse",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 799,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 776,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 740,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 729,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 190,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 40,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 86,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 165,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 134,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 299,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 287,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 92,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 45,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 209,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 166,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 124,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 71,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 49,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 51,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 37,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 661,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 183,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Command/Command.php",
"line": 312,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 153,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 1022,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 314,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 168,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Application.php",
"line": 102,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 155,
"function": "run",
"class": "Illuminate\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/artisan",
"line": 37,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
}
]
}
Received response:
Request failed with error:
Specific Career
Get Specific Career.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/careers/ullam" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/careers/ullam"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_client_careers.site_id' in 'where clause' (SQL: select * from `api_client_careers` where `ref` = ullam and `api_client_careers`.`site_id` is null limit 1)",
"exception": "Illuminate\\Database\\QueryException",
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 760,
"trace": [
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 720,
"function": "runQueryCallback",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 422,
"function": "run",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2706,
"function": "select",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2694,
"function": "runSelect",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 3230,
"function": "Illuminate\\Database\\Query\\{closure}",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2695,
"function": "onceWithColumns",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 710,
"function": "get",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 694,
"function": "getModels",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php",
"line": 296,
"function": "get",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
"line": 2042,
"function": "first",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/ImplicitRouteBinding.php",
"line": 61,
"function": "resolveRouteBinding",
"class": "Illuminate\\Database\\Eloquent\\Model",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 947,
"function": "resolveForRoute",
"class": "Illuminate\\Routing\\ImplicitRouteBinding",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 41,
"function": "substituteImplicitBindings",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureJsonResponse.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureJsonResponse",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 799,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 776,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 740,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 729,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 190,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 40,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 86,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 165,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 134,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 299,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 287,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 92,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 45,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 209,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 166,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 124,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 71,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 49,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 51,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 37,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 661,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 183,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Command/Command.php",
"line": 312,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 153,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 1022,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 314,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 168,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Application.php",
"line": 102,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 155,
"function": "run",
"class": "Illuminate\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/artisan",
"line": 37,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
}
]
}
Received response:
Request failed with error:
Charities
Manages charities on the application
Paginated charities for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/all?active_membership=1&membership_type=premium&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"quo\",
\"active_membership\": false,
\"page\": 36,
\"per_page\": 74
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/all"
);
const params = {
"active_membership": "1",
"membership_type": "premium",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "quo",
"active_membership": false,
"page": 36,
"per_page": 74
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of charities
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities?membership_type=premium&status=&category=cancer-children-youth&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"illo\",
\"status\": true,
\"page\": 24,
\"per_page\": 65
}"
const url = new URL(
"https://api.test/api/v1/portal/charities"
);
const params = {
"membership_type": "premium",
"status": "0",
"category": "cancer-children-youth",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "illo",
"status": true,
"page": 24,
"per_page": 65
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a charity
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get a charity's details.
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charities/335/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Update charity profile.
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/profile/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"WWF\",
\"email\": \"teampanda@wwf.org.uk\",
\"category\": \"environment-conservation\",
\"support_email\": \"johndoe237@gmail.com\",
\"address\": \"Fourth Floor, Maya House, 134-138 Borough High St\",
\"postcode\": \"SE1 1LB\",
\"city\": \"Swansea\",
\"country\": \"United Kingdom\",
\"phone\": \"+447815176034\",
\"finance_contact_name\": \"porro\",
\"finance_contact_email\": \"xchristiansen@example.com\",
\"show_in_external_feeds\": true,
\"show_in_vmm_external_feeds\": true,
\"external_strapline\": false,
\"password\": \"Sts@2022\"
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/profile/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "WWF",
"email": "teampanda@wwf.org.uk",
"category": "environment-conservation",
"support_email": "johndoe237@gmail.com",
"address": "Fourth Floor, Maya House, 134-138 Borough High St",
"postcode": "SE1 1LB",
"city": "Swansea",
"country": "United Kingdom",
"phone": "+447815176034",
"finance_contact_name": "porro",
"finance_contact_email": "xchristiansen@example.com",
"show_in_external_feeds": true,
"show_in_vmm_external_feeds": true,
"external_strapline": false,
"password": "Sts@2022"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a charity (Soft deletes)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/charities/336/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/336/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Delete a charity (Permanently)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/charities/336/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/336/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Get branding
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/branding" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/branding"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update branding
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/branding" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"primary_color\": \"#3DFF1F\",
\"secondary_color\": \"#FF4A1C\",
\"logo\": \"reprehenderit\"
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/branding"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"primary_color": "#3DFF1F",
"secondary_color": "#FF4A1C",
"logo": "reprehenderit"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get content
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/content" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/content"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update content
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/content" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"mission_values\": \"Qui magna et do dolor cillum fugiat nisi sint ullamco eiusmod est. Sint elit dolore ea officia aute ipsum qui officia. Dolor nisi cillum reprehenderit elit eu ut commodo laboris Lorem aliquip. Excepteur exercitation elit Lorem culpa sit. Consequat consectetur cillum in aute incididunt magna dolor irure reprehenderit ex aute est veniam velit. Reprehenderit non culpa eiusmod duis ad pariatur non qui in incididunt in voluptate est nostrud.\\n Enim amet labore pariatur est dolore qui. Occaecat ipsum aliquip ipsum sit ipsum est nostrud tempor tempor. Pariatur pariatur veniam velit aute ex do laborum sint est deserunt consectetur do exercitation.\",
\"description\": \"<p>In dolor in ad cillum aliquip nostrud. Fugiat exercitation in pariatur commodo id. Quis ullamco nisi non reprehenderit non nisi. Sunt Lorem irure esse sunt velit ut quis elit deserunt consectetur excepteur. Duis nisi fugiat aliquip magna reprehenderit magna. Aliquip magna ad velit sit elit incididunt cupidatat ea commodo elit commodo. Dolor proident amet et duis occaecat irure nulla cillum et tempor.<\\/p>\\n <p>Qui magna et do dolor cillum fugiat nisi sint ullamco eiusmod est. Sint elit dolore ea officia aute ipsum qui officia. Dolor nisi cillum reprehenderit elit eu ut commodo laboris Lorem aliquip. Excepteur exercitation elit Lorem culpa sit. Consequat consectetur cillum in aute incididunt magna dolor irure reprehenderit ex aute est veniam velit. Reprehenderit non culpa eiusmod duis ad pariatur non qui in incididunt in voluptate est nostrud.<\\/p>\",
\"video\": \"https:\\/\\/www.youtube.com\\/watch?v=qRidinG3PAw\",
\"donation_link\": \"http:\\/\\/nader.com\\/illum-necessitatibus-voluptas-enim-amet\",
\"website\": \"http:\\/\\/www.wwf.org.uk\\/\",
\"meta\": {
\"title\": \"The meta title\",
\"description\": \"The meta description\",
\"keywords\": \"dolores\"
}
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/content"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"mission_values": "Qui magna et do dolor cillum fugiat nisi sint ullamco eiusmod est. Sint elit dolore ea officia aute ipsum qui officia. Dolor nisi cillum reprehenderit elit eu ut commodo laboris Lorem aliquip. Excepteur exercitation elit Lorem culpa sit. Consequat consectetur cillum in aute incididunt magna dolor irure reprehenderit ex aute est veniam velit. Reprehenderit non culpa eiusmod duis ad pariatur non qui in incididunt in voluptate est nostrud.\n Enim amet labore pariatur est dolore qui. Occaecat ipsum aliquip ipsum sit ipsum est nostrud tempor tempor. Pariatur pariatur veniam velit aute ex do laborum sint est deserunt consectetur do exercitation.",
"description": "<p>In dolor in ad cillum aliquip nostrud. Fugiat exercitation in pariatur commodo id. Quis ullamco nisi non reprehenderit non nisi. Sunt Lorem irure esse sunt velit ut quis elit deserunt consectetur excepteur. Duis nisi fugiat aliquip magna reprehenderit magna. Aliquip magna ad velit sit elit incididunt cupidatat ea commodo elit commodo. Dolor proident amet et duis occaecat irure nulla cillum et tempor.<\/p>\n <p>Qui magna et do dolor cillum fugiat nisi sint ullamco eiusmod est. Sint elit dolore ea officia aute ipsum qui officia. Dolor nisi cillum reprehenderit elit eu ut commodo laboris Lorem aliquip. Excepteur exercitation elit Lorem culpa sit. Consequat consectetur cillum in aute incididunt magna dolor irure reprehenderit ex aute est veniam velit. Reprehenderit non culpa eiusmod duis ad pariatur non qui in incididunt in voluptate est nostrud.<\/p>",
"video": "https:\/\/www.youtube.com\/watch?v=qRidinG3PAw",
"donation_link": "http:\/\/nader.com\/illum-necessitatibus-voluptas-enim-amet",
"website": "http:\/\/www.wwf.org.uk\/",
"meta": {
"title": "The meta title",
"description": "The meta description",
"keywords": "dolores"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the logo or an image from the charity's images.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/charities/335/images/8/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/images/8/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Get memberships
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/memberships" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/memberships"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get fundraising platform
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/fundraising/platform" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/fundraising/platform"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update fundraising platform
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/fundraising/platform/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"fundraising_platform\": \"custom\",
\"fundraising_platform_url\": \"https:\\/\\/www.justgiving.com\\/wwf\",
\"fundraising_ideas_url\": \"https:\\/\\/www.justgiving.com\\/wwf\"
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/fundraising/platform/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"fundraising_platform": "custom",
"fundraising_platform_url": "https:\/\/www.justgiving.com\/wwf",
"fundraising_ideas_url": "https:\/\/www.justgiving.com\/wwf"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get eventsIncluded (the only_included_charities events the charity is allowed to run).
requires authentication
That is, the events that can only be run by some charities (only_included_charities) for which the charity is among).
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/events/included" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/events/included"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update eventsIncluded (the only_included_charities events the charity is allowed to run).
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charities/335/events/included/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"event_ids\": [
11
]
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/events/included/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"event_ids": [
11
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Toggle external enquiries notification frequency (settings)
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/external/enquiry/notifications/toggle" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"external_enquiry_notification_settings\": \"weekly\"
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/external/enquiry/notifications/toggle"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"external_enquiry_notification_settings": "weekly"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Toggle complete registration notification frequency (settings)
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/complete/registration/notifications/toggle" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"complete_notifications\": \"monthly\"
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/complete/registration/notifications/toggle"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"complete_notifications": "monthly"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Toggle fundraising emails integration settings
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/fundraising-email/integration/toggle" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"fundraising_emails_active\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/fundraising-email/integration/toggle"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"fundraising_emails_active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
toggle charity checkout integration settings
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/charity-checkout/integration/toggle" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"charity_checkout_integration\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/charity-checkout/integration/toggle"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"charity_checkout_integration": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get call notes
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/call-notes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/call-notes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update manager call note.
requires authentication
These are a charity call notes highlights often set by account managers.
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/call-notes/manager/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"manager_call_notes\": \"26\\/07 - Spoke to Fru and he is chasing the invoice payment. 08\\/09 - Good Meeting with Jodie. Went through what to promote and also booked in meeting for bespoke virtual Santa Dash\"
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/call-notes/manager/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"manager_call_notes": "26\/07 - Spoke to Fru and he is chasing the invoice payment. 08\/09 - Good Meeting with Jodie. Went through what to promote and also booked in meeting for bespoke virtual Santa Dash"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Create/update a call note.
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charities/335/call-notes/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"note\": \"26\\/07 - Spoke to Fru and he is chasing the invoice payment\",
\"call\": \"23_months\",
\"status\": \"no_answer\",
\"year\": 2022
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/call-notes/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"note": "26\/07 - Spoke to Fru and he is chasing the invoice payment",
"call": "23_months",
"status": "no_answer",
"year": 2022
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update a call note
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/335/call-notes/8/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"note\": \"26\\/07 - Spoke to Fru and he is chasing the invoice payment\",
\"call\": \"23_months\",
\"status\": \"no_answer\",
\"year\": 2022
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/call-notes/8/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"note": "26\/07 - Spoke to Fru and he is chasing the invoice payment",
"call": "23_months",
"status": "no_answer",
"year": 2022
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a call note
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/charities/335/call-notes/8/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/call-notes/8/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Export Charities.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/export?membership_type=premium&status=&category=cancer-children-youth" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/export"
);
const params = {
"membership_type": "premium",
"status": "0",
"category": "cancer-children-youth",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the invoices of the charity.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/invoices" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/invoices"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create an invoice.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/335/invoices/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/invoices/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the invoice.
requires authentication
Replaces postCreateInvoice method
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charities/335/invoices/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"description\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",
\"charge_id\": \"ch_1CUXhaKhPhk80DoJYypTBUf9\",
\"issue_date\": \"28-05-2024\",
\"due_date\": \"11-06-2024\",
\"price\": 98879.97,
\"pdf\": \"provident\",
\"held\": false,
\"send_on\": \"03-06-2024\"
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/invoices/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"charge_id": "ch_1CUXhaKhPhk80DoJYypTBUf9",
"issue_date": "28-05-2024",
"due_date": "11-06-2024",
"price": 98879.97,
"pdf": "provident",
"held": false,
"send_on": "03-06-2024"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete an invoice and refund the charity.
requires authentication
TODO: Review this implementation after the Participant Model would have been created and while working on the invoice controller.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charities/335/invoices/1/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/335/invoices/1/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Paginated charities for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/charities/all?active_membership=1&membership_type=premium&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"et\",
\"active_membership\": true,
\"page\": 16,
\"per_page\": 27
}"
const url = new URL(
"https://api.test/api/v1/client/charities/all"
);
const params = {
"active_membership": "1",
"membership_type": "premium",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "et",
"active_membership": true,
"page": 16,
"per_page": 27
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
Charity - Client
The list of charities
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/charities?status=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"status\": true,
\"page\": 42,
\"per_page\": 29
}"
const url = new URL(
"https://api.test/api/v1/client/charities"
);
const params = {
"status": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"status": true,
"page": 42,
"per_page": 29
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "The list of charities",
"data": {
"charities": {
"current_page": 42,
"data": [],
"first_page_url": "https://api.test/api/v1/client/charities?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/charities?page=1",
"links": [
{
"url": "https://api.test/api/v1/client/charities?page=41",
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/charities?page=1",
"label": "1",
"active": false
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/charities",
"per_page": 29,
"prev_page_url": "https://api.test/api/v1/client/charities?page=41",
"to": null,
"total": 0,
"query_params": {
"status": true,
"page": 1
}
}
}
}
Received response:
Request failed with error:
Charity Categories
Manages charity categories on the application
Paginated charity categories for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/categories/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of charity categories
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/categories?status=1&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"ut\",
\"status\": true,
\"page\": 72,
\"per_page\": 16
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories"
);
const params = {
"status": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "ut",
"status": true,
"page": 72,
"per_page": 16
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a new charity category
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/categories/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the new charity category
requires authentication
TODO: Scribe considers/submits true & false (boolean values) as strings whenever a file upload is part of the request. Please look deeper into this later and fix the issue on this request.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charities/categories/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Cancer - Children & Youth 237\",
\"status\": false,
\"color\": \"#f0ad00\",
\"meta\": {
\"title\": \"sunt\",
\"description\": \"Aut minus et suscipit.\",
\"keywords\": \"iusto\"
}
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Cancer - Children & Youth 237",
"status": false,
"color": "#f0ad00",
"meta": {
"title": "sunt",
"description": "Aut minus et suscipit.",
"keywords": "iusto"
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get a charity category
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/categories/73/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories/73/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a charity category
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charities/categories/73/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories/73/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a charity category
requires authentication
TODO: Scribe considers/submits true & false (boolean values) as strings whenever a file upload is part of the request. Please look deeper into this later and fix the issue on this request.
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/charities/categories/73/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Cancer - Children & Youth 237\",
\"status\": false,
\"color\": \"#f0ad00\",
\"meta\": {
\"title\": \"id\",
\"description\": \"Fugit quo est qui neque.\",
\"keywords\": \"et\"
}
}"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories/73/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Cancer - Children & Youth 237",
"status": false,
"color": "#f0ad00",
"meta": {
"title": "id",
"description": "Fugit quo est qui neque.",
"keywords": "et"
}
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a charity category
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/charities/categories/73/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charities/categories/73/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Paginated charity categories for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/charities/categories/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/charities/categories/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
Charity Categories - Client
The list of charity categories
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/charities/categories?status=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"status\": true,
\"page\": 23,
\"per_page\": 2
}"
const url = new URL(
"https://api.test/api/v1/client/charities/categories"
);
const params = {
"status": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"status": true,
"page": 23,
"per_page": 2
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "The list of categories",
"data": {
"current_page": 23,
"data": [],
"first_page_url": "https://api.test/api/v1/client/charities/categories?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/charities/categories?page=1",
"links": [
{
"url": "https://api.test/api/v1/client/charities/categories?page=22",
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/charities/categories?page=1",
"label": "1",
"active": false
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/charities/categories",
"per_page": 2,
"prev_page_url": "https://api.test/api/v1/client/charities/categories?page=22",
"to": null,
"total": 0,
"query_params": {
"status": true,
"page": 1
}
}
}
Received response:
Request failed with error:
Get the charities under a category
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/charities/categories/cancer-children-youth" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/charities/categories/cancer-children-youth"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "The charity category was not found!",
"errors": null
}
Received response:
Request failed with error:
Charity Signups (Enquiries)
Manages charity signups (enquiries) on the application
The list of charity signups
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charity-signups?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charity-signups"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a charity signup (enquiry)
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charity-signups/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Lindsey Lodge Hospice and Healthcare\",
\"number\": 3837340,
\"sector\": \"Cancer - General\",
\"website\": \"https:\\/\\/www.againstbreastcancer.org.uk\\/\",
\"address_1\": \"Sir John Mills House, 12 Whitehorse Mews\",
\"address_2\": \"37 Westminster Bridge Road\",
\"city\": \"London\",
\"postcode\": \"SE1 7QD\",
\"contact_name\": \"Paul Kelleman\",
\"contact_email\": \"bernard38@example.com\",
\"contact_phone\": \"+447743780217\",
\"terms_conditions\": true,
\"privacy_policy\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/charity-signups/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Lindsey Lodge Hospice and Healthcare",
"number": 3837340,
"sector": "Cancer - General",
"website": "https:\/\/www.againstbreastcancer.org.uk\/",
"address_1": "Sir John Mills House, 12 Whitehorse Mews",
"address_2": "37 Westminster Bridge Road",
"city": "London",
"postcode": "SE1 7QD",
"contact_name": "Paul Kelleman",
"contact_email": "bernard38@example.com",
"contact_phone": "+447743780217",
"terms_conditions": true,
"privacy_policy": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update a charity signup (enquiry)
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/charity-signups/1/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Lindsey Lodge Hospice and Healthcare\",
\"number\": 3837340,
\"sector\": \"Cancer - General\",
\"website\": \"https:\\/\\/www.againstbreastcancer.org.uk\\/\",
\"address_1\": \"Sir John Mills House, 12 Whitehorse Mews\",
\"address_2\": \"37 Westminster Bridge Road\",
\"city\": \"London\",
\"postcode\": \"SE1 7QD\",
\"contact_name\": \"Paul Kelleman\",
\"contact_email\": \"cruickshank.rolando@example.net\",
\"contact_phone\": \"+447743780217\",
\"terms_conditions\": true,
\"privacy_policy\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/charity-signups/1/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Lindsey Lodge Hospice and Healthcare",
"number": 3837340,
"sector": "Cancer - General",
"website": "https:\/\/www.againstbreastcancer.org.uk\/",
"address_1": "Sir John Mills House, 12 Whitehorse Mews",
"address_2": "37 Westminster Bridge Road",
"city": "London",
"postcode": "SE1 7QD",
"contact_name": "Paul Kelleman",
"contact_email": "cruickshank.rolando@example.net",
"contact_phone": "+447743780217",
"terms_conditions": true,
"privacy_policy": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a charity signup (enquiry)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/charity-signups/1/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charity-signups/1/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Export charity signups (enquiry)
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/charity-signups/export" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/charity-signups/export"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Cities
Manages cities on the application
Paginated cities for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/cities/all?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"ullam\",
\"country\": \"accusantium\",
\"page\": 86,
\"per_page\": 1
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/all"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "ullam",
"country": "accusantium",
"page": 86,
"per_page": 1
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of cities
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/cities?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&faqs=with&order_by=name%3Adesc%2Ccreated_at%3Adesc&drafted=with&deleted=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"nisi\",
\"country\": \"aut\",
\"faqs\": \"with\",
\"page\": 60,
\"per_page\": 8,
\"drafted\": \"without\",
\"deleted\": \"with\",
\"order_by\": [
\"nesciunt\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"faqs": "with",
"order_by": "name:desc,created_at:desc",
"drafted": "with",
"deleted": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "nisi",
"country": "aut",
"faqs": "with",
"page": 60,
"per_page": 8,
"drafted": "without",
"deleted": "with",
"order_by": [
"nesciunt"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a city
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/cities/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/cities/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a city
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/cities/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"city name\",
\"site_id\": 1,
\"region_id\": 1,
\"description\": \"city description\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"nofollow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"accusamus\"
]
}
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"et\"
],
\"is_draft\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "city name",
"site_id": 1,
"region_id": 1,
"description": "city description",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"nofollow"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"accusamus"
]
}
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"et"
],
"is_draft": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get a city's details.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a city
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export cities
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/cities/export?order_by=name%3Adesc%2Ccreated_at%3Adesc&deleted=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"iste\",
\"country\": \"cupiditate\",
\"faqs\": \"without\",
\"page\": 34,
\"per_page\": 71,
\"drafted\": \"with\",
\"deleted\": \"without\",
\"order_by\": [
\"enim\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/export"
);
const params = {
"order_by": "name:desc,created_at:desc",
"deleted": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "iste",
"country": "cupiditate",
"faqs": "without",
"page": 34,
"per_page": 71,
"drafted": "with",
"deleted": "without",
"order_by": [
"enim"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a city
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site_id\": 1,
\"name\": \"city name\",
\"region_id\": 1,
\"description\": \"city description\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"nofollow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
\"sunt\"
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"maiores\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site_id": 1,
"name": "city name",
"region_id": 1,
"description": "city description",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"nofollow"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
"sunt"
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"maiores"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as draft one or many cities
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/cities/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as published one or many cities
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/cities/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many cities
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/cities/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many cities
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/cities/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many cities (Permanently) Only the administrator can delete a city permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/cities/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete the city's image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-d927-4a44-8fec-3daacee89678/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-d927-4a44-8fec-3daacee89678/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQs
requires authentication
Delete multiple City FAQs by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQ Details
requires authentication
Delete multiple City FAQ details by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faq_details_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faq_details_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove faq details image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/expedita/faq-details-image/ut/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/expedita/faq-details-image/ut/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
City Stats
requires authentication
Get City Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/cities/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/cities/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated cities for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/cities/all?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"qui\",
\"country\": \"modi\",
\"page\": 26,
\"per_page\": 19
}"
const url = new URL(
"https://api.test/api/v1/client/cities/all"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "qui",
"country": "modi",
"page": 26,
"per_page": 19
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
Cities - Client
The list of cities
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/cities?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&popular=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"est\",
\"popular\": false,
\"country\": \"ut\",
\"page\": 40,
\"per_page\": 57
}"
const url = new URL(
"https://api.test/api/v1/client/cities"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"popular": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "est",
"popular": false,
"country": "ut",
"page": 40,
"per_page": 57
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"region": [
"The region is invalid."
]
}
}
Received response:
Request failed with error:
Get the events under a city
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/cities/987b93b3-d31c-4530-809b-156e1e7ad80e?category=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&start_date=%2222-02-2018%22&end_date=%2222-02-2023%22&price[]=12&price[]=80&virtual_events=include&skip=6&take=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"nesciunt\",
\"start_date\": \"27-05-2024\",
\"end_date\": \"2083-09-16\",
\"price\": [
5
],
\"region\": \"sint\",
\"address\": \"et\",
\"virtual_events\": \"only\",
\"date\": \"et\",
\"page\": 70,
\"per_page\": 24
}"
const url = new URL(
"https://api.test/api/v1/client/cities/987b93b3-d31c-4530-809b-156e1e7ad80e"
);
const params = {
"category": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"start_date": ""22-02-2018"",
"end_date": ""22-02-2023"",
"price[0]": "12",
"price[1]": "80",
"virtual_events": "include",
"skip": "6",
"take": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "nesciunt",
"start_date": "27-05-2024",
"end_date": "2083-09-16",
"price": [
5
],
"region": "sint",
"address": "et",
"virtual_events": "only",
"date": "et",
"page": 70,
"per_page": 24
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"category": [
"The category is invalid."
],
"end_date": [
"The end date does not match the format d-m-Y."
],
"price": [
"The price must contain 2 items."
],
"region": [
"The region is invalid."
]
}
}
Received response:
Request failed with error:
Combination
Get Combinations
requires authentication
Get paginated list of combinations.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/combinations?drafted=with&deleted=with&term=some+combination+name&per_page=20&meta_keywords=keyword-1&faqs=with&period=1h%2C6h%2C12h%2C24h%2C7d%2C30d%2C90d%2C180d%2C1y%2CAll&year=2022&order_by=name%3Adesc%2Curl%3Aasc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"region\": \"inventore\",
\"city\": \"soluta\",
\"venue\": \"recusandae\",
\"deleted\": \"only\",
\"drafted\": \"without\",
\"order_by\": [
\"qui\"
],
\"term\": \"ctdxsntbjrxwgfomdq\"
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations"
);
const params = {
"drafted": "with",
"deleted": "with",
"term": "some combination name",
"per_page": "20",
"meta_keywords": "keyword-1",
"faqs": "with",
"period": "1h,6h,12h,24h,7d,30d,90d,180d,1y,All",
"year": "2022",
"order_by": "name:desc,url:asc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"region": "inventore",
"city": "soluta",
"venue": "recusandae",
"deleted": "only",
"drafted": "without",
"order_by": [
"qui"
],
"term": "ctdxsntbjrxwgfomdq"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Combination Options
requires authentication
Retrieve combination creation options data.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/combinations/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/combinations/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Combination
requires authentication
Retrieve combination data matching specified ref attribute.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/combinations/dicta/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/combinations/dicta/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a new Combination
requires authentication
A new combination can be created with optional FAQs properties for combinations that requires FAQs.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/combinations/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"FAQs Combination\",
\"description\": \"Some details\",
\"event_category_id\": 1,
\"region_id\": 2,
\"city_id\": 3,
\"venue_id\": 4,
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"velit\"
],
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"nofollow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"excepturi\"
]
}
],
\"is_draft\": false,
\"path\": \"\\/path\\/to\\/combination\"
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "FAQs Combination",
"description": "Some details",
"event_category_id": 1,
"region_id": 2,
"city_id": 3,
"venue_id": 4,
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"velit"
],
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"nofollow"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"excepturi"
]
}
],
"is_draft": false,
"path": "\/path\/to\/combination"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update a Combination
requires authentication
An existing combination can be modified, alongside their FAQs properties when necessary.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/combinations/qui/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"FAQs Combination\",
\"description\": \"Some details\",
\"event_category_id\": 1,
\"region_id\": \"2\",
\"city_id\": 3,
\"venue_id\": 4,
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"voluptatem\"
],
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"noindex\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
\"nihil\"
],
\"path\": \"\\/path\\/to\\/combination\"
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/qui/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "FAQs Combination",
"description": "Some details",
"event_category_id": 1,
"region_id": "2",
"city_id": 3,
"venue_id": 4,
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"voluptatem"
],
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"noindex"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
"nihil"
],
"path": "\/path\/to\/combination"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as published one or many combinations
requires authentication
Publish multiple combinations data by specifying their ids.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/combinations/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as draft one or many combinations
requires authentication
Draft multiple combinations data by specifying their ids.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/combinations/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Many Combinations
requires authentication
Delete multiple combinations data by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/combinations/delete-many?permanently=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"combinations_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/delete-many"
);
const params = {
"permanently": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"combinations_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore Many Combinations
requires authentication
Restore multiple combinations data by specifying their ids.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/combinations/restore-many" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"combinations_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/restore-many"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"combinations_ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQs
requires authentication
Delete multiple Combination FAQs by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/combinations/assumenda/delete-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/assumenda/delete-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQ Details
requires authentication
Delete multiple Combination FAQ details by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/combinations/sit/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/delete-faq-details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faq_details_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/sit/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/delete-faq-details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faq_details_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Meta
requires authentication
Delete Combination Meta.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/combinations/neque/delete-meta" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/combinations/neque/delete-meta"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Combination Stats
requires authentication
Get Combination Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/combinations/stats/summary?year=2022&period=24h&type=cities" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/combinations/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
"type": "cities",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get Client Combinations
Get paginated list of combinations on Client page.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/combinations?term=some+combination+name&per_page=20&popular=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"fuga\",
\"popular\": \"dolore\",
\"per_page\": 25
}"
const url = new URL(
"https://api.test/api/v1/client/combinations"
);
const params = {
"term": "some combination name",
"per_page": "20",
"popular": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "fuga",
"popular": "dolore",
"per_page": 25
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "Combinations List",
"data": {
"combinations": {
"current_page": 1,
"data": [],
"first_page_url": "https://api.test/api/v1/client/combinations?term=some%20combination%20name&per_page=20&popular=1&page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/combinations?term=some%20combination%20name&per_page=20&popular=1&page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/combinations?term=some%20combination%20name&per_page=20&popular=1&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/combinations",
"per_page": 25,
"prev_page_url": null,
"to": null,
"total": 0,
"query_params": {
"term": "some combination name",
"per_page": "20",
"popular": true
}
}
}
}
Received response:
Request failed with error:
Fetch Client Combination
Retrieve combination data matching specified slug attribute on client page.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/combinations/esse?category=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&dates[]=22-02-2018&dates[]=22-10-2023&price[]=12&price[]=80&per_page=10" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"voluptatem\",
\"region\": \"praesentium\",
\"city\": \"voluptate\",
\"venue\": \"minima\",
\"dates\": [
\"27-05-2024\"
],
\"price\": [
12
],
\"address\": \"corporis\",
\"virtual_events\": \"exclude\",
\"date\": \"rerum\",
\"page\": 63,
\"per_page\": 57
}"
const url = new URL(
"https://api.test/api/v1/client/combinations/esse"
);
const params = {
"category": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"dates[0]": "22-02-2018",
"dates[1]": "22-10-2023",
"price[0]": "12",
"price[1]": "80",
"per_page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "voluptatem",
"region": "praesentium",
"city": "voluptate",
"venue": "minima",
"dates": [
"27-05-2024"
],
"price": [
12
],
"address": "corporis",
"virtual_events": "exclude",
"date": "rerum",
"page": 63,
"per_page": 57
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "The category is invalid. (and 5 more errors)",
"errors": {
"category": [
"The category is invalid."
],
"region": [
"The region is invalid."
],
"city": [
"The city is invalid."
],
"venue": [
"The venue is invalid."
],
"dates": [
"The dates must contain 2 items."
],
"price": [
"The price must contain 2 items."
]
}
}
Received response:
Request failed with error:
Fetch Client Combination by path
Retrieve combination data matching specified path attribute.
Example request:
curl --request POST \
"https://api.test/api/v1/client/combinations/fetch-by-path" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"quo\",
\"region\": \"voluptate\",
\"city\": \"voluptates\",
\"venue\": \"nemo\",
\"dates\": [
\"27-05-2024\"
],
\"price\": [
17
],
\"address\": \"quis\",
\"virtual_events\": \"only\",
\"date\": \"doloribus\",
\"page\": 67,
\"per_page\": 52,
\"path\": \"\\/some-region\\/some-city\"
}"
const url = new URL(
"https://api.test/api/v1/client/combinations/fetch-by-path"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "quo",
"region": "voluptate",
"city": "voluptates",
"venue": "nemo",
"dates": [
"27-05-2024"
],
"price": [
17
],
"address": "quis",
"virtual_events": "only",
"date": "doloribus",
"page": 67,
"per_page": 52,
"path": "\/some-region\/some-city"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Fetch Client Combination by path - GET
Retrieve combination data matching specified path attribute.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/combinations//some-region/some-city/fetch-by-path" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"qui\",
\"region\": \"beatae\",
\"city\": \"molestiae\",
\"venue\": \"laborum\",
\"dates\": [
\"27-05-2024\"
],
\"price\": [
8
],
\"address\": \"sit\",
\"virtual_events\": \"only\",
\"date\": \"et\",
\"page\": 36,
\"per_page\": 19
}"
const url = new URL(
"https://api.test/api/v1/client/combinations//some-region/some-city/fetch-by-path"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "qui",
"region": "beatae",
"city": "molestiae",
"venue": "laborum",
"dates": [
"27-05-2024"
],
"price": [
8
],
"address": "sit",
"virtual_events": "only",
"date": "et",
"page": 36,
"per_page": 19
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "The region is invalid. (and 4 more errors)",
"errors": {
"region": [
"The region is invalid."
],
"city": [
"The city is invalid."
],
"venue": [
"The venue is invalid."
],
"dates": [
"The dates must contain 2 items."
],
"price": [
"The price must contain 2 items."
]
}
}
Received response:
Request failed with error:
Dashboard
Dashboard Stats
requires authentication
Get Dashboard Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/dashboard/stats/summary?year=2022&status=eos&category=98677146-d86a-4b10-a694-d79eb66e8220&type=invoices&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/dashboard/stats/summary"
);
const params = {
"year": "2022",
"status": "eos",
"category": "98677146-d86a-4b10-a694-d79eb66e8220",
"type": "invoices",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Dashboard Chart data
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/dashboard/stats/chart?type=invoices&year=2022&status=ipsa&category=98677146-d86a-4b10-a694-d79eb66e8220&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/dashboard/stats/chart"
);
const params = {
"type": "invoices",
"year": "2022",
"status": "ipsa",
"category": "98677146-d86a-4b10-a694-d79eb66e8220",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Dashboard Latest Participants
requires authentication
Get Latest 4 participants
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/dashboard/stats/latest-participants?limit=4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/dashboard/stats/latest-participants"
);
const params = {
"limit": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Endpoints
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/notifications" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/notifications"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/notifications/est/read" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/notifications/est/read"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
GET api/v1/profile/{profile_ref}/view
Example request:
curl --request GET \
--get "https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/view" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/view"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
PATCH api/v1/profile/{profile_ref}/update
Example request:
curl --request PATCH \
"https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
check is user has passphrase matching provided passphrase
Example request:
curl --request POST \
"https://api.test/api/v1/passphrase/verify" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/passphrase/verify"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
allow user create a passphrase
Example request:
curl --request POST \
"https://api.test/api/v1/passphrase/store" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"question\": \"exercitationem\",
\"response\": \"akaanjeddpsxwymricubueyecgfihydktpmlyxbsmet\"
}"
const url = new URL(
"https://api.test/api/v1/passphrase/store"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"question": "exercitationem",
"response": "akaanjeddpsxwymricubueyecgfihydktpmlyxbsmet"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
allow user update passphrase
Example request:
curl --request PATCH \
"https://api.test/api/v1/passphrase/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"question\": \"iste\",
\"response\": \"adwoyxgfbzxgcmlrhtinwoyfvtfmleoekqctzmnfvbvvqcuflymlrxmgwgrgwdualhgxtorrjpp\"
}"
const url = new URL(
"https://api.test/api/v1/passphrase/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"question": "iste",
"response": "adwoyxgfbzxgcmlrhtinwoyfvtfmleoekqctzmnfvbvvqcuflymlrxmgwgrgwdualhgxtorrjpp"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/enquiries" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/enquiries"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Display the specified resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/enquiries/quia" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/enquiries/quia"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/faq-categories" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/faq-categories"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Show the form for creating a new resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/faq-categories/types" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/faq-categories/types"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Display the specified resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/faq-categories/et" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/faq-categories/et"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://api.test/api/v1/faq-categories/voluptatem/store" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"type\": \"events\",
\"description\": \"Voluptatem nostrum velit quibusdam illo consequuntur.\"
}"
const url = new URL(
"https://api.test/api/v1/faq-categories/voluptatem/store"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"type": "events",
"description": "Voluptatem nostrum velit quibusdam illo consequuntur."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update the specified resource in storage.
Example request:
curl --request PATCH \
"https://api.test/api/v1/faq-categories/sint/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"urvn\",
\"type\": \"general\",
\"description\": \"Id labore cupiditate possimus aperiam rerum aut.\"
}"
const url = new URL(
"https://api.test/api/v1/faq-categories/sint/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "urvn",
"type": "general",
"description": "Id labore cupiditate possimus aperiam rerum aut."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"https://api.test/api/v1/faq-categories/minima/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/faq-categories/minima/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/media-libraries" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/media-libraries"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Display the specified resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/media-libraries/est" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/media-libraries/est"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
set-cookie: XSRF-TOKEN=eyJpdiI6IlNpYWZFa09waEhEckloWVhsSDFESnc9PSIsInZhbHVlIjoicEdHcjNDU291Rk5zQ241djViUHkwSzFOTGkwTlc2WFhITDJvMzVVZVNJZzZyaFJXd1RVdkZrQmUxM0xjSlR6ZW9jTmZDWFpMeFkzWnd0d1dSbDNuSnJ5aEthakZXWEhnQ09JdlR5T2hpTkVXa0tKakNIK2l4UlJ2Z0ZWNnU0UnQiLCJtYWMiOiJmOWU2ZjhlOTZiY2I4YmRlODQ3NzU5ZjhmZDBlZTIxYTg3YzIzOWFjMzkyYzE2ZGIxMDNjYzBiMjE1ZmY5OGZmIiwidGFnIjoiIn0%3D; expires=Mon, 27 May 2024 12:55:07 GMT; Max-Age=7200; path=/; samesite=lax; runthrough_session=eyJpdiI6IlJKcXhiNFdUbVhtYUNFOHhESkRyTHc9PSIsInZhbHVlIjoiakZlZU4vbytYa0FrbFJkTngxbUdHUWhBOGdRU2FFem9BM1pxbnRBelorRVc0SjFjaUpPTkN5US92MTNCU3BZdUVzcDhReVc4WER3elF0RTU5cmNJbzZQMnZQNWVNMVhiYUJTbkZEYTc2Sy94Wk5KRnl1aVU5OUl5UjkrMFJHeGMiLCJtYWMiOiIyMTM1ZWZkNGI2MDgxODg4ZWQ0NmFkNDk1OWM3NTNmNjg4M2VjMDliNjk1NTExZWE1NzkyMGExNDBjOTNkYjcyIiwidGFnIjoiIn0%3D; expires=Mon, 27 May 2024 12:55:07 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"status": false,
"message": "The resource was not found!",
"errors": null
}
Received response:
Request failed with error:
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://api.test/api/v1/media-libraries/store" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"cvwulpohchzbfblkaxbosq\",
\"description\": \"Minus reprehenderit qui ut et error.\"
}"
const url = new URL(
"https://api.test/api/v1/media-libraries/store"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "cvwulpohchzbfblkaxbosq",
"description": "Minus reprehenderit qui ut et error."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update the specified resource in storage.
Example request:
curl --request PATCH \
"https://api.test/api/v1/media-libraries/quo/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"pyztprfqvp\",
\"description\": \"Quia tempora totam velit nihil error.\"
}"
const url = new URL(
"https://api.test/api/v1/media-libraries/quo/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "pyztprfqvp",
"description": "Quia tempora totam velit nihil error."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"https://api.test/api/v1/media-libraries/aut/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/media-libraries/aut/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/media-collections" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/media-collections"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Display the specified resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/media-collections/totam" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/media-collections/totam"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
set-cookie: XSRF-TOKEN=eyJpdiI6Ikpta1l2bTB3QzlOSWxWSnp1U1BqU2c9PSIsInZhbHVlIjoiakpONDNxU3BaWDN0enhNdXQ0Q0twa3liWmFxYXJ0aHJaOVFpQkR5b1FySkhMRXk2K1R1aW5EQitkT254alU0ZDgzZHNFM3pnRC9TaGgxcDlSWHNvZnkvRHdYdTVIMTgrWm40MWV6MUlzVmVTMGxRNTF3T3pLdytlaHU4U3NPRzIiLCJtYWMiOiJhY2FhZmY0ZTMzOTY3YTZiYTMwMjhkM2JkZjdmODg0MTNiMzRhMjJkZDg2NTViYzY5ZGEzNzg1YmE3NDkzZTIwIiwidGFnIjoiIn0%3D; expires=Mon, 27 May 2024 12:55:07 GMT; Max-Age=7200; path=/; samesite=lax; runthrough_session=eyJpdiI6InByZGNicTRXQW03eWQwYW9TTFJzaUE9PSIsInZhbHVlIjoiMzZwQXpQWlJmUHJtYWYwME96OXVtTXk3Wi95UG45K0tlcVhwR29ZNDEzSmt6L0tiR3VKdEpLNDlOU2Z3d29WYVdEaldYOXVGVUYyeVlmRXNXSW5pTGszaHVjdVFjNFdRZ1h6cWRtclhCbHdQNnhQWmlHZ0dveGJMOGtBRzhXKzQiLCJtYWMiOiI1M2ViMjQxNzcyMTg5ZjgxODlmZmU1MzkyMGJiMjA1NTVjZjFjOWRlNTljMzE1MTk5MjUwOTc5NGZjNmUxOGE0IiwidGFnIjoiIn0%3D; expires=Mon, 27 May 2024 12:55:07 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"status": false,
"message": "The resource was not found!",
"errors": null
}
Received response:
Request failed with error:
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://api.test/api/v1/media-collections/store" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"dyerbevocspmiwjohdf\",
\"description\": \"Hic tempore dolor iste sunt voluptatem.\"
}"
const url = new URL(
"https://api.test/api/v1/media-collections/store"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "dyerbevocspmiwjohdf",
"description": "Hic tempore dolor iste sunt voluptatem."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update the specified resource in storage.
Example request:
curl --request PATCH \
"https://api.test/api/v1/media-collections/laboriosam/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"ovhdanivjvzynbsn\",
\"description\": \"Rerum aperiam nihil ad quo debitis numquam omnis.\"
}"
const url = new URL(
"https://api.test/api/v1/media-collections/laboriosam/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "ovhdanivjvzynbsn",
"description": "Rerum aperiam nihil ad quo debitis numquam omnis."
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"https://api.test/api/v1/media-collections/error/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/media-collections/error/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Display a listing of the resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/api-clients" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/api-clients"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Display the specified resource.
Example request:
curl --request GET \
--get "https://api.test/api/v1/api-clients/975dc707-8f8b-4cd7-b00a-0bfa60cadb11" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/api-clients/975dc707-8f8b-4cd7-b00a-0bfa60cadb11"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
set-cookie: XSRF-TOKEN=eyJpdiI6Im9sUjBWK0wzeGZMcHhKTGh4cTRva2c9PSIsInZhbHVlIjoiQyt5akJrL1BOOUNxNFl2SGFYOGluMUdxWVFsUFFOQmQzaGdSSTRKaGcxWk5wbDV4NzlYL0VmZnEvcFpVeGI3ZUppR3QyYks2OUgxbWtLRzNLNmd1MS9xVmdGaW9URkFqL0dlTVNsNDRUdlpuU3dTTzB2RGh0T3JEU1lUL2xpQm4iLCJtYWMiOiJiMDYzYjQ5ZWMyNmMyMjk4ZGRjN2MzOTIxMWVjZGNiOGNhNTc1YjBlNjZhNjYyMjkwMjVkY2EyY2MxYTQxNTcxIiwidGFnIjoiIn0%3D; expires=Mon, 27 May 2024 12:55:08 GMT; Max-Age=7200; path=/; samesite=lax; runthrough_session=eyJpdiI6ImNFUC9KcEtjdExzTWU4YURqY0twckE9PSIsInZhbHVlIjoiQUY5OHhNK0IybHlJdW5naENRREx6WldvdzZ6UDJSTFVjVng5aGVOVWI5OVJsUTIxdXZ2UUlnWm1BMkFxMkZnZ3Q4VDJndUtxZkhNSTMzUHBZaWVVUnNqK3R1UGIwdUlrS2NUWmdLVVpXUytRWmFUZExjT0VEY1V2TW5SbEl0c1giLCJtYWMiOiJhYjM0YzY0ZjdmY2FjMDg5MzEzYWQxNjg4OGZhNmE0YTlkZmUzNmVkNzIxZTc1ZDlmN2Y4MTdmYTU3MDJiNTMxIiwidGFnIjoiIn0%3D; expires=Mon, 27 May 2024 12:55:08 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"status": false,
"message": "The resource was not found!",
"errors": null
}
Received response:
Request failed with error:
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://api.test/api/v1/api-clients/store" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"quia\",
\"host\": \"voluptas\",
\"ip\": \"31.143.207.13\",
\"is_active\": true,
\"site_id\": 14
}"
const url = new URL(
"https://api.test/api/v1/api-clients/store"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "quia",
"host": "voluptas",
"ip": "31.143.207.13",
"is_active": true,
"site_id": 14
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"https://api.test/api/v1/api-clients/975dc707-8f8b-4cd7-b00a-0bfa60cadb11/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/api-clients/975dc707-8f8b-4cd7-b00a-0bfa60cadb11/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
GET api/v1/testing
Example request:
curl --request GET \
--get "https://api.test/api/v1/testing" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/testing"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
[]
Received response:
Request failed with error:
Remove faq details image
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/pages/temporibus/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/aliquam/faq-details-image/impedit/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/pages/temporibus/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/aliquam/faq-details-image/impedit/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Remove faq details image
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/combinations/asperiores/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/voluptatem/faq-details-image/rerum/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/combinations/asperiores/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/voluptatem/faq-details-image/rerum/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Store a newly created resource in storage.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/careers/store" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"title\": \"lakjq\",
\"description\": \"Sit ea vero sit maxime.\",
\"link\": \"cc\"
}"
const url = new URL(
"https://api.test/api/v1/portal/careers/store"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"title": "lakjq",
"description": "Sit ea vero sit maxime.",
"link": "cc"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update the specified resource in storage.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/careers/minus/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"title\": \"gouyhzusujsni\",
\"description\": \"Quibusdam enim et earum et tenetur.\",
\"link\": \"x\"
}"
const url = new URL(
"https://api.test/api/v1/portal/careers/minus/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"title": "gouyhzusujsni",
"description": "Quibusdam enim et earum et tenetur.",
"link": "x"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/careers/enim/delete" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/careers/enim/delete"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
GET api/v1/client/user
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/user" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/user"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Enquiries
Manages website enquiries on the application
The list of enquiries
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries?year=2023&status=processed&action=tempore&deleted=with&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&period=24h&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"modi\",
\"status\": \"pending\",
\"action\": \"registration_failed_charity_places_exhausted\",
\"year\": \"2024\",
\"month\": 11,
\"converted\": false,
\"contacted\": false,
\"period\": \"30d\",
\"deleted\": \"with\",
\"order_by\": [
\"minus\"
],
\"page\": 19,
\"per_page\": 25
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries"
);
const params = {
"year": "2023",
"status": "processed",
"action": "tempore",
"deleted": "with",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"period": "24h",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "modi",
"status": "pending",
"action": "registration_failed_charity_places_exhausted",
"year": "2024",
"month": 11,
"converted": false,
"contacted": false,
"period": "30d",
"deleted": "with",
"order_by": [
"minus"
],
"page": 19,
"per_page": 25
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create an enquiry
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit an enquiry
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/qui/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/qui/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export enquiries
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/export?year=2023&status=processed&action=quisquam&deleted=with&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&period=24h&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"possimus\",
\"status\": \"pending\",
\"action\": \"registration_failed_event_places_exhausted\",
\"year\": \"2024\",
\"month\": 5,
\"converted\": false,
\"contacted\": true,
\"period\": \"24h\",
\"deleted\": \"only\",
\"order_by\": [
\"dolore\"
],
\"page\": 39,
\"per_page\": 38
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/export"
);
const params = {
"year": "2023",
"status": "processed",
"action": "quisquam",
"deleted": "with",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"period": "24h",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "possimus",
"status": "pending",
"action": "registration_failed_event_places_exhausted",
"year": "2024",
"month": 5,
"converted": false,
"contacted": true,
"period": "24h",
"deleted": "only",
"order_by": [
"dolore"
],
"page": 39,
"per_page": 38
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Offer the event place to the enquirer.
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/enquiries/quisquam/place/offer" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"fgdhdfgdfhghfafwrrgrete345yh\",
\"payment_status\": \"unpaid\",
\"waive\": \"completely\",
\"waiver\": \"charity\",
\"fee_type\": \"local\",
\"make_default\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/quisquam/place/offer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "fgdhdfgdfhghfafwrrgrete345yh",
"payment_status": "unpaid",
"waive": "completely",
"waiver": "charity",
"fee_type": "local",
"make_default": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Enquiries Stats
requires authentication
Get Enquiries Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/stats/summary?year=2022&status=rerum&category=marathons&type=enquiries&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/stats/summary"
);
const params = {
"year": "2022",
"status": "rerum",
"category": "marathons",
"type": "enquiries",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Enquiries Chart data
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/stats/chart?type=enquiries&year=2022&status=quia&category=marathons&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/stats/chart"
);
const params = {
"type": "enquiries",
"year": "2022",
"status": "quia",
"category": "marathons",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Enquiry Options
Fetch Enquiry Options.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/enquiries/options" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/enquiries/options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "Create an enquiry",
"data": {
"enquiry_types": [
{
"label": "General",
"value": "General"
},
{
"label": "Press",
"value": "Press"
},
{
"label": "Race Entries in the North",
"value": "Race Entries in the North"
},
{
"label": "Race Entries in the Midlands",
"value": "Race Entries in the Midlands"
},
{
"label": "Partnership & Sponsorship Opportunities",
"value": "Partnership & Sponsorship Opportunities"
},
{
"label": "Volunteer Opportunities",
"value": "Volunteer Opportunities"
}
]
}
}
Received response:
Request failed with error:
Contact Us
Handle an enquiry posting from the API client.
Example request:
curl --request POST \
"https://api.test/api/v1/client/enquiries/store" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"enquiry_type\": \"race_entries_north\",
\"full_name\": \"Wendy Bird\",
\"email\": \"user@email.com\",
\"message\": \"I need to make an enquiry...\"
}"
const url = new URL(
"https://api.test/api/v1/client/enquiries/store"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"enquiry_type": "race_entries_north",
"full_name": "Wendy Bird",
"email": "user@email.com",
"message": "I need to make an enquiry..."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Entries
Manages participants entries (registrations) on the application
Get the events of the user (having the participant role)
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/entries?order_by=charity%3Adesc%2Cevent%3Aasc%2Cstatus%3Adesc%2Ccreated_at%3Adesc&period=24h&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"consequatur\",
\"status\": \"incomplete\",
\"year\": \"2024\",
\"month\": 3,
\"page\": 83,
\"per_page\": 19,
\"period\": \"180d\",
\"order_by\": [
\"ab\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/entries"
);
const params = {
"order_by": "charity:desc,event:asc,status:desc,created_at:desc",
"period": "24h",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "consequatur",
"status": "incomplete",
"year": "2024",
"month": 3,
"page": 83,
"per_page": 19,
"period": "180d",
"order_by": [
"ab"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit an entry
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/entries/voluptatem/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/entries/voluptatem/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update an entry
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/entries/97d40d8e-9d33-4f80-9f07-78aea6a59039/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"first_name\": \"Marc\",
\"last_name\": \"Roby AM\",
\"phone\": \"447834418119\",
\"profile\": {
\"gender\": \"male\",
\"dob\": \"18-02-1980\",
\"city\": \"London\",
\"state\": \"England\",
\"address\": \"Chelsea Studios 410-412 Fulham Road., London SW6 1EB, UK\",
\"country\": \"United Kingdom\",
\"postcode\": \"SW6 1EB\",
\"nationality\": \"British\",
\"occupation\": \"Stock Broker\",
\"passport_number\": \"P5508000A\",
\"ethnicity\": \"white_british\"
},
\"weekly_physical_activity\": \"1 - 2 days\",
\"slogan\": \"quod\",
\"club\": \"reprehenderit\",
\"emergency_contact_name\": \"John Doe\",
\"emergency_contact_phone\": \"07851081623\",
\"tshirt_size\": \"xl\",
\"preferred_heat_time\": \"tenetur\",
\"raced_before\": false,
\"speak_with_coach\": false,
\"hear_from_partner_charity\": true,
\"reason_for_participating\": \"sed\",
\"estimated_finish_time\": \"odio\",
\"enable_family_registration\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/entries/97d40d8e-9d33-4f80-9f07-78aea6a59039/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"first_name": "Marc",
"last_name": "Roby AM",
"phone": "447834418119",
"profile": {
"gender": "male",
"dob": "18-02-1980",
"city": "London",
"state": "England",
"address": "Chelsea Studios 410-412 Fulham Road., London SW6 1EB, UK",
"country": "United Kingdom",
"postcode": "SW6 1EB",
"nationality": "British",
"occupation": "Stock Broker",
"passport_number": "P5508000A",
"ethnicity": "white_british"
},
"weekly_physical_activity": "1 - 2 days",
"slogan": "quod",
"club": "reprehenderit",
"emergency_contact_name": "John Doe",
"emergency_contact_phone": "07851081623",
"tshirt_size": "xl",
"preferred_heat_time": "tenetur",
"raced_before": false,
"speak_with_coach": false,
"hear_from_partner_charity": true,
"reason_for_participating": "sed",
"estimated_finish_time": "odio",
"enable_family_registration": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Check if the participant can be transferred to another event
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/entries/ut/verify-transfer" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"975df0ab-6954-4636-8792-fd242aeb7ee9\"
}"
const url = new URL(
"https://api.test/api/v1/portal/entries/ut/verify-transfer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "975df0ab-6954-4636-8792-fd242aeb7ee9"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Transfer the participant to another event
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/entries/quibusdam/transfer" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"975df0ab-6954-4636-8792-fd242aeb7ee9\"
}"
const url = new URL(
"https://api.test/api/v1/portal/entries/quibusdam/transfer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "975df0ab-6954-4636-8792-fd242aeb7ee9"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Download an entry
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/entries/eos/download" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/entries/eos/download"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete one or many participants (Soft delete)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/entries/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"veritatis\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/entries/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"veritatis"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Entries Stats
requires authentication
Get Entries Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/entries/stats/summary?year=2022&category=marathons&type=entries&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/entries/stats/summary"
);
const params = {
"year": "2022",
"category": "marathons",
"type": "entries",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Entries Chart data
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/entries/stats/chart?type=entries&year=2022&category=marathons&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/entries/stats/chart"
);
const params = {
"type": "entries",
"year": "2022",
"category": "marathons",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Event Categories
Manages event categories on the application
Paginated event categories for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"illo\",
\"with_setting_custom_fields\": false,
\"for\": \"entries\",
\"page\": 55,
\"per_page\": 43
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "illo",
"with_setting_custom_fields": false,
"for": "entries",
"page": 55,
"per_page": 43
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of event categories
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories?faqs=with&medals=with&order_by=name%3Adesc%2Cvisibility%3Aasc%2Ccreated_at%3Adesc&drafted=with&deleted=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"explicabo\",
\"visibility\": \"public\",
\"faqs\": \"with\",
\"medals\": \"without\",
\"page\": 4,
\"per_page\": 6,
\"drafted\": \"only\",
\"deleted\": \"only\",
\"order_by\": [
\"inventore\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories"
);
const params = {
"faqs": "with",
"medals": "with",
"order_by": "name:desc,visibility:asc,created_at:desc",
"drafted": "with",
"deleted": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "explicabo",
"visibility": "public",
"faqs": "with",
"medals": "without",
"page": 4,
"per_page": 6,
"drafted": "only",
"deleted": "only",
"order_by": [
"inventore"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a new event category
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the new event category
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/categories/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Marathons\",
\"site_ref\": \"97715e8d-ab6e-4e14-8eb3-c667d2d1e38b\",
\"description\": \"Ut sint nulla modi magni deserunt est.\",
\"color\": \"#f0ad00\",
\"distance_in_km\": 42.195,
\"visibility\": \"public\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"nofollow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"ducimus\"
]
}
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"qui\"
],
\"is_draft\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Marathons",
"site_ref": "97715e8d-ab6e-4e14-8eb3-c667d2d1e38b",
"description": "Ut sint nulla modi magni deserunt est.",
"color": "#f0ad00",
"distance_in_km": 42.195,
"visibility": "public",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"nofollow"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"ducimus"
]
}
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"qui"
],
"is_draft": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get an event category
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit an event category
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update an event category
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site_ref\": \"97715e8d-ab6e-4e14-8eb3-c667d2d1e38b\",
\"name\": \"Marathons\",
\"description\": \"Description of the event category\",
\"color\": \"#f0ad00\",
\"distance_in_km\": 42.195,
\"visibility\": \"public\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"follow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
\"modi\"
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"cupiditate\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site_ref": "97715e8d-ab6e-4e14-8eb3-c667d2d1e38b",
"name": "Marathons",
"description": "Description of the event category",
"color": "#f0ad00",
"distance_in_km": 42.195,
"visibility": "public",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"follow"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
"modi"
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"cupiditate"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or more event categories as draft
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/categories/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or more event categories as published
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/categories/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many event categories
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/categories/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"facere\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"facere"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many event categories
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/categories/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"autem\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"autem"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many event categories (Permanently) Only the administrator can delete an event category permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/categories/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"aut\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"aut"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Export event categories
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/export?order_by=name%3Adesc%2Cvisibility%3Aasc%2Ccreated_at%3Adesc&deleted=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"rem\",
\"visibility\": \"public\",
\"faqs\": \"without\",
\"medals\": \"with\",
\"page\": 19,
\"per_page\": 21,
\"drafted\": \"without\",
\"deleted\": \"without\",
\"order_by\": [
\"et\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/export"
);
const params = {
"order_by": "name:desc,visibility:asc,created_at:desc",
"deleted": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "rem",
"visibility": "public",
"faqs": "without",
"medals": "with",
"page": 19,
"per_page": 21,
"drafted": "without",
"deleted": "without",
"order_by": [
"et"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Remove the event category's image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/categories/earum/image/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/earum/image/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Create an event category's national average
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/numquam/national/average/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/numquam/national/average/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the new event category national average
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/categories/est/national/average/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"gender\": \"male\",
\"year\": \"2022\",
\"time\": \"02:32:15\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/est/national/average/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"gender": "male",
"year": "2022",
"time": "02:32:15"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get an event category national average
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/consequuntur/national/average/mollitia/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/consequuntur/national/average/mollitia/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit an event category national average
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/aut/national/average/adipisci/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/aut/national/average/adipisci/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update an event category national average
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/events/categories/eum/national/average/nulla/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"gender\": \"male\",
\"year\": \"2022\",
\"time\": \"02:32:15\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/eum/national/average/nulla/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"gender": "male",
"year": "2022",
"time": "02:32:15"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get the event category medals.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/debitis/medals" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"sit\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/debitis/medals"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "sit"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete One/Many Faqs
requires authentication
Delete multiple event category FAQS by specifying their ids
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQ Details
requires authentication
Delete multiple Page FAQ details by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faq_details_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faq_details_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove faq details image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/categories/yyuguysavydkbioabionanjkbjboubabibbu/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/voluptas/faq-details-image/minima/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/yyuguysavydkbioabionanjkbjboubabibbu/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/voluptas/faq-details-image/minima/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Event Category Stats
requires authentication
Get Event Category Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/categories/stats/summary?year=2022&status=voluptas&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/stats/summary"
);
const params = {
"year": "2022",
"status": "voluptas",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated event categories for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/categories/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"id\",
\"with_setting_custom_fields\": true,
\"for\": \"entries\",
\"page\": 47,
\"per_page\": 15
}"
const url = new URL(
"https://api.test/api/v1/client/events/categories/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "id",
"with_setting_custom_fields": true,
"for": "entries",
"page": 47,
"per_page": 15
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
Event Categories - Client
The list of event categories
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/categories?popular=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"harum\",
\"popular\": false,
\"page\": 28,
\"per_page\": 34
}"
const url = new URL(
"https://api.test/api/v1/client/events/categories"
);
const params = {
"popular": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "harum",
"popular": false,
"page": 28,
"per_page": 34
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "The list of categories",
"data": {
"event_categories": {
"current_page": 28,
"data": [],
"first_page_url": "https://api.test/api/v1/client/events/categories?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/events/categories?page=1",
"links": [
{
"url": "https://api.test/api/v1/client/events/categories?page=27",
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/events/categories?page=1",
"label": "1",
"active": false
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/events/categories",
"per_page": 34,
"prev_page_url": "https://api.test/api/v1/client/events/categories?page=27",
"to": null,
"total": 0,
"query_params": {
"popular": true,
"page": 1
}
}
}
}
Received response:
Request failed with error:
Get the events under a category
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/categories/marathons?category=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&start_date=%2222-02-2018%22&end_date=%2222-02-2023%22&price[]=12&price[]=80&virtual_events=include&skip=6&take=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"quia\",
\"start_date\": \"27-05-2024\",
\"end_date\": \"2089-11-06\",
\"price\": [
10
],
\"category\": \"non\",
\"region\": \"saepe\",
\"address\": \"autem\",
\"virtual_events\": \"include\",
\"date\": \"dolorum\",
\"page\": 63,
\"per_page\": 90
}"
const url = new URL(
"https://api.test/api/v1/client/events/categories/marathons"
);
const params = {
"category": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"start_date": ""22-02-2018"",
"end_date": ""22-02-2023"",
"price[0]": "12",
"price[1]": "80",
"virtual_events": "include",
"skip": "6",
"take": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "quia",
"start_date": "27-05-2024",
"end_date": "2089-11-06",
"price": [
10
],
"category": "non",
"region": "saepe",
"address": "autem",
"virtual_events": "include",
"date": "dolorum",
"page": 63,
"per_page": 90
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"end_date": [
"The end date does not match the format d-m-Y."
],
"price": [
"The price must contain 2 items."
],
"category": [
"The category is invalid."
],
"region": [
"The region is invalid."
]
}
}
Received response:
Request failed with error:
EventFAQs
Event FAQs
requires authentication
FAQs associated with specified event.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Add new FAQs
requires authentication
Create new FAQs associated with specified event.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/store-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n \\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n \\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n \\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n \\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"nulla\"
]
}
],
\"faqs[]\": \"[[\\\"section\\\": \\\"some section 1\\\", \\\"description\\\": \\\"some description 1\\\", \\\"details\\\": [\\\"question\\\": \\\"some question 1\\\", \\\"answer\\\": \\\"some answer 1\\\"], \\\"images\\\": [\\\"data:image\\/png;base64,iVBORw0...\\\"]]]\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/store-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n \n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n \n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n \n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n \n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"nulla"
]
}
],
"faqs[]": "[[\"section\": \"some section 1\", \"description\": \"some description 1\", \"details\": [\"question\": \"some question 1\", \"answer\": \"some answer 1\"], \"images\": [\"data:image\/png;base64,iVBORw0...\"]]]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update existing FAQs
requires authentication
Update FAQs associated with specified event.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/update-faq" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs\": [
{
\"faq_id\": 26,
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"ut\"
]
}
],
\"faqs[]\": \"[[\\\"faq_id\\\": 1, \\\"section\\\": \\\"some section 1\\\", \\\"description\\\": \\\"some description 1\\\", \\\"details\\\": [\\\"question\\\": \\\"some question 1\\\", \\\"answer\\\": \\\"some answer 1\\\"], \\\"images\\\": [\\\"data:image\\/png;base64,iVBORw0...\\\"]]]\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/update-faq"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs": [
{
"faq_id": 26,
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"ut"
]
}
],
"faqs[]": "[[\"faq_id\": 1, \"section\": \"some section 1\", \"description\": \"some description 1\", \"details\": [\"question\": \"some question 1\", \"answer\": \"some answer 1\"], \"images\": [\"data:image\/png;base64,iVBORw0...\"]]]"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Events
Manages events on the application
Paginated events for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/all?with[value]=categories&with[visibility]=public&active=1&state=live&extra_attributes=%27country%2Cestimated%2Cpartner_event%27&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"quibusdam\",
\"with\": {
\"value\": \"minima\",
\"visibility\": \"public\"
},
\"active\": false,
\"state\": \"live\",
\"extra_attributes\": [
\"enim\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/all"
);
const params = {
"with[value]": "categories",
"with[visibility]": "public",
"active": "1",
"state": "live",
"extra_attributes": "'country,estimated,partner_event'",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "quibusdam",
"with": {
"value": "minima",
"visibility": "public"
},
"active": false,
"state": "live",
"extra_attributes": [
"enim"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of events
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events?state=live&year=2023&status=1&type=standalone&partner_event=1&country=1&faqs=with&medals=with&ids[]=148&ids[]=153&deleted=with&drafted=with&order_by=name%3Aasc%2Cstart_date%3Aasc%2Cend_date%3Adesc&has_third_party_set_up=1&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"et\",
\"status\": true,
\"partner_event\": true,
\"year\": \"2024\",
\"month\": 4,
\"state\": \"expired\",
\"country\": \"sit\",
\"region\": \"amet\",
\"city\": \"aut\",
\"venue\": \"debitis\",
\"type\": \"standalone\",
\"faqs\": \"with\",
\"medals\": \"without\",
\"deleted\": \"without\",
\"drafted\": \"without\",
\"order_by\": [
\"aut\"
],
\"has_third_party_set_up\": false,
\"page\": 65,
\"per_page\": 80
}"
const url = new URL(
"https://api.test/api/v1/portal/events"
);
const params = {
"state": "live",
"year": "2023",
"status": "1",
"type": "standalone",
"partner_event": "1",
"country": "1",
"faqs": "with",
"medals": "with",
"ids[0]": "148",
"ids[1]": "153",
"deleted": "with",
"drafted": "with",
"order_by": "name:asc,start_date:asc,end_date:desc",
"has_third_party_set_up": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "et",
"status": true,
"partner_event": true,
"year": "2024",
"month": 4,
"state": "expired",
"country": "sit",
"region": "amet",
"city": "aut",
"venue": "debitis",
"type": "standalone",
"faqs": "with",
"medals": "without",
"deleted": "without",
"drafted": "without",
"order_by": [
"aut"
],
"has_third_party_set_up": false,
"page": 65,
"per_page": 80
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The upcoming events.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/upcoming?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 43,
\"per_page\": 9
}"
const url = new URL(
"https://api.test/api/v1/portal/events/upcoming"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 43,
"per_page": 9
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create an event
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit an event
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/ut/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/ut/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update the registration fields (mandatory & optional) of an event
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/events/qui/reg-fields/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"reg_first_name\": false,
\"reg_last_name\": false,
\"reg_email\": true,
\"reg_gender\": false,
\"reg_dob\": false,
\"reg_phone\": false,
\"reg_preferred_heat_time\": false,
\"reg_raced_before\": true,
\"reg_estimated_finish_time\": true,
\"reg_tshirt_size\": true,
\"reg_age_on_race_day\": true,
\"reg_month_born_in\": false,
\"reg_nationality\": true,
\"reg_occupation\": true,
\"reg_address\": true,
\"reg_city\": true,
\"reg_state\": false,
\"reg_postcode\": true,
\"reg_country\": true,
\"reg_emergency_contact_name\": false,
\"reg_emergency_contact_phone\": true,
\"reg_passport_number\": true,
\"reg_family_registrations\": false,
\"reg_minimum_age\": 11,
\"born_before\": \"2013-05-27\",
\"reg_ethnicity\": false,
\"reg_weekly_physical_activity\": false,
\"reg_speak_with_coach\": false,
\"reg_hear_from_partner_charity\": true,
\"reg_reason_for_participating\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/events/qui/reg-fields/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"reg_first_name": false,
"reg_last_name": false,
"reg_email": true,
"reg_gender": false,
"reg_dob": false,
"reg_phone": false,
"reg_preferred_heat_time": false,
"reg_raced_before": true,
"reg_estimated_finish_time": true,
"reg_tshirt_size": true,
"reg_age_on_race_day": true,
"reg_month_born_in": false,
"reg_nationality": true,
"reg_occupation": true,
"reg_address": true,
"reg_city": true,
"reg_state": false,
"reg_postcode": true,
"reg_country": true,
"reg_emergency_contact_name": false,
"reg_emergency_contact_phone": true,
"reg_passport_number": true,
"reg_family_registrations": false,
"reg_minimum_age": 11,
"born_before": "2013-05-27",
"reg_ethnicity": false,
"reg_weekly_physical_activity": false,
"reg_speak_with_coach": false,
"reg_hear_from_partner_charity": true,
"reg_reason_for_participating": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark an event as published
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark an event as draft
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many events (Soft delete)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"quia\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"quia"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many events
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"iusto\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"iusto"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many events (Permanently) Only the administrator can delete an event permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"similique\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"similique"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the event image or an image from the event's gallery.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/ut/images/97ad9df6-d927-4a44-8fec-3daacee89678/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/ut/images/97ad9df6-d927-4a44-8fec-3daacee89678/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Duplicate an event
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/cupiditate/duplicate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/cupiditate/duplicate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Archive an event
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/voluptatem/archive" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/voluptatem/archive"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Archive multiple events
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/archive" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"event_refs\": [
\"dolorem\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/archive"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"event_refs": [
"dolorem"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Export events
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/export?state=live&year=2023&status=1&type=rolling%2C+standalone&partner_event=1&ids[]=148&ids[]=153&deleted=with&order_by=name%3Aasc%2Cstart_date%3Aasc%2Cend_date%3Adesc&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"qui\",
\"status\": false,
\"partner_event\": true,
\"year\": \"2024\",
\"month\": 7,
\"state\": \"live\",
\"country\": \"quia\",
\"region\": \"sint\",
\"city\": \"autem\",
\"venue\": \"omnis\",
\"type\": \"rolling\",
\"faqs\": \"without\",
\"medals\": \"with\",
\"deleted\": \"only\",
\"drafted\": \"with\",
\"order_by\": [
\"doloremque\"
],
\"has_third_party_set_up\": true,
\"page\": 84,
\"per_page\": 86
}"
const url = new URL(
"https://api.test/api/v1/portal/events/export"
);
const params = {
"state": "live",
"year": "2023",
"status": "1",
"type": "rolling, standalone",
"partner_event": "1",
"ids[0]": "148",
"ids[1]": "153",
"deleted": "with",
"order_by": "name:asc,start_date:asc,end_date:desc",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "qui",
"status": false,
"partner_event": true,
"year": "2024",
"month": 7,
"state": "live",
"country": "quia",
"region": "sint",
"city": "autem",
"venue": "omnis",
"type": "rolling",
"faqs": "without",
"medals": "with",
"deleted": "only",
"drafted": "with",
"order_by": [
"doloremque"
],
"has_third_party_set_up": true,
"page": 84,
"per_page": 86
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The charities summary for an event (grouped by it's event categories)
requires authentication
TODO: @tsaffi - Revise this logic based on the similar revision made on SFC
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/asperiores/charity/summary" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/asperiores/charity/summary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Toggle charity total places notifications Whether or not to notify a charity when it's availble places reduces to certain threshold values.
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/events/qui/charity/97ad9df6-bc08-4729-b95e-3671dc6192c2/totalPlacesNotifications/toggle" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"notify\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/events/qui/charity/97ad9df6-bc08-4729-b95e-3671dc6192c2/totalPlacesNotifications/toggle"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"notify": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Add an event to promotional pages
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/vel/promotionalPages/add" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/vel/promotionalPages/add"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the event's custom fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/earum/custom-fields" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/earum/custom-fields"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create an event custom field for registration
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/cum/custom-field/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/cum/custom-field/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store an event custom field for registration
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/quaerat/custom-field/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Marital Status\",
\"type\": \"select\",
\"status\": false,
\"rule\": \"required\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/quaerat/custom-field/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Marital Status",
"type": "select",
"status": false,
"rule": "required"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Edit an event custom field for registration
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/odit/custom-field/voluptas/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/odit/custom-field/voluptas/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update an event custom field for registration
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/events/nulla/custom-field/sit/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Marital Status\",
\"type\": \"select\",
\"status\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/events/nulla/custom-field/sit/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Marital Status",
"type": "select",
"status": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Toggle the status of a custom field for registration
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/events/ea/custom-field/est/status/toggle" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"status\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/events/ea/custom-field/est/status/toggle"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"status": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get the event's partners (third party integration).
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/laborum/partners" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"nesciunt\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/laborum/partners"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "nesciunt"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create an event's partner (third party integration)
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/enim/partners/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/enim/partners/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit an event's partner (third party integration)
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/a/partners/97ad9df6-bc08-4729-b95e-3671dc6192c2/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/a/partners/97ad9df6-bc08-4729-b95e-3671dc6192c2/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete one or many event partners (third party integration)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/illum/partners/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"vero\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/illum/partners/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"vero"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get the event's medals.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/numquam/medals" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"aut\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/numquam/medals"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "aut"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete One/Many FAQs
requires authentication
Delete multiple FAQs from an event.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs_ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs_ids": [
1,
2,
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQ Details
requires authentication
Delete multiple Event FAQ details by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faq_details_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/events/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faq_details_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove faq details image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/aliquid/faq-details-image/ea/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/qwertyuiopfdssdfghj/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/aliquid/faq-details-image/ea/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Event Stats
requires authentication
Get Event Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/stats/summary?year=2022&status=a&category=98677146-d86a-4b10-a694-d79eb66e8220&type=invoices&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/stats/summary"
);
const params = {
"year": "2022",
"status": "a",
"category": "98677146-d86a-4b10-a694-d79eb66e8220",
"type": "invoices",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Event Chart data
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/stats/chart?type=invoices&year=2022&status=eius&category=98677146-d86a-4b10-a694-d79eb66e8220&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/stats/chart"
);
const params = {
"type": "invoices",
"year": "2022",
"status": "eius",
"category": "98677146-d86a-4b10-a694-d79eb66e8220",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated events for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/all?with[value]=categories&with[visibility]=public&active=1&state=live&extra_attributes=%27country%2Cestimated%2Cpartner_event%27&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"officia\",
\"with\": {
\"value\": \"porro\",
\"visibility\": \"public\"
},
\"active\": true,
\"state\": \"expired\",
\"extra_attributes\": [
\"enim\"
]
}"
const url = new URL(
"https://api.test/api/v1/client/events/all"
);
const params = {
"with[value]": "categories",
"with[visibility]": "public",
"active": "1",
"state": "live",
"extra_attributes": "'country,estimated,partner_event'",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "officia",
"with": {
"value": "porro",
"visibility": "public"
},
"active": true,
"state": "expired",
"extra_attributes": [
"enim"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
Events - Client
The events on the application
The list of events
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events?category=marathons&start_date=%2222-02-2018%22&end_date=%2222-02-2023%22&price[]=12&price[]=80&radius[]=12&radius[]=80&virtual_events=include&skip=6&take=3&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"excepturi\",
\"start_date\": \"27-05-2024\",
\"end_date\": \"2047-01-15\",
\"price\": [
5
],
\"region\": \"dolorem\",
\"location\": {
\"latitude\": 6560513.010890206,
\"longitude\": 247161
},
\"radius\": [
10
],
\"virtual_events\": \"exclude\",
\"date\": \"et\",
\"skip\": 9,
\"take\": 1,
\"page\": 82,
\"per_page\": 32,
\"image_versions\": [
\"mobile\"
]
}"
const url = new URL(
"https://api.test/api/v1/client/events"
);
const params = {
"category": "marathons",
"start_date": ""22-02-2018"",
"end_date": ""22-02-2023"",
"price[0]": "12",
"price[1]": "80",
"radius[0]": "12",
"radius[1]": "80",
"virtual_events": "include",
"skip": "6",
"take": "3",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "excepturi",
"start_date": "27-05-2024",
"end_date": "2047-01-15",
"price": [
5
],
"region": "dolorem",
"location": {
"latitude": 6560513.010890206,
"longitude": 247161
},
"radius": [
10
],
"virtual_events": "exclude",
"date": "et",
"skip": 9,
"take": 1,
"page": 82,
"per_page": 32,
"image_versions": [
"mobile"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"category": [
"The category is invalid."
],
"end_date": [
"The end date does not match the format d-m-Y."
],
"price": [
"The price must contain 2 items."
],
"region": [
"The region is invalid."
],
"radius": [
"The radius must contain 2 items."
]
}
}
Received response:
Request failed with error:
The events calendar.
Gets events for the requested month alongside those for the previous and the next month.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/calendar?month_year=11-2022&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"month_year\": \"05-2024\",
\"name\": \"eum\",
\"category\": \"doloremque\",
\"region\": \"odio\",
\"city\": \"adipisci\",
\"venue\": \"veritatis\",
\"experience\": \"est\",
\"page\": 19,
\"per_page\": 26
}"
const url = new URL(
"https://api.test/api/v1/client/events/calendar"
);
const params = {
"month_year": "11-2022",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"month_year": "05-2024",
"name": "eum",
"category": "doloremque",
"region": "odio",
"city": "adipisci",
"venue": "veritatis",
"experience": "est",
"page": 19,
"per_page": 26
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"category": [
"The category is invalid."
],
"region": [
"The region is invalid."
],
"city": [
"The city is invalid."
],
"venue": [
"The venue is invalid."
],
"experience": [
"The experience is invalid."
]
}
}
Received response:
Request failed with error:
The upcoming events.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/upcoming?page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"date\": \"velit\",
\"page\": 19,
\"per_page\": 27
}"
const url = new URL(
"https://api.test/api/v1/client/events/upcoming"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"date": "velit",
"page": 19,
"per_page": 27
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "The list of upcoming events",
"data": {
"events": {
"current_page": 19,
"data": [],
"first_page_url": "https://api.test/api/v1/client/events/upcoming?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/events/upcoming?page=1",
"links": [
{
"url": "https://api.test/api/v1/client/events/upcoming?page=18",
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/events/upcoming?page=1",
"label": "1",
"active": false
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/events/upcoming",
"per_page": 27,
"prev_page_url": "https://api.test/api/v1/client/events/upcoming?page=18",
"to": null,
"total": 0,
"query_params": {
"page": 1
}
}
}
}
Received response:
Request failed with error:
The next events.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/next?page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 1,
\"per_page\": 10,
\"image_versions\": [
\"mobile\"
]
}"
const url = new URL(
"https://api.test/api/v1/client/events/next"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 1,
"per_page": 10,
"image_versions": [
"mobile"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "The list of next events",
"data": {
"events": {
"current_page": 1,
"data": [],
"first_page_url": "https://api.test/api/v1/client/events/next?page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/events/next?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/events/next?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/events/next",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0,
"query_params": {
"page": 1
}
}
}
}
Received response:
Request failed with error:
The most popular events.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/popular?page=1&image_versions[]=consequatur" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 1,
\"per_page\": 10,
\"image_versions\": [
\"card\"
]
}"
const url = new URL(
"https://api.test/api/v1/client/events/popular"
);
const params = {
"page": "1",
"image_versions[0]": "consequatur",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 1,
"per_page": 10,
"image_versions": [
"card"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "The list of popular events",
"data": {
"current_page": 1,
"data": [],
"first_page_url": "https://api.test/api/v1/client/events/popular?image_versions%5B0%5D=consequatur&page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/events/popular?image_versions%5B0%5D=consequatur&page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/events/popular?image_versions%5B0%5D=consequatur&page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/events/popular",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0,
"query_params": {
"page": 1,
"image_versions": [
"consequatur"
]
}
}
}
Received response:
Request failed with error:
Get an event's details.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/events/quas" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/client/events/quas"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "No result(s) found.",
"errors": null
}
Received response:
Request failed with error:
Checkout on Lets Do This
Example request:
curl --request POST \
"https://api.test/api/v1/client/events/ldt/checkout" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ecetps\": \"a\",
\"email\": \"jameswhite@gmail.com\"
}"
const url = new URL(
"https://api.test/api/v1/client/events/ldt/checkout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ecetps": "a",
"email": "jameswhite@gmail.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Experience
Get Experiences
requires authentication
Endpoint lists available experiences.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/experiences?order_by=name%3Aasc%2Ccreated_at%3Aasc&drafted=with&deleted=with&per_page=20&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"animi\",
\"page\": 50,
\"per_page\": 45,
\"drafted\": \"without\",
\"deleted\": \"only\",
\"order_by\": [
\"impedit\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences"
);
const params = {
"order_by": "name:asc,created_at:asc",
"drafted": "with",
"deleted": "with",
"per_page": "20",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "animi",
"page": 50,
"per_page": 45,
"drafted": "without",
"deleted": "only",
"order_by": [
"impedit"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Show Experience
requires authentication
Retrieve info about specified experience.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/experiences/9762db71-f5a6-41c4-913e-90b8aebad733/show" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/experiences/9762db71-f5a6-41c4-913e-90b8aebad733/show"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Add Experience
requires authentication
Add a new experience to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/experiences/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Atmosphere\",
\"values\": [
\"Amazing\",
\"Unbelievable\",
\"Exciting\"
],
\"icon\": \"dolorum\",
\"is_draft\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Atmosphere",
"values": [
"Amazing",
"Unbelievable",
"Exciting"
],
"icon": "dolorum",
"is_draft": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update Experience
requires authentication
Update existing experience.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/experiences/9762db71-f5a6-41c4-913e-90b8aebad733/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Atmosphere\",
\"values\": [
\"Amazing\",
\"Unbelievable\",
\"Exciting\"
],
\"icon\": \"alias\"
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences/9762db71-f5a6-41c4-913e-90b8aebad733/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Atmosphere",
"values": [
"Amazing",
"Unbelievable",
"Exciting"
],
"icon": "alias"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Experience
requires authentication
Deleting experience.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/experiences/9762db71-f5a6-41c4-913e-90b8aebad733/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/experiences/9762db71-f5a6-41c4-913e-90b8aebad733/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or more experiences as draft
requires authentication
Drafting experience.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/experiences/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or more experiences as published
requires authentication
Publishing experience.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/experiences/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Experiences Multi-deletion
requires authentication
Deleting Multiple Experiences
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/experiences/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"experiences\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"experiences": [
1,
2,
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore Experience
requires authentication
restoring experience.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/experiences/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"experiences\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"experiences": [
1,
2,
3
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Experiences Permanent Multi-deletion
Deleting Multiple Experiences Permanently
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/experiences/delete/force" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"experiences\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/experiences/delete/force"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"experiences": [
1,
2,
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Experience Stats
requires authentication
Get Experience Stats Summary. s
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/experiences/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/experiences/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get Event Experiences
requires authentication
Endpoint lists available experiences for a specified event.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/9762db71-f5a6-41c4-913e-90b8aebad733/experiences" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/events/9762db71-f5a6-41c4-913e-90b8aebad733/experiences"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Add/Update Event Experience
requires authentication
Create a new event experience.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/9762db71-f5a6-41c4-913e-90b8aebad733/add-experience" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"experience\": \"Atmosphere\",
\"value\": \"Amazing\",
\"description\": \"In impedit non odio.\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/9762db71-f5a6-41c4-913e-90b8aebad733/add-experience"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"experience": "Atmosphere",
"value": "Amazing",
"description": "In impedit non odio."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove Event Experience(s)
requires authentication
Remove experiences from a single event.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/events/9762db71-f5a6-41c4-913e-90b8aebad733/remove-experiences" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"experiences\": [
20
],
\"experiences[]\": \"soluta\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/9762db71-f5a6-41c4-913e-90b8aebad733/remove-experiences"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"experiences": [
20
],
"experiences[]": "soluta"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get Experiences
requires authentication
Endpoint lists available experiences.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/experiences?order_by=name%3Aasc%2Ccreated_at%3Aasc&drafted=with&deleted=with&per_page=20&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"aperiam\",
\"page\": 1,
\"per_page\": 19,
\"drafted\": \"only\",
\"deleted\": \"without\",
\"order_by\": [
\"ut\"
]
}"
const url = new URL(
"https://api.test/api/v1/client/experiences"
);
const params = {
"order_by": "name:asc,created_at:asc",
"drafted": "with",
"deleted": "with",
"per_page": "20",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "aperiam",
"page": 1,
"per_page": 19,
"drafted": "only",
"deleted": "without",
"order_by": [
"ut"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
External Enquries
Manages external enquiries on the application
The list of external enquiries
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/external?year=2023&status=pending&deleted=with&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&period=24h&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"atque\",
\"status\": \"processed\",
\"year\": \"2024\",
\"month\": 5,
\"converted\": false,
\"contacted\": false,
\"period\": \"6h\",
\"deleted\": \"only\",
\"order_by\": [
\"ut\"
],
\"page\": 56,
\"per_page\": 21
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external"
);
const params = {
"year": "2023",
"status": "pending",
"deleted": "with",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"period": "24h",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "atque",
"status": "processed",
"year": "2024",
"month": 5,
"converted": false,
"contacted": false,
"period": "6h",
"deleted": "only",
"order_by": [
"ut"
],
"page": 56,
"per_page": 21
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create an external enquiry
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/external/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store an external enquiry
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/enquiries/external/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"email\": \"orville42@example.net\",
\"first_name\": \"James\",
\"last_name\": \"White\",
\"name\": \"illo\",
\"phone\": \"+447849675382\",
\"postcode\": \"dolorem\",
\"address\": \"qui\",
\"city\": \"labore\",
\"region\": \"ducimus\",
\"country\": \"quam\",
\"gender\": \"male\",
\"dob\": \"27-05-2024\",
\"emergency_contact_name\": \"Mary Lane\",
\"emergency_contact_phone\": \"+447896884785\",
\"emergency_contact_relationship\": \"Spouse\",
\"comments\": \"odit\",
\"site\": \"hsid0du23-e3hidqwidvu\",
\"event\": \"uguygsuyguusyuuyh\",
\"partner_channel\": \"ut\",
\"event_category_event_third_party\": \"et\",
\"channel_record_id\": \"5fb519821e28346daef1a9e5\",
\"contacted\": false,
\"converted\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"email": "orville42@example.net",
"first_name": "James",
"last_name": "White",
"name": "illo",
"phone": "+447849675382",
"postcode": "dolorem",
"address": "qui",
"city": "labore",
"region": "ducimus",
"country": "quam",
"gender": "male",
"dob": "27-05-2024",
"emergency_contact_name": "Mary Lane",
"emergency_contact_phone": "+447896884785",
"emergency_contact_relationship": "Spouse",
"comments": "odit",
"site": "hsid0du23-e3hidqwidvu",
"event": "uguygsuyguusyuuyh",
"partner_channel": "ut",
"event_category_event_third_party": "et",
"channel_record_id": "5fb519821e28346daef1a9e5",
"contacted": false,
"converted": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Edit an external enquiry
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/external/nihil/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/nihil/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export enquiries
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/external/export?year=2023&status=pending&deleted=with&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&period=24h&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"sunt\",
\"status\": \"pending\",
\"year\": \"2024\",
\"month\": 3,
\"converted\": true,
\"contacted\": true,
\"period\": \"1y\",
\"deleted\": \"without\",
\"order_by\": [
\"quas\"
],
\"page\": 56,
\"per_page\": 82
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/export"
);
const params = {
"year": "2023",
"status": "pending",
"deleted": "with",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"period": "24h",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "sunt",
"status": "pending",
"year": "2024",
"month": 3,
"converted": true,
"contacted": true,
"period": "1y",
"deleted": "without",
"order_by": [
"quas"
],
"page": 56,
"per_page": 82
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update an external enquiry
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/enquiries/external/iste/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"email\": \"umcdermott@example.net\",
\"first_name\": \"James\",
\"last_name\": \"White\",
\"phone\": \"+447849675382\",
\"postcode\": \"consequatur\",
\"address\": \"aliquid\",
\"city\": \"voluptas\",
\"region\": \"aut\",
\"country\": \"exercitationem\",
\"gender\": \"male\",
\"dob\": \"27-05-2024\",
\"emergency_contact_name\": \"Mary Lane\",
\"emergency_contact_phone\": \"+447896884785\",
\"emergency_contact_relationship\": \"Spouse\",
\"comments\": \"aspernatur\",
\"site\": \"tyf768t0p7wy879oywi\",
\"event\": \"uguygsuyguusyuuyh\",
\"channel_record_id\": \"5fb519821e28346daef1a9e5\",
\"contacted\": true,
\"converted\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/iste/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"email": "umcdermott@example.net",
"first_name": "James",
"last_name": "White",
"phone": "+447849675382",
"postcode": "consequatur",
"address": "aliquid",
"city": "voluptas",
"region": "aut",
"country": "exercitationem",
"gender": "male",
"dob": "27-05-2024",
"emergency_contact_name": "Mary Lane",
"emergency_contact_phone": "+447896884785",
"emergency_contact_relationship": "Spouse",
"comments": "aspernatur",
"site": "tyf768t0p7wy879oywi",
"event": "uguygsuyguusyuuyh",
"channel_record_id": "5fb519821e28346daef1a9e5",
"contacted": true,
"converted": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Offer the event place to the enquirer.
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/enquiries/external/nulla/place/offer" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"gasghvjhavasvgjhvghvggjyyhvx\",
\"payment_status\": \"unpaid\",
\"waive\": \"completely\",
\"waiver\": \"charity\",
\"fee_type\": \"local\",
\"make_default\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/nulla/place/offer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "gasghvjhavasvgjhvghvggjyyhvx",
"payment_status": "unpaid",
"waive": "completely",
"waiver": "charity",
"fee_type": "local",
"make_default": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
External Enquiries Stats
requires authentication
Get External Enquiries Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/external/stats/summary?year=2022&status=iste&category=marathons&type=enquiries&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/stats/summary"
);
const params = {
"year": "2022",
"status": "iste",
"category": "marathons",
"type": "enquiries",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
External Enquries Chart data
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/enquiries/external/stats/chart?type=enquiries&year=2022&status=consequuntur&category=marathons&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/enquiries/external/stats/chart"
);
const params = {
"type": "enquiries",
"year": "2022",
"status": "consequuntur",
"category": "marathons",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
FAQs
FAQs Page
API to handel https://runthrough.runthroughhub.com/faqs.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/faqs" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/faqs"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'path' in 'where clause' (SQL: select * from `faqs` where ((`faqs`.`faqsable_type` = App\\Models\\Page and exists (select * from `pages` where `faqs`.`faqsable_id` = `pages`.`id` and `path` = /faqs and `pages`.`deleted_at` is null and `pages`.`drafted_at` is null and `pages`.`site_id` is null))))",
"exception": "Illuminate\\Database\\QueryException",
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 760,
"trace": [
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 720,
"function": "runQueryCallback",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 422,
"function": "run",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2706,
"function": "select",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2694,
"function": "runSelect",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 3230,
"function": "Illuminate\\Database\\Query\\{closure}",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2695,
"function": "onceWithColumns",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 710,
"function": "get",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 694,
"function": "getModels",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Controllers/FaqController.php",
"line": 49,
"function": "get",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Cache/Repository.php",
"line": 397,
"function": "App\\Http\\Controllers\\{closure}",
"class": "App\\Http\\Controllers\\FaqController",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php",
"line": 419,
"function": "remember",
"class": "Illuminate\\Cache\\Repository",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php",
"line": 338,
"function": "__call",
"class": "Illuminate\\Cache\\CacheManager",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Controllers/FaqController.php",
"line": 50,
"function": "__callStatic",
"class": "Illuminate\\Support\\Facades\\Facade",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
"line": 54,
"function": "index",
"class": "App\\Http\\Controllers\\FaqController",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
"line": 43,
"function": "callAction",
"class": "Illuminate\\Routing\\Controller",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 260,
"function": "dispatch",
"class": "Illuminate\\Routing\\ControllerDispatcher",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 205,
"function": "runController",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 798,
"function": "run",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/HandleRedirectMiddleware.php",
"line": 40,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\HandleRedirectMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Services/ApiClient/ApiClientSettings.php",
"line": 77,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureApiRequestHostIsValidClient.php",
"line": 31,
"function": "clientRequestAuthorizationHandshake",
"class": "App\\Services\\ApiClient\\ApiClientSettings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureApiRequestHostIsValidClient",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/ClientAuthenticationMiddleware.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\ClientAuthenticationMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 50,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureJsonResponse.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureJsonResponse",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 799,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 776,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 740,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 729,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 190,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 40,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 86,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 165,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 134,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 299,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 287,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 92,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 45,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 209,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 166,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 124,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 71,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 49,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 51,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 37,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 661,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 183,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Command/Command.php",
"line": 312,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 153,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 1022,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 314,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 168,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Application.php",
"line": 102,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 155,
"function": "run",
"class": "Illuminate\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/artisan",
"line": 37,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
}
]
}
Received response:
Request failed with error:
File
Manages files download on the application
Update a file's details
Example request:
curl --request PATCH \
"https://api.test/api/v1/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/update" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"title\": \"et\",
\"alt\": \"dolore\",
\"caption\": \"sit\"
}"
const url = new URL(
"https://api.test/api/v1/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"title": "et",
"alt": "dolore",
"caption": "sit"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Download file from public/private directory
Example request:
curl --request GET \
--get "https://api.test/api/v1/download/https://test.sportforcharity.com/storage/uploads/media/images/kvWpjp9km1JECSAD.png" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/download/https://test.sportforcharity.com/storage/uploads/media/images/kvWpjp9km1JECSAD.png"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "The resource was not found!"
}
Received response:
Request failed with error:
Finance
Handles all finance related operations
Get the meta data
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/finances/meta" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/finances/meta"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the balance of the user's wallet
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/finances/balance" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/finances/balance"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the balance of the infinite accounts of the user
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/finances/balance/infinite" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/finances/balance/infinite"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the balance of the finite accounts of the user
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/finances/balance/finite" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/finances/balance/finite"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the history of the different account types
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/finances/accounts/finite/history?valid_from=%2222-02-2023%22&valid_to=%2222-02-2023%22&deleted=with&order_by=created_at%3Aasc%2Cvalid_from%3Aasc%2Cvalid_to%3Adesc" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"et\",
\"account\": \"velit\",
\"status\": \"active\",
\"deleted\": \"with\",
\"order_by\": [
\"iure\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/finances/accounts/finite/history"
);
const params = {
"valid_from": ""22-02-2023"",
"valid_to": ""22-02-2023"",
"deleted": "with",
"order_by": "created_at:asc,valid_from:asc,valid_to:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "et",
"account": "velit",
"status": "active",
"deleted": "with",
"order_by": [
"iure"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Identifier
Generate Identifier
Generate Unique Identifier for Request API Request User. The returned value will be used to set X-Platform-User-Identifier-Key on header.
Example request:
curl --request GET \
--get "https://api.test/api/v1/get-identifier-token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/get-identifier-token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "Identifier generated.",
"data": {
"identifier": "RUNTHROUGH.v1.9c2488f0-5698-490e-8570-92364f5a56b9.1716807302"
}
}
Received response:
Request failed with error:
Invoices
Manages invoices on the application
The list of invoices
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices?type=participant_registration&price[]=12&price[]=80&period=24h&deleted=with&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"type\": \"charity_membership\",
\"status\": \"transferred\",
\"held\": false,
\"year\": \"2024\",
\"month\": 10,
\"price\": [
10
],
\"term\": \"quia\",
\"page\": 21,
\"per_page\": 9,
\"period\": \"6h\",
\"deleted\": \"with\",
\"order_by\": [
\"laborum\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices"
);
const params = {
"type": "participant_registration",
"price[0]": "12",
"price[1]": "80",
"period": "24h",
"deleted": "with",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"type": "charity_membership",
"status": "transferred",
"held": false,
"year": "2024",
"month": 10,
"price": [
10
],
"term": "quia",
"page": 21,
"per_page": 9,
"period": "6h",
"deleted": "with",
"order_by": [
"laborum"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit an invoice
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/975f9415-1e07-4499-b9eb-54f0ed9e9043/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/975f9415-1e07-4499-b9eb-54f0ed9e9043/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update an invoice
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/invoices/975f9415-1e07-4499-b9eb-54f0ed9e9043/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"description\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",
\"issue_date\": \"28-05-2024\",
\"due_date\": \"11-06-2024\",
\"held\": false,
\"send_on\": \"03-06-2024\"
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/975f9415-1e07-4499-b9eb-54f0ed9e9043/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"issue_date": "28-05-2024",
"due_date": "11-06-2024",
"held": false,
"send_on": "03-06-2024"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many invoices (Soft delete)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/invoices/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"est\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"est"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many invoices
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/invoices/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"at\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"at"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many invoices (Permanently) Only the administrator can delete an invoice permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/invoices/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"est\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"est"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Download an invoice
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/975df0ab-6954-4636-8792-fd242aeb7ee9/download" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/975df0ab-6954-4636-8792-fd242aeb7ee9/download"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export invoices
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/export?type=participant_registration&price[]=12&price[]=80&period=24h&deleted=with&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"type\": \"participant_transfer_new_event\",
\"status\": \"transferred\",
\"held\": true,
\"year\": \"2024\",
\"month\": 10,
\"price\": [
9
],
\"term\": \"ab\",
\"page\": 25,
\"per_page\": 32,
\"period\": \"All\",
\"deleted\": \"only\",
\"order_by\": [
\"ut\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/export"
);
const params = {
"type": "participant_registration",
"price[0]": "12",
"price[1]": "80",
"period": "24h",
"deleted": "with",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"type": "participant_transfer_new_event",
"status": "transferred",
"held": true,
"year": "2024",
"month": 10,
"price": [
9
],
"term": "ab",
"page": 25,
"per_page": 32,
"period": "All",
"deleted": "only",
"order_by": [
"ut"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Generate an invoice (the pdf file)
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/975df0ab-6954-4636-8792-fd242aeb7ee9/pdf/generate" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/975df0ab-6954-4636-8792-fd242aeb7ee9/pdf/generate"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Pay for an invoice
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/975f9415-1e07-4499-b9eb-54f0ed9e9043/pay" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/975f9415-1e07-4499-b9eb-54f0ed9e9043/pay"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete one or many invoice items
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/invoices/979393e7-6826-409b-952c-56689414d5a7/items/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"nostrum\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/979393e7-6826-409b-952c-56689414d5a7/items/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"nostrum"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Add an invoice item
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the invoice item
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"item_class\": \"App\\\\Modules\\\\Participant\\\\Models\\\\Participant\",
\"item_ref\": \"979bcb4e-bfac-4ac0-af69-956d04f4289c\",
\"type\": \"participant_registration\",
\"price\": 53.92,
\"discount\": 20.87
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"item_class": "App\\Modules\\Participant\\Models\\Participant",
"item_ref": "979bcb4e-bfac-4ac0-af69-956d04f4289c",
"type": "participant_registration",
"price": 53.92,
"discount": 20.87
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Edit an invoice item
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/97963856-9aea-473f-987e-9fd84d9403bb/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/97963856-9aea-473f-987e-9fd84d9403bb/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update an invoice item
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/97963856-9aea-473f-987e-9fd84d9403bb/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"price\": 53.92,
\"discount\": 20.87
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/978017ae-6c3f-4d6e-9b91-e0606d6d3e44/item/97963856-9aea-473f-987e-9fd84d9403bb/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"price": 53.92,
"discount": 20.87
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Paginated charity memberships for dropdown fields
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/charity/memberships?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 22,
\"per_page\": 12
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/charity/memberships"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 22,
"per_page": 12
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated participants for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/participants?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/participants"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated charity partner package for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/charity/partner-packages?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 48,
\"per_page\": 85
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/charity/partner-packages"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 48,
"per_page": 85
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated resale requests for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/resale/requests?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 78,
\"per_page\": 13
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/resale/requests"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 78,
"per_page": 13
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated event place invoices for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/event-place-invoices?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 86,
\"per_page\": 84
}"
const url = new URL(
"https://api.test/api/v1/portal/invoices/event-place-invoices"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 86,
"per_page": 84
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Invoice Stats
requires authentication
Get Invoice Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/stats/summary?year=2022&status=recusandae&category=98677146-d86a-4b10-a694-d79eb66e8220&type=invoices&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/stats/summary"
);
const params = {
"year": "2022",
"status": "recusandae",
"category": "98677146-d86a-4b10-a694-d79eb66e8220",
"type": "invoices",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Invoice Chart data
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/invoices/stats/chart?type=invoices&year=2022&status=repellat&category=98677146-d86a-4b10-a694-d79eb66e8220&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/invoices/stats/chart"
);
const params = {
"type": "invoices",
"year": "2022",
"status": "repellat",
"category": "98677146-d86a-4b10-a694-d79eb66e8220",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Market
Manages events market on the application
The list of resale places
requires authentication
Only the resales places that have not been all sold will be returned. This is made available to users of all roles.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/market?charity=wwf&event=santa-in-the-city-london-wednesday&discount=1&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 54,
\"term\": \"doloremque\",
\"discount\": true,
\"per_page\": 67
}"
const url = new URL(
"https://api.test/api/v1/portal/market"
);
const params = {
"charity": "wwf",
"event": "santa-in-the-city-london-wednesday",
"discount": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 54,
"term": "doloremque",
"discount": true,
"per_page": 67
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The notifications
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/market/manage/notifications?event=santa-in-the-city-london-wednesday&charity=wwf&status=1&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 76,
\"term\": \"recusandae\",
\"status\": false,
\"per_page\": 7
}"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/notifications"
);
const params = {
"event": "santa-in-the-city-london-wednesday",
"charity": "wwf",
"status": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 76,
"term": "recusandae",
"status": false,
"per_page": 7
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Toggle resale notifications
requires authentication
Turn ON/OFF notifications for the selected events on the authenticated charity profile
Example request:
curl --request POST \
"https://api.test/api/v1/portal/market/manage/notifications/toggle" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"events\": [],
\"status\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/notifications/toggle"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"events": [],
"status": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Medals
APIs for managing medals
The list of Medals
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/medals?drafted=with&deleted=with&page=1&order_by=name%3Adesc%2Ctype%3Aasc%2Ccreated_at%3Adesc&type=default" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"drafted\": \"without\",
\"deleted\": \"with\",
\"term\": \"aliquam\",
\"type\": \"default\",
\"page\": 74,
\"per_page\": 46,
\"order_by\": [
\"possimus\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/medals"
);
const params = {
"drafted": "with",
"deleted": "with",
"page": "1",
"order_by": "name:desc,type:asc,created_at:desc",
"type": "default",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"drafted": "without",
"deleted": "with",
"term": "aliquam",
"type": "default",
"page": 74,
"per_page": 46,
"order_by": [
"possimus"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a medal
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/medals/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/medals/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a medal
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/medals/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"name\": \"Gold Medal\",
\"event\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"category\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"type\": \"default\",
\"description\": \"This is a gold medal\",
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\"
}"
const url = new URL(
"https://api.test/api/v1/portal/medals/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"name": "Gold Medal",
"event": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"category": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"type": "default",
"description": "This is a gold medal",
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Show meadal details
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/medals/nam/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/medals/nam/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a medal
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/medals/autem/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/medals/autem/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export medals
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/medals/export?deleted=with&order_by=name%3Adesc%2Ctype%3Aasc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"drafted\": \"only\",
\"deleted\": \"without\",
\"term\": \"vero\",
\"type\": \"default\",
\"page\": 42,
\"per_page\": 56,
\"order_by\": [
\"et\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/medals/export"
);
const params = {
"deleted": "with",
"order_by": "name:desc,type:asc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"drafted": "only",
"deleted": "without",
"term": "vero",
"type": "default",
"page": 42,
"per_page": 56,
"order_by": [
"et"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a medal
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/medals/nulla/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"name\": \"Gold Medal\",
\"type\": \"default\",
\"event\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"category\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"description\": \"This is a gold medal\",
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\"
}"
const url = new URL(
"https://api.test/api/v1/portal/medals/nulla/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"name": "Gold Medal",
"type": "default",
"event": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"category": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"description": "This is a gold medal",
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or many medals as draft
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/medals/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/medals/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or many medals as published
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/medals/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/medals/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many medals
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/medals/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"totam\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/medals/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"totam"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many medals
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/medals/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"molestiae\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/medals/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"molestiae"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One or Many medals permanently Only the administrator can delete a medal permanently
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/medals/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"vel\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/medals/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"vel"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Medal Stats
requires authentication
Get Medal Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/medals/stats/summary?year=2022&period=24h&_type=default" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/medals/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
"_type": "default",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
PageFAQs
Page FAQs
requires authentication
FAQs associated with specified Page.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/pages/tenetur/faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/pages/tenetur/faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Add new FAQs
requires authentication
Create new FAQs associated with specified page.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/pages/nisi/store-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n \\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n \\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n \\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n \\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"qui\"
]
}
],
\"faqs[]\": \"[[\\\"section\\\": \\\"some section 1\\\", \\\"description\\\": \\\"some description 1\\\", \\\"details\\\": [\\\"question\\\": \\\"some question 1\\\", \\\"answer\\\": \\\"some answer 1\\\"], \\\"images\\\": [\\\"data:image\\/png;base64,iVBORw0...\\\"]]]\"
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/nisi/store-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n \n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n \n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n \n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n \n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"qui"
]
}
],
"faqs[]": "[[\"section\": \"some section 1\", \"description\": \"some description 1\", \"details\": [\"question\": \"some question 1\", \"answer\": \"some answer 1\"], \"images\": [\"data:image\/png;base64,iVBORw0...\"]]]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update existing FAQs
requires authentication
Update FAQs associated with specified page.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/pages/exercitationem/update-faq" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs\": [
{
\"faq_id\": 73,
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"reiciendis\"
]
}
],
\"faqs[]\": \"[[\\\"faq_id\\\": 1, \\\"section\\\": \\\"some section 1\\\", \\\"description\\\": \\\"some description 1\\\", \\\"details\\\": [\\\"question\\\": \\\"some question 1\\\", \\\"answer\\\": \\\"some answer 1\\\"], \\\"images\\\": [\\\"data:image\\/png;base64,iVBORw0...\\\"]]]\"
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/exercitationem/update-faq"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs": [
{
"faq_id": 73,
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"reiciendis"
]
}
],
"faqs[]": "[[\"faq_id\": 1, \"section\": \"some section 1\", \"description\": \"some description 1\", \"details\": [\"question\": \"some question 1\", \"answer\": \"some answer 1\"], \"images\": [\"data:image\/png;base64,iVBORw0...\"]]]"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Pages
Get Pages
Get paginated list of pages.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/pages?drafted=with&deleted=with&term=https%3A%2F%2Fsomelink.test&status=1&per_page=20&meta_keywords=keyword-1&faqs=with&period=1h%2C6h%2C12h%2C24h%2C7d%2C30d%2C90d%2C180d%2C1y%2CAll&year=2022&order_by=name%3Adesc%2Curl%3Aasc%2Ccreated_at%3Adesc" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"period\": \"24h\",
\"meta_keywords\": \"autem\",
\"faqs\": \"without\",
\"term\": \"phmbokbfasqpafkvd\",
\"year\": \"c\",
\"status\": 1,
\"per_page\": 6,
\"drafted\": \"only\",
\"deleted\": \"only\",
\"order_by\": [
\"nemo\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages"
);
const params = {
"drafted": "with",
"deleted": "with",
"term": "https://somelink.test",
"status": "1",
"per_page": "20",
"meta_keywords": "keyword-1",
"faqs": "with",
"period": "1h,6h,12h,24h,7d,30d,90d,180d,1y,All",
"year": "2022",
"order_by": "name:desc,url:asc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"period": "24h",
"meta_keywords": "autem",
"faqs": "without",
"term": "phmbokbfasqpafkvd",
"year": "c",
"status": 1,
"per_page": 6,
"drafted": "only",
"deleted": "only",
"order_by": [
"nemo"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Page Options
requires authentication
Retrieve page creation options data.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/pages/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/pages/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Page Options for Edit
requires authentication
Retrieve page creation options data.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/pages/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/pages/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Portal Page
requires authentication
Retrieve page data matching specified ref attribute.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/pages/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/show" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/portal/pages/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/show"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Portal Page
requires authentication
Retrieve page data matching specified ref attribute.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/pages/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/portal/pages/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a new Page
requires authentication
New pages can be created with optional FAQs properties for pages that requires FAQs.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/pages/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"FAQs Page\",
\"url\": \"https:\\/\\/path-for-page.test\",
\"status\": 1,
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"nofollow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"et\"
]
}
],
\"is_draft\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "FAQs Page",
"url": "https:\/\/path-for-page.test",
"status": 1,
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"nofollow"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"et"
]
}
],
"is_draft": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update a Page
requires authentication
An existing page can be modified, alongside their FAQs properties when necessary.
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/pages/minima/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"FAQs Page\",
\"url\": \"https:\\/\\/path-for-page.test\",
\"status\": 1,
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"index\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
\"est\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/minima/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "FAQs Page",
"url": "https:\/\/path-for-page.test",
"status": 1,
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"index"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
"est"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or many Pages as Published
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/pages/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark one or many Pages as Draft
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/pages/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Page
requires authentication
Delete page data matching specified ref attribute.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/pages/enim/delete?permanently=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/pages/enim/delete"
);
const params = {
"permanently": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Delete Many Pages
requires authentication
Delete multiple pages data by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/pages/delete-many?permanently=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"pages_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/delete-many"
);
const params = {
"permanently": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"pages_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore Many Pages
requires authentication
Restore multiple pages data by specifying their ids.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/pages/restore-many" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"pages_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/restore-many"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"pages_ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQs
requires authentication
Delete multiple Page FAQs by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/pages/quo/delete-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/quo/delete-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQ Details
requires authentication
Delete multiple Page FAQ details by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/pages/vitae/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/delete-faq-details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faq_details_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/vitae/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/delete-faq-details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faq_details_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Meta
requires authentication
Delete Page Meta.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/pages/at/delete-meta" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/pages/at/delete-meta"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Pages Stats
requires authentication
Get Pages Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/pages/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/pages/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Client Page
Retrieve page data matching specified ref attribute on the Client application.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/pages/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/show" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--header "X-Platform-User-Identifier-Key: RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780"
const url = new URL(
"https://api.test/api/v1/client/pages/97f62d3d-bf9d-42ac-88c4-9d56cd910d7a/show"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
"X-Platform-User-Identifier-Key": "RTHUB.v1.98591b54-db61-46d4-9d29-47a8a7f325a8.1675084780",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Page not found.",
"errors": null
}
Received response:
Request failed with error:
Fetch Page by URL
Retrieve page data matching specified URL.
Example request:
curl --request POST \
"https://api.test/api/v1/client/pages/fetch-by-url" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"url\": \"https:\\/\\/page-one.test\"
}"
const url = new URL(
"https://api.test/api/v1/client/pages/fetch-by-url"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"url": "https:\/\/page-one.test"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Participants
Manages participants on the application
The list of participants
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants?state=live&status=complete&deleted=with&payment_status=waived&waive=completely&waiver=partner&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&year=2023&period=24h&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"id\",
\"status\": \"transferred\",
\"state\": \"archived\",
\"gender\": \"female\",
\"tshirt_size\": \"m\",
\"year\": \"2024\",
\"month\": 6,
\"via\": \"website\",
\"payment_status\": \"unpaid\",
\"waive\": \"completely\",
\"waiver\": \"charity\",
\"period\": \"6h\",
\"deleted\": \"without\",
\"order_by\": [
\"ad\"
],
\"page\": 44,
\"per_page\": 32
}"
const url = new URL(
"https://api.test/api/v1/portal/participants"
);
const params = {
"state": "live",
"status": "complete",
"deleted": "with",
"payment_status": "waived",
"waive": "completely",
"waiver": "partner",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"year": "2023",
"period": "24h",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "id",
"status": "transferred",
"state": "archived",
"gender": "female",
"tshirt_size": "m",
"year": "2024",
"month": 6,
"via": "website",
"payment_status": "unpaid",
"waive": "completely",
"waiver": "charity",
"period": "6h",
"deleted": "without",
"order_by": [
"ad"
],
"page": 44,
"per_page": 32
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Download a participant entry
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants/ipsa/download" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/participants/ipsa/download"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a participant
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants/consequatur/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/participants/consequatur/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a participant
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/participants/inventore/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"first_name\": \"Marc\",
\"last_name\": \"Roby AM\",
\"phone\": \"447834418119\",
\"state\": \"partially_registered\",
\"profile\": {
\"gender\": \"male\",
\"dob\": \"27-05-2024\",
\"city\": \"dolor\",
\"state\": \"placeat\",
\"address\": \"perferendis\",
\"country\": \"aperiam\",
\"postcode\": \"est\",
\"nationality\": \"magni\",
\"occupation\": \"aut\",
\"passport_number\": \"aliquam\",
\"ethnicity\": \"mixed_or_multiple_ethnic_groups\"
},
\"weekly_physical_activity\": \"1 - 2 days\",
\"slogan\": \"placeat\",
\"club\": \"rem\",
\"emergency_contact_name\": \"John Doe\",
\"emergency_contact_phone\": \"07851081623\",
\"tshirt_size\": \"xl\",
\"user\": \"maiores\",
\"eec\": \"laboriosam\",
\"payment_status\": \"unpaid\",
\"waive\": \"completely\",
\"waiver\": \"charity\",
\"fee_type\": \"local\",
\"preferred_heat_time\": \"iure\",
\"raced_before\": true,
\"speak_with_coach\": true,
\"hear_from_partner_charity\": false,
\"reason_for_participating\": \"aut\",
\"estimated_finish_time\": \"accusamus\",
\"added_via\": \"partner_events\",
\"event_page\": \"totam\",
\"enable_family_registration\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/inventore/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"first_name": "Marc",
"last_name": "Roby AM",
"phone": "447834418119",
"state": "partially_registered",
"profile": {
"gender": "male",
"dob": "27-05-2024",
"city": "dolor",
"state": "placeat",
"address": "perferendis",
"country": "aperiam",
"postcode": "est",
"nationality": "magni",
"occupation": "aut",
"passport_number": "aliquam",
"ethnicity": "mixed_or_multiple_ethnic_groups"
},
"weekly_physical_activity": "1 - 2 days",
"slogan": "placeat",
"club": "rem",
"emergency_contact_name": "John Doe",
"emergency_contact_phone": "07851081623",
"tshirt_size": "xl",
"user": "maiores",
"eec": "laboriosam",
"payment_status": "unpaid",
"waive": "completely",
"waiver": "charity",
"fee_type": "local",
"preferred_heat_time": "iure",
"raced_before": true,
"speak_with_coach": true,
"hear_from_partner_charity": false,
"reason_for_participating": "aut",
"estimated_finish_time": "accusamus",
"added_via": "partner_events",
"event_page": "totam",
"enable_family_registration": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Transfer a participant
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/participants/quia/transfer" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"975df0ab-6954-4636-8792-fd242aeb7ee9\",
\"custom_transfer_fee\": \"5\",
\"cancel_difference\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/quia/transfer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "975df0ab-6954-4636-8792-fd242aeb7ee9",
"custom_transfer_fee": "5",
"cancel_difference": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Check if the participant can be transferred to another event
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/participants/sit/verify-transfer" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"975df0ab-6954-4636-8792-fd242aeb7ee9\",
\"custom_transfer_fee\": \"5\",
\"cancel_difference\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/sit/verify-transfer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "975df0ab-6954-4636-8792-fd242aeb7ee9",
"custom_transfer_fee": "5",
"cancel_difference": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many participants (Soft delete)
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/participants/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"nobis\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"nobis"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many participants
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/participants/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"molestias\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"molestias"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many participants (Permanently) Only the administrator can delete an participant permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/participants/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"nulla\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"nulla"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Create a family member
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants/quo/family-registration/new" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/participants/quo/family-registration/new"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the family member
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/participants/accusamus/family-registration/new" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"participant_id\": 1,
\"event_custom_field_id\": 11,
\"first_name\": \"Marc\",
\"last_name\": \"Roby AM\",
\"gender\": \"male\"
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/accusamus/family-registration/new"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"participant_id": 1,
"event_custom_field_id": 11,
"first_name": "Marc",
"last_name": "Roby AM",
"gender": "male"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Edit a family member
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants/aliquid/family-registration/1/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/participants/aliquid/family-registration/1/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update the family member
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/participants/sit/family-registration/1/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"participant_id\": 20,
\"event_custom_field_id\": 14,
\"first_name\": \"Marc\",
\"last_name\": \"Roby AM\",
\"gender\": \"male\"
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/sit/family-registration/1/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"participant_id": 20,
"event_custom_field_id": 14,
"first_name": "Marc",
"last_name": "Roby AM",
"gender": "male"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a family member
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/participants/sed/family-registration/1/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/participants/sed/family-registration/1/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Export participants
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants/export?state=live&status=complete&deleted=with&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&year=2023&period=24h&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"qui\",
\"status\": \"complete\",
\"state\": \"archived\",
\"gender\": \"male\",
\"tshirt_size\": \"xxxl\",
\"year\": \"2024\",
\"month\": 2,
\"via\": \"registration_page\",
\"payment_status\": \"unpaid\",
\"waive\": \"completely\",
\"waiver\": \"charity\",
\"period\": \"180d\",
\"deleted\": \"with\",
\"order_by\": [
\"eveniet\"
],
\"page\": 15,
\"per_page\": 60
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/export"
);
const params = {
"state": "live",
"status": "complete",
"deleted": "with",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"year": "2023",
"period": "24h",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "qui",
"status": "complete",
"state": "archived",
"gender": "male",
"tshirt_size": "xxxl",
"year": "2024",
"month": 2,
"via": "registration_page",
"payment_status": "unpaid",
"waive": "completely",
"waiver": "charity",
"period": "180d",
"deleted": "with",
"order_by": [
"eveniet"
],
"page": 15,
"per_page": 60
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Notify a participant(s)
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/participants/notify" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"refs\": [
\"qui\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/notify"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"refs": [
"qui"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Offer the event place to the participant.
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/participants/quod/place/offer" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"fgdhdfgdfhghfafwrrgrete345yh\",
\"payment_status\": \"unpaid\",
\"waive\": \"completely\",
\"waiver\": \"charity\",
\"fee_type\": \"local\"
}"
const url = new URL(
"https://api.test/api/v1/portal/participants/quod/place/offer"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "fgdhdfgdfhghfafwrrgrete345yh",
"payment_status": "unpaid",
"waive": "completely",
"waiver": "charity",
"fee_type": "local"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Participant Stats
requires authentication
Get Participant Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants/stats/summary?year=2022&status=inventore&type=invoices&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/participants/stats/summary"
);
const params = {
"year": "2022",
"status": "inventore",
"type": "invoices",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Participant Chart data
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/participants/stats/chart?type=invoices&year=2022&status=et&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/participants/stats/chart"
);
const params = {
"type": "invoices",
"year": "2022",
"status": "et",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Partner Channel
Manages partner channels on the application
Paginated partners channels for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partner-channels/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"sapiente\",
\"page\": 87,
\"per_page\": 50
}"
const url = new URL(
"https://api.test/api/v1/portal/partner-channels/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "sapiente",
"page": 87,
"per_page": 50
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of partner channels
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partner-channels?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"ullam\",
\"page\": 2,
\"per_page\": 51,
\"order_by\": [
\"ipsum\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/partner-channels"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "ullam",
"page": 2,
"per_page": 51,
"order_by": [
"ipsum"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a partner channel
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partner-channels/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partner-channels/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a partner channel
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partner-channels/nemo/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partner-channels/nemo/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Partner Events
Manages partner events on the application
Get the participants for an event
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/events/tempora/participants" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"temporibus\",
\"page\": 88,
\"per_page\": 78
}"
const url = new URL(
"https://api.test/api/v1/portal/events/tempora/participants"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "temporibus",
"page": 88,
"per_page": 78
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of partner events
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partner-events?category=97a3ca24-0447-4b49-aa25-a8cddb0e064d&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 1,
\"term\": \"accusamus\",
\"year\": \"2024\",
\"month\": 9,
\"per_page\": 20
}"
const url = new URL(
"https://api.test/api/v1/portal/partner-events"
);
const params = {
"category": "97a3ca24-0447-4b49-aa25-a8cddb0e064d",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 1,
"term": "accusamus",
"year": "2024",
"month": 9,
"per_page": 20
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a participant
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partner-events/participants/pariatur/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partner-events/participants/pariatur/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a participant.
requires authentication
The administrator or charity owners or charity users add participants to events through this endpoint.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/partner-events/participants/occaecati/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"eec\": \"fhggjkalsugfujhvajvjhvaabjkvw\",
\"payment_status\": \"unpaid\",
\"waive\": \"completely\",
\"waiver\": \"charity\",
\"fee_type\": \"local\",
\"email\": \"marc@runforcharity.com\",
\"first_name\": \"Marc\",
\"last_name\": \"Roby AM\"
}"
const url = new URL(
"https://api.test/api/v1/portal/partner-events/participants/occaecati/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"eec": "fhggjkalsugfujhvajvjhvaabjkvw",
"payment_status": "unpaid",
"waive": "completely",
"waiver": "charity",
"fee_type": "local",
"email": "marc@runforcharity.com",
"first_name": "Marc",
"last_name": "Roby AM"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Export event participants
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partner-events/ipsa/export" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"fugit\",
\"page\": 88,
\"per_page\": 16
}"
const url = new URL(
"https://api.test/api/v1/portal/partner-events/ipsa/export"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "fugit",
"page": 88,
"per_page": 16
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of partner events
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/book-events?category=97a3ca24-0447-4b49-aa25-a8cddb0e064d&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 21,
\"term\": \"quaerat\",
\"year\": \"2024\",
\"month\": 9,
\"per_page\": 51
}"
const url = new URL(
"https://api.test/api/v1/portal/book-events"
);
const params = {
"category": "97a3ca24-0447-4b49-aa25-a8cddb0e064d",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 21,
"term": "quaerat",
"year": "2024",
"month": 9,
"per_page": 51
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Partners
Manages partners on the application
Paginated partners for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partners/all?with=channels&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"ut\",
\"with\": \"quasi\",
\"page\": 73,
\"per_page\": 6
}"
const url = new URL(
"https://api.test/api/v1/portal/partners/all"
);
const params = {
"with": "channels",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "ut",
"with": "quasi",
"page": 73,
"per_page": 6
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of partners
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partners?page=1&order_by=name%3Adesc%2Ccode%3Aasc%2Cexpiry%3Adesc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"fugit\",
\"page\": 40,
\"per_page\": 42,
\"order_by\": [
\"dolores\"
],
\"deleted\": \"with\"
}"
const url = new URL(
"https://api.test/api/v1/portal/partners"
);
const params = {
"page": "1",
"order_by": "name:desc,code:asc,expiry:desc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "fugit",
"page": 40,
"per_page": 42,
"order_by": [
"dolores"
],
"deleted": "with"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a partner
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partners/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partners/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a partner
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/partners/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Lets Do This\",
\"site\": \"tyf768t0p7wy879oywi\",
\"description\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",
\"website\": \"https:\\/\\/spartanrace.uk\\/en\",
\"code\": \"LDT\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"follow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\"
}"
const url = new URL(
"https://api.test/api/v1/portal/partners/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Lets Do This",
"site": "tyf768t0p7wy879oywi",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"website": "https:\/\/spartanrace.uk\/en",
"code": "LDT",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"follow"
],
"canonical_url": "https:\/\/example.com"
},
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get a partner's details.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partners/voluptatem/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partners/voluptatem/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a partner
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partners/itaque/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partners/itaque/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export partners
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partners/export?page=1&order_by=name%3Adesc%2Ccode%3Aasc%2Cexpiry%3Adesc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"ut\",
\"page\": 21,
\"per_page\": 89,
\"order_by\": [
\"ratione\"
],
\"deleted\": \"with\"
}"
const url = new URL(
"https://api.test/api/v1/portal/partners/export"
);
const params = {
"page": "1",
"order_by": "name:desc,code:asc,expiry:desc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "ut",
"page": 21,
"per_page": 89,
"order_by": [
"ratione"
],
"deleted": "with"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a partner
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/partners/97ad9df6-bc08-4729-b95e-3671dc6192c2/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Lets Do This\",
\"site\": \"t89093ytohevkuvdgvui\",
\"description\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",
\"website\": \"https:\\/\\/spartanrace.uk\\/en\",
\"code\": \"LDT\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"follow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\"
}"
const url = new URL(
"https://api.test/api/v1/portal/partners/97ad9df6-bc08-4729-b95e-3671dc6192c2/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Lets Do This",
"site": "t89093ytohevkuvdgvui",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"website": "https:\/\/spartanrace.uk\/en",
"code": "LDT",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"follow"
],
"canonical_url": "https:\/\/example.com"
},
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove the partner's image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/partners/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partners/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Partner Stats
requires authentication
Get Partner Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/partners/stats/summary" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/partners/stats/summary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Payment
Handles all payment related operations
Handle payment intent webhook events
Example request:
curl --request POST \
"https://api.test/api/v1/payment/webhook/intent" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/webhook/intent"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Handle payment link webhook events
Example request:
curl --request POST \
"https://api.test/api/v1/payment/webhook/link" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/webhook/link"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Handle charge webhook events
Example request:
curl --request POST \
"https://api.test/api/v1/payment/webhook/charge" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/webhook/charge"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Handle payment method webhook events
Example request:
curl --request POST \
"https://api.test/api/v1/payment/webhook/method" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/webhook/method"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Get the meta data
Example request:
curl --request GET \
--get "https://api.test/api/v1/payment/checkout/meta" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/checkout/meta"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (406):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Payment Controller - Site not found!",
"errors": "Site not found!"
}
Received response:
Request failed with error:
Proceed to Checkout
Example request:
curl --request POST \
"https://api.test/api/v1/payment/checkout/participant_registration/proceed" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/checkout/participant_registration/proceed"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Checkout - For events that require payment
Example request:
curl --request POST \
"https://api.test/api/v1/payment/checkout/participant_registration/97ad9df6-d927-4a44-8fec-3daacee89678/pay" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/checkout/participant_registration/97ad9df6-d927-4a44-8fec-3daacee89678/pay"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Checkout - For free events
Example request:
curl --request POST \
"https://api.test/api/v1/payment/checkout/participant_registration/free" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/checkout/participant_registration/free"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Checkout - Confirm payment
Example request:
curl --request POST \
"https://api.test/api/v1/payment/checkout/pi_3MtweELkdIwHu7ix0Dt0gF2H/confirm" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/checkout/pi_3MtweELkdIwHu7ix0Dt0gF2H/confirm"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Handle post payment response
Example request:
curl --request GET \
--get "https://api.test/api/v1/payment/checkout/at/response" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/checkout/at/response"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (406):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Payment Controller - Site not found!",
"errors": "Site not found!"
}
Received response:
Request failed with error:
Create and attach payment method to customer
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/payment/payment-methods/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"type\": \"card\",
\"exp_month\": 9,
\"exp_year\": \"2025-05-27T10:56:34.137927Z\",
\"number\": 424242424242,
\"cvc\": 123,
\"account_number\": 5349,
\"sort_code\": -40
}"
const url = new URL(
"https://api.test/api/v1/payment/payment-methods/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"type": "card",
"exp_month": 9,
"exp_year": "2025-05-27T10:56:34.137927Z",
"number": 424242424242,
"cvc": 123,
"account_number": 5349,
"sort_code": -40
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Attach payment method to customer
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/payment/payment-methods/pm_1MqLiJLkdIwHu7ixUEgbFdYF/attach" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/payment-methods/pm_1MqLiJLkdIwHu7ixUEgbFdYF/attach"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Detach payment method from customer
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/payment/payment-methods/pm_1MqLiJLkdIwHu7ixUEgbFdYF/detach" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/payment-methods/pm_1MqLiJLkdIwHu7ixUEgbFdYF/detach"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
List a customer's payment methods
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/payment/payment-methods/cumque/list" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/payment/payment-methods/cumque/list"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Permission
Get Permissions
requires authentication
List system permissions.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/permissions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
New permission
requires authentication
Add a new permission to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/permissions/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/permissions/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Update Permission
requires authentication
Update an existing permission.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/permissions/97741344-4d25-4d07-a367-ce344cf38410/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"suspend-users\",
\"description\": \"User with this permission can suspend other users\"
}"
const url = new URL(
"https://api.test/api/v1/portal/permissions/97741344-4d25-4d07-a367-ce344cf38410/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "suspend-users",
"description": "User with this permission can suspend other users"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Permission
requires authentication
Delete an existing permission.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/permissions/97741344-4d25-4d07-a367-ce344cf38410/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/permissions/97741344-4d25-4d07-a367-ce344cf38410/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Profile
Manages users profiles on the application
Profile Picture
requires authentication
Update a user's profile display picture.
Example request:
curl --request POST \
"https://api.test/api/v1/profile/repellendus/avatar-upload" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"avatar\": \"laboriosam\"
}"
const url = new URL(
"https://api.test/api/v1/profile/repellendus/avatar-upload"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"avatar": "laboriosam"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Profile Background Image
requires authentication
Update a user's profile background image.
Example request:
curl --request POST \
"https://api.test/api/v1/profile/consequuntur/background-image-upload" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"background_image\": \"ex\"
}"
const url = new URL(
"https://api.test/api/v1/profile/consequuntur/background-image-upload"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"background_image": "ex"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Profile Picture
requires authentication
Delete a user's profile display picture.
Example request:
curl --request GET \
--get "https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/avatar-delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/avatar-delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Delete Profile Background Picture
requires authentication
Delete a user's profile background picture.
Example request:
curl --request GET \
--get "https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/background-image-delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/profile/975dcf22-eda3-4437-8c96-6df4e790d077/background-image-delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the invoices of the user (having the participant role)
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/profile/invoices?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"quis\",
\"page\": 4,
\"per_page\": 70
}"
const url = new URL(
"https://api.test/api/v1/portal/profile/invoices"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "quis",
"page": 4,
"per_page": 70
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Redirects
Get Redirects
requires authentication
Get paginated list of redirects.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/redirects?soft_delete=temporal&hard_delete=temporal%2Cpermanent&type=single%2Ccollection&deleted=with&term=https%3A%2F%2Fsomelink.test&per_page=20&order_by=created_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"status\": \"temporal\",
\"type\": \"collection\"
}"
const url = new URL(
"https://api.test/api/v1/portal/redirects"
);
const params = {
"soft_delete": "temporal",
"hard_delete": "temporal,permanent",
"type": "single,collection",
"deleted": "with",
"term": "https://somelink.test",
"per_page": "20",
"order_by": "created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"status": "temporal",
"type": "collection"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Fetch Redirect
requires authentication
Display the specified redirect.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/redirects/9913d099-ae76-46c9-bb2b-eb6f266b2cbf/show" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/redirects/9913d099-ae76-46c9-bb2b-eb6f266b2cbf/show"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Redirect Options
requires authentication
Get options for redirect creation.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/redirects/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/redirects/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/redirects/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"temporal,permanent\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 15
}
}"
const url = new URL(
"https://api.test/api/v1/portal/redirects/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "temporal,permanent",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 15
}
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup Multiple Entity Redirects.
requires authentication
Add a redirect to multiple entities in the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/redirects/store-many" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"http:\\/\\/www.koch.com\\/repellendus-repudiandae-nulla-fugit-ipsam-magnam-rerum-porro\",
\"redirect_url\": \"https:\\/\\/kunde.com\\/qui-cum-nisi-enim-a-odit.html\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"temporal\",
\"type\": \"single\",
\"model\": {
\"id\": 14
},
\"models\": [
\"corrupti\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/redirects/store-many"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "http:\/\/www.koch.com\/repellendus-repudiandae-nulla-fugit-ipsam-magnam-rerum-porro",
"redirect_url": "https:\/\/kunde.com\/qui-cum-nisi-enim-a-odit.html",
"soft_delete": "temporal",
"hard_delete": "temporal",
"type": "single",
"model": {
"id": 14
},
"models": [
"corrupti"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update redirect
requires authentication
Update the specified redirect.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/redirects/provident/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"temporal,permanent\",
\"type\": \"single,collection\"
}"
const url = new URL(
"https://api.test/api/v1/portal/redirects/provident/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "temporal,permanent",
"type": "single,collection"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Redirects
requires authentication
Remove multiple redirects by specified ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/redirects/delete?permanently=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"redirects_ids\": [
1,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/redirects/delete"
);
const params = {
"permanently": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"redirects_ids": [
1,
2,
3
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup Event Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/fugit/setup-redirect" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"temporal\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 20
},
\"status\": \"temporal,permanent\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/fugit/setup-redirect"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "temporal",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 20
},
"status": "temporal,permanent"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup Event Category Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/events/categories/dolore/setup-redirect" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"permanent\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 3
},
\"status\": \"temporal,permanent\"
}"
const url = new URL(
"https://api.test/api/v1/portal/events/categories/dolore/setup-redirect"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "permanent",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 3
},
"status": "temporal,permanent"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup Region Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/setup-redirect" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"permanent\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 18
},
\"status\": \"temporal,permanent\"
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/setup-redirect"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "permanent",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 18
},
"status": "temporal,permanent"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup City Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/setup-redirect" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"temporal\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 17
},
\"status\": \"temporal,permanent\"
}"
const url = new URL(
"https://api.test/api/v1/portal/cities/987b93b3-d31c-4530-809b-156e1e7ad80e/setup-redirect"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "temporal",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 17
},
"status": "temporal,permanent"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup Venue Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/setup-redirect" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"temporal\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 3
},
\"status\": \"temporal,permanent\"
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/setup-redirect"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "temporal",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 3
},
"status": "temporal,permanent"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup Combination Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/combinations/recusandae/setup-redirect" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"permanent\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 2
},
\"status\": \"temporal,permanent\"
}"
const url = new URL(
"https://api.test/api/v1/portal/combinations/recusandae/setup-redirect"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "permanent",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 2
},
"status": "temporal,permanent"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Setup Page Redirect.
requires authentication
Add a new redirect to the system.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/pages/enim/setup-redirect" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"target_url\": \"https:\\/\\/google.com\",
\"redirect_url\": \"https:\\/\\/google.com\",
\"soft_delete\": \"temporal\",
\"hard_delete\": \"temporal\",
\"type\": \"single,collection\",
\"model\": {
\"name\": \"Event\",
\"ref\": \"event_1\",
\"id\": 7
},
\"status\": \"temporal,permanent\"
}"
const url = new URL(
"https://api.test/api/v1/portal/pages/enim/setup-redirect"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"target_url": "https:\/\/google.com",
"redirect_url": "https:\/\/google.com",
"soft_delete": "temporal",
"hard_delete": "temporal",
"type": "single,collection",
"model": {
"name": "Event",
"ref": "event_1",
"id": 7
},
"status": "temporal,permanent"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Regions
Manages regions on the application
Paginated regions for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/regions/all?country=United+Kingdom&faqs=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs\": \"without\",
\"term\": \"a\",
\"country\": \"nihil\",
\"page\": 70,
\"per_page\": 86
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/all"
);
const params = {
"country": "United Kingdom",
"faqs": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs": "without",
"term": "a",
"country": "nihil",
"page": 70,
"per_page": 86
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of regions
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/regions?country=United+Kingdom&order_by=name%3Adesc%2Ccreated_at%3Adesc&drafted=with&deleted=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"possimus\",
\"country\": \"libero\",
\"faqs\": \"with\",
\"page\": 75,
\"per_page\": 11,
\"drafted\": \"only\",
\"deleted\": \"only\",
\"order_by\": [
\"perferendis\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions"
);
const params = {
"country": "United Kingdom",
"order_by": "name:desc,created_at:desc",
"drafted": "with",
"deleted": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "possimus",
"country": "libero",
"faqs": "with",
"page": 75,
"per_page": 11,
"drafted": "only",
"deleted": "only",
"order_by": [
"perferendis"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a region
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/regions/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/regions/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a region
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/regions/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Midlands\",
\"site_id\": 2,
\"country\": \"United Kingdom\",
\"description\": \"Description of Midlands\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"follow\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"qui\"
]
}
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"aspernatur\"
],
\"is_draft\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Midlands",
"site_id": 2,
"country": "United Kingdom",
"description": "Description of Midlands",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"follow"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"qui"
]
}
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"aspernatur"
],
"is_draft": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get a region's details.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a region
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export regions
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/regions/export?page=1&order_by=name%3Adesc%2Ccreated_at%3Adesc&deleted=with" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"ea\",
\"country\": \"commodi\",
\"faqs\": \"without\",
\"page\": 45,
\"per_page\": 34,
\"drafted\": \"without\",
\"deleted\": \"only\",
\"order_by\": [
\"illum\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/export"
);
const params = {
"page": "1",
"order_by": "name:desc,created_at:desc",
"deleted": "with",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "ea",
"country": "commodi",
"faqs": "without",
"page": 45,
"per_page": 34,
"drafted": "without",
"deleted": "only",
"order_by": [
"illum"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a region
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site_id\": 2,
\"name\": \"region name\",
\"country\": \"region country\",
\"description\": \"region description\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"noindex\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
\"veniam\"
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"quam\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site_id": 2,
"name": "region name",
"country": "region country",
"description": "region description",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"noindex"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
"veniam"
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"quam"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as draft one or many regions
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/regions/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many regions
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/regions/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore One or many regions
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/regions/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many regions (Permanently) Only the administrator can delete a region permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/regions/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete the region's image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-d927-4a44-8fec-3daacee89678/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-d927-4a44-8fec-3daacee89678/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQs
requires authentication
Delete multiple Region FAQs by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQ Details
requires authentication
Delete multiple Page FAQ details by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faq_details_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faq_details_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove faq details image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/vitae/faq-details-image/est/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/regions/98834c30-5e02-4179-afbf-a00ae68f2d2f/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/vitae/faq-details-image/est/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Region Stats
requires authentication
Get Region Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/regions/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/regions/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated regions for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/regions/all?country=United+Kingdom&faqs=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs\": \"with\",
\"term\": \"officiis\",
\"country\": \"ut\",
\"page\": 21,
\"per_page\": 40
}"
const url = new URL(
"https://api.test/api/v1/client/regions/all"
);
const params = {
"country": "United Kingdom",
"faqs": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs": "with",
"term": "officiis",
"country": "ut",
"page": 21,
"per_page": 40
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
Regions - Client
The list of regions
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/regions?country=United+Kingdom&popular=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"doloribus\",
\"country\": \"aut\",
\"popular\": false,
\"page\": 50,
\"per_page\": 26
}"
const url = new URL(
"https://api.test/api/v1/client/regions"
);
const params = {
"country": "United Kingdom",
"popular": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "doloribus",
"country": "aut",
"popular": false,
"page": 50,
"per_page": 26
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "The list of regions",
"data": {
"regions": {
"current_page": 50,
"data": [],
"first_page_url": "https://api.test/api/v1/client/regions?country=United%20Kingdom&popular=1&page=1",
"from": null,
"last_page": 1,
"last_page_url": "https://api.test/api/v1/client/regions?country=United%20Kingdom&popular=1&page=1",
"links": [
{
"url": "https://api.test/api/v1/client/regions?country=United%20Kingdom&popular=1&page=49",
"label": "« Previous",
"active": false
},
{
"url": "https://api.test/api/v1/client/regions?country=United%20Kingdom&popular=1&page=1",
"label": "1",
"active": false
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.test/api/v1/client/regions",
"per_page": 26,
"prev_page_url": "https://api.test/api/v1/client/regions?country=United%20Kingdom&popular=1&page=49",
"to": null,
"total": 0,
"query_params": {
"country": "United Kingdom",
"popular": true,
"page": 1
}
}
}
}
Received response:
Request failed with error:
Get the events under a region
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/regions/midlands?category=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&start_date=%2222-02-2018%22&end_date=%2222-02-2023%22&price[]=12&price[]=80&virtual_events=include&skip=6&take=20&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"nobis\",
\"start_date\": \"27-05-2024\",
\"end_date\": \"2038-02-19\",
\"price\": [
18
],
\"region\": \"id\",
\"address\": \"itaque\",
\"virtual_events\": \"include\",
\"date\": \"libero\",
\"page\": 66,
\"per_page\": 5
}"
const url = new URL(
"https://api.test/api/v1/client/regions/midlands"
);
const params = {
"category": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"start_date": ""22-02-2018"",
"end_date": ""22-02-2023"",
"price[0]": "12",
"price[1]": "80",
"virtual_events": "include",
"skip": "6",
"take": "20",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "nobis",
"start_date": "27-05-2024",
"end_date": "2038-02-19",
"price": [
18
],
"region": "id",
"address": "itaque",
"virtual_events": "include",
"date": "libero",
"page": 66,
"per_page": 5
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"category": [
"The category is invalid."
],
"end_date": [
"The end date does not match the format d-m-Y."
],
"price": [
"The price must contain 2 items."
],
"region": [
"The region is invalid."
]
}
}
Received response:
Request failed with error:
ResalePlace
Manages events resale places on the application
The list of resale places
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/market/manage/resale/places?charity=wwf&event=santa-in-the-city-london-wednesday&discount=1&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"page\": 17,
\"term\": \"et\",
\"discount\": true,
\"per_page\": 23
}"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/resale/places"
);
const params = {
"charity": "wwf",
"event": "santa-in-the-city-london-wednesday",
"discount": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"page": 17,
"term": "et",
"discount": true,
"per_page": 23
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a resale place
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/market/manage/resale/places/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/resale/places/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a resale place
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/market/manage/resale/places/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"event\": \"dolores\",
\"charity\": \"quidem\",
\"places\": 236,
\"unit_price\": 1,
\"discount\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/resale/places/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"event": "dolores",
"charity": "quidem",
"places": 236,
"unit_price": 1,
"discount": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Edit a resale place
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/market/manage/resale/places/1/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/resale/places/1/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a resale place
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/market/manage/resale/places/1/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"event\": \"nulla\",
\"charity\": \"officia\",
\"places\": 64,
\"unit_price\": 0,
\"discount\": true
}"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/resale/places/1/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"event": "nulla",
"charity": "officia",
"places": 64,
"unit_price": 0,
"discount": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a resale place
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/market/manage/1/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/market/manage/1/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Role
Roles' Listing
requires authentication
Get paginated application roles' list.
Example request:
curl --request GET \
--get "https://api.test/api/v1/roles?deleted=with&keyword=admin&role=administrator&order_by=name%3Adesc%2Ccreated_at%3Aasc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"per_page\": 83,
\"deleted\": \"only\",
\"order_by\": [
\"est\"
],
\"keyword\": \"bkkxncztebqdduuvikwpuyt\"
}"
const url = new URL(
"https://api.test/api/v1/roles"
);
const params = {
"deleted": "with",
"keyword": "admin",
"role": "administrator",
"order_by": "name:desc,created_at:asc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"per_page": 83,
"deleted": "only",
"order_by": [
"est"
],
"keyword": "bkkxncztebqdduuvikwpuyt"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Retrieve Role
requires authentication
Get specific role by their ref attribute.
Example request:
curl --request GET \
--get "https://api.test/api/v1/roles/975dcf12-eda2-4437-8c96-6df4e790d074/show" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/roles/975dcf12-eda2-4437-8c96-6df4e790d074/show"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Retrieve Role Options
requires authentication
Fetch available form options
Example request:
curl --request GET \
--get "https://api.test/api/v1/roles/options" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/roles/options"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create Role
requires authentication
Create a new role.
Example request:
curl --request POST \
"https://api.test/api/v1/roles/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"admin\",
\"description\": \"user with admin privileges\"
}"
const url = new URL(
"https://api.test/api/v1/roles/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "admin",
"description": "user with admin privileges"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Many Roles
requires authentication
Delete multiple roles' data by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/role/delete?force=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"roles_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/role/delete"
);
const params = {
"force": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"roles_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore Many Roles
requires authentication
Restore multiple roles data by specifying their ids.
Example request:
curl --request PATCH \
"https://api.test/api/v1/role/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"roles_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/role/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"roles_ids": [
1,
2
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Roles
Manage roles on the application
A listing of roles.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/roles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a role
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/roles/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"qtsggjrmmht\",
\"display_name\": \"Account Managers\",
\"permissions\": [
8
],
\"description\": \"Manages charity accounts on the application.\"
}"
const url = new URL(
"https://api.test/api/v1/portal/roles/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "qtsggjrmmht",
"display_name": "Account Managers",
"permissions": [
8
],
"description": "Manages charity accounts on the application."
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get a role details
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/roles/account_managers/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/roles/account_managers/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a role
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/roles/account_managers/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"vcqqhe\",
\"display_name\": \"Account Managers\",
\"permissions\": [
13
],
\"description\": \"Manages charity accounts on the application.\"
}"
const url = new URL(
"https://api.test/api/v1/portal/roles/account_managers/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "vcqqhe",
"display_name": "Account Managers",
"permissions": [
13
],
"description": "Manages charity accounts on the application."
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a role
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/roles/account_managers/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/roles/account_managers/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Search Management
APIs for managing user search
Search for a term
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/search/dolorem?term=unde&per_page=5&page=14&recent_search_terms_limit=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"per_page\": 86,
\"page\": 5,
\"recent_search_terms_limit\": 64,
\"term\": \"rcmmwcliqcivmpwvsaomtrkyqjyldqyhauaoawgjbbfuvlffnnnldrkqalxakbxaphgwbxggcvus\"
}"
const url = new URL(
"https://api.test/api/v1/client/search/dolorem"
);
const params = {
"term": "unde",
"per_page": "5",
"page": "14",
"recent_search_terms_limit": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"per_page": 86,
"page": 5,
"recent_search_terms_limit": 64,
"term": "rcmmwcliqcivmpwvsaomtrkyqjyldqyhauaoawgjbbfuvlffnnnldrkqalxakbxaphgwbxggcvus"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Page Not Found.",
"errors": null
}
Received response:
Request failed with error:
Store search history
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/client/search/history/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"sit\",
\"searchable_id\": 16,
\"searchable_type\": \"App\\\\Models\\\\Region\"
}"
const url = new URL(
"https://api.test/api/v1/client/search/history/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "sit",
"searchable_id": 16,
"searchable_type": "App\\Models\\Region"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Clear search history
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/client/search/history/clear" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"all\": true,
\"ids\": [
\"similique\"
]
}"
const url = new URL(
"https://api.test/api/v1/client/search/history/clear"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"all": true,
"ids": [
"similique"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Series
Manages series.
The list of series.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/series?drafted=with&deleted=with&page=1&order_by=name%3Adesc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"voluptas\",
\"page\": 21,
\"per_page\": 53,
\"drafted\": \"with\",
\"deleted\": \"without\",
\"order_by\": [
\"sint\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/series"
);
const params = {
"drafted": "with",
"deleted": "with",
"page": "1",
"order_by": "name:desc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "voluptas",
"page": 21,
"per_page": 53,
"drafted": "with",
"deleted": "without",
"order_by": [
"sint"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated series for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/series/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"sapiente\",
\"page\": 23,
\"per_page\": 81
}"
const url = new URL(
"https://api.test/api/v1/portal/series/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "sapiente",
"page": 23,
"per_page": 81
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a serie.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/series/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/series/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a serie
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/series/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Run\",
\"site_id\": 1,
\"description\": \"Serie description\",
\"is_draft\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/series/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Run",
"site_id": 1,
"description": "Serie description",
"is_draft": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Serie details.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/series/nemo/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/series/nemo/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a serie.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/series/autem/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/series/autem/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export Series
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/series/export?deleted=with&order_by=name%3Adesc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"error\",
\"page\": 88,
\"per_page\": 60,
\"drafted\": \"only\",
\"deleted\": \"with\",
\"order_by\": [
\"eum\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/series/export"
);
const params = {
"deleted": "with",
"order_by": "name:desc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "error",
"page": 88,
"per_page": 60,
"drafted": "only",
"deleted": "with",
"order_by": [
"eum"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update serie
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/series/corrupti/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site_id\": 1,
\"name\": \"Run\",
\"description\": \"Serie description\"
}"
const url = new URL(
"https://api.test/api/v1/portal/series/corrupti/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site_id": 1,
"name": "Run",
"description": "Serie description"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as draft one or many series
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/series/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/series/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as published one or many series
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/series/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/series/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many series
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/series/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/series/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many series
requires authentication
bodyParam ids string[] required An array list of ids associated with series. Example: [1,2]
Example request:
curl --request POST \
"https://api.test/api/v1/portal/series/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
14
]
}"
const url = new URL(
"https://api.test/api/v1/portal/series/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
14
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many series permanently Only the administrator can delete a serie permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/series/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/series/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Serie Stats
requires authentication
Get Serie Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/series/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/series/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Settings
Manages the application settings
Get the site's setting details.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/settings/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/settings/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Get the site's socials
requires authentication
Update a site's socials
requires authentication
Delete a site's social
requires authentication
Update the custom fields of a site's setting
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/settings/custom-fields/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"custom\": \"qui\"
}"
const url = new URL(
"https://api.test/api/v1/portal/settings/custom-fields/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"custom": "qui"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a custom fields of a site's setting
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/settings/custom-fields/56/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/settings/custom-fields/56/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Sites
Manages sites on the application
Paginated sites for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sites/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"quis\",
\"page\": 38,
\"per_page\": 70
}"
const url = new URL(
"https://api.test/api/v1/portal/sites/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "quis",
"page": 38,
"per_page": 70
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of sites
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sites" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sites"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a new site
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sites/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sites/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store the new site The site's settings gets created too.
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/sites/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"domain\": \"runforcharity.com\",
\"name\": \"Run For Charity\",
\"status\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/sites/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"domain": "runforcharity.com",
"name": "Run For Charity",
"status": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get a site
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sites/2/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sites/2/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a site
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sites/2/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sites/2/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a site
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/sites/2/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"domain\": \"runforcharity.com\",
\"name\": \"Run For Charity\",
\"status\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/sites/2/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"domain": "runforcharity.com",
"name": "Run For Charity",
"status": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete a site The site's settings gets deleted too.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/sites/4/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sites/4/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Socials
Finalize a Socials Action
Verify that the redirect url is valid and allow user proceed.
Sponsors
Manages sponsors.
The list of sponsors.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sponsors?drafted=with&deleted=with&page=1&order_by=name%3Adesc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"facilis\",
\"popular\": false,
\"page\": 37,
\"per_page\": 42,
\"drafted\": \"with\",
\"deleted\": \"without\",
\"order_by\": [
\"commodi\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors"
);
const params = {
"drafted": "with",
"deleted": "with",
"page": "1",
"order_by": "name:desc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "facilis",
"popular": false,
"page": 37,
"per_page": 42,
"drafted": "with",
"deleted": "without",
"order_by": [
"commodi"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated sponsors for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sponsors/all?page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"et\",
\"page\": 46,
\"per_page\": 78
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/all"
);
const params = {
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "et",
"page": 46,
"per_page": 78
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a sponsor.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sponsors/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a sponsor
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/sponsors/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"sponsor name\",
\"site_id\": 1,
\"description\": \"Sponsor description\",
\"is_draft\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "sponsor name",
"site_id": 1,
"description": "Sponsor description",
"is_draft": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Sponsor details.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sponsors/saepe/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/saepe/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a sponsor.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sponsors/veniam/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/veniam/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export Sponsors
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sponsors/export?order_by=name%3Adesc%2Ccreated_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"voluptatum\",
\"popular\": true,
\"page\": 17,
\"per_page\": 80,
\"drafted\": \"only\",
\"deleted\": \"with\",
\"order_by\": [
\"architecto\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/export"
);
const params = {
"order_by": "name:desc,created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "voluptatum",
"popular": true,
"page": 17,
"per_page": 80,
"drafted": "only",
"deleted": "with",
"order_by": [
"architecto"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update sponsor
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/sponsors/eos/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site_id\": 1,
\"name\": \"Sponsor name\",
\"description\": \"Sponsor description\"
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/eos/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site_id": 1,
"name": "Sponsor name",
"description": "Sponsor description"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as draft one or many sponsors
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/sponsors/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as published one or many sponsors
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/sponsors/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many sponsors
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/sponsors/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore One or many sponsors
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/sponsors/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many sponsors permanently Only Administrator can delete a sponsor permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/sponsors/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Sponsor Stats
requires authentication
Get Sponsor Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/sponsors/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/sponsors/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Stats
Get Stats
Get platform stats.
Example request:
curl --request GET \
--get "https://api.test/api/v1/stats" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/stats"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (200):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": true,
"message": "Platform Stats.",
"data": {
"stats": {
"users": 92,
"events": 3,
"participants": 2
}
}
}
Received response:
Request failed with error:
Team
Add Teammate
requires authentication
Add a new API client teammate.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/teammates/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--form "name=John Snow" \
--form "title=Senior Accountant" \
--form "image=@/private/var/folders/jx/nlpz41b53zv_3dyh6c2k29pr0000gn/T/phpgXlU8T"
const url = new URL(
"https://api.test/api/v1/portal/teammates/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
const body = new FormData();
body.append('name', 'John Snow');
body.append('title', 'Senior Accountant');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Update Teammate
requires authentication
Update API client teammate.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/teammates/voluptates/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--form "name=John Snow" \
--form "title=Senior Accountant" \
--form "image=@/private/var/folders/jx/nlpz41b53zv_3dyh6c2k29pr0000gn/T/phpesPukn"
const url = new URL(
"https://api.test/api/v1/portal/teammates/voluptates/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
const body = new FormData();
body.append('name', 'John Snow');
body.append('title', 'Senior Accountant');
body.append('image', document.querySelector('input[name="image"]').files[0]);
fetch(url, {
method: "PATCH",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Delete Teammate
requires authentication
Delete API client teammate.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/teammates/et/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/teammates/et/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Team
API client's team listing.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/team" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/team"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'teammates.site_id' in 'where clause' (SQL: select * from `teammates` where `teammates`.`site_id` is null)",
"exception": "Illuminate\\Database\\QueryException",
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 760,
"trace": [
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 720,
"function": "runQueryCallback",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 422,
"function": "run",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2706,
"function": "select",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2694,
"function": "runSelect",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 3230,
"function": "Illuminate\\Database\\Query\\{closure}",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2695,
"function": "onceWithColumns",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 710,
"function": "get",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 694,
"function": "getModels",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
"line": 674,
"function": "get",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Controllers/TeammateController.php",
"line": 33,
"function": "all",
"class": "Illuminate\\Database\\Eloquent\\Model",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
"line": 54,
"function": "index",
"class": "App\\Http\\Controllers\\TeammateController",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
"line": 43,
"function": "callAction",
"class": "Illuminate\\Routing\\Controller",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 260,
"function": "dispatch",
"class": "Illuminate\\Routing\\ControllerDispatcher",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
"line": 205,
"function": "runController",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 798,
"function": "run",
"class": "Illuminate\\Routing\\Route",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Routing\\{closure}",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/HandleRedirectMiddleware.php",
"line": 40,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\HandleRedirectMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Services/ApiClient/ApiClientSettings.php",
"line": 77,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureApiRequestHostIsValidClient.php",
"line": 31,
"function": "clientRequestAuthorizationHandshake",
"class": "App\\Services\\ApiClient\\ApiClientSettings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureApiRequestHostIsValidClient",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/ClientAuthenticationMiddleware.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\ClientAuthenticationMiddleware",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 50,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureJsonResponse.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureJsonResponse",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 799,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 776,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 740,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 729,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 190,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 40,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 86,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 165,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 134,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 299,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 287,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 92,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 45,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 209,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 166,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 124,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 71,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 49,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 51,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 37,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 661,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 183,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Command/Command.php",
"line": 312,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 153,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 1022,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 314,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 168,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Application.php",
"line": 102,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 155,
"function": "run",
"class": "Illuminate\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/artisan",
"line": 37,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
}
]
}
Received response:
Request failed with error:
Get Teammate
Retrieve specific teammate.
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/teammates/soluta/show" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/client/teammates/soluta/show"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (500):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'teammates.site_id' in 'where clause' (SQL: select * from `teammates` where `ref` = soluta and `teammates`.`site_id` is null limit 1)",
"exception": "Illuminate\\Database\\QueryException",
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 760,
"trace": [
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 720,
"function": "runQueryCallback",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Connection.php",
"line": 422,
"function": "run",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2706,
"function": "select",
"class": "Illuminate\\Database\\Connection",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2694,
"function": "runSelect",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 3230,
"function": "Illuminate\\Database\\Query\\{closure}",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php",
"line": 2695,
"function": "onceWithColumns",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 710,
"function": "get",
"class": "Illuminate\\Database\\Query\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php",
"line": 694,
"function": "getModels",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Concerns/BuildsQueries.php",
"line": 296,
"function": "get",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php",
"line": 2042,
"function": "first",
"class": "Illuminate\\Database\\Eloquent\\Builder",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/ImplicitRouteBinding.php",
"line": 61,
"function": "resolveRouteBinding",
"class": "Illuminate\\Database\\Eloquent\\Model",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 947,
"function": "resolveForRoute",
"class": "Illuminate\\Routing\\ImplicitRouteBinding",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
"line": 41,
"function": "substituteImplicitBindings",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/app/Http/Middleware/EnsureJsonResponse.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "App\\Http\\Middleware\\EnsureJsonResponse",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 799,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 776,
"function": "runRouteWithinStack",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 740,
"function": "runRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
"line": 729,
"function": "dispatchToRoute",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 190,
"function": "dispatch",
"class": "Illuminate\\Routing\\Router",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 141,
"function": "Illuminate\\Foundation\\Http\\{closure}",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php",
"line": 31,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
"line": 21,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php",
"line": 40,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\TrimStrings",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
"line": 27,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
"line": 86,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php",
"line": 62,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\HandleCors",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php",
"line": 39,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 180,
"function": "handle",
"class": "Illuminate\\Http\\Middleware\\TrustProxies",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
"line": 116,
"function": "Illuminate\\Pipeline\\{closure}",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 165,
"function": "then",
"class": "Illuminate\\Pipeline\\Pipeline",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
"line": 134,
"function": "sendRequestThroughRouter",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 299,
"function": "handle",
"class": "Illuminate\\Foundation\\Http\\Kernel",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 287,
"function": "callLaravelOrLumenRoute",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 92,
"function": "makeApiCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 45,
"function": "makeResponseCall",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Strategies/Responses/ResponseCalls.php",
"line": 35,
"function": "makeResponseCallIfConditionsPass",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 209,
"function": "__invoke",
"class": "Knuckles\\Scribe\\Extracting\\Strategies\\Responses\\ResponseCalls",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 166,
"function": "iterateThroughStrategies",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Extracting/Extractor.php",
"line": 95,
"function": "fetchResponses",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 124,
"function": "processRoute",
"class": "Knuckles\\Scribe\\Extracting\\Extractor",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 71,
"function": "extractEndpointsInfoFromLaravelApp",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/GroupedEndpoints/GroupedEndpointsFromApp.php",
"line": 49,
"function": "extractEndpointsInfoAndWriteToDisk",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/knuckleswtf/scribe/src/Commands/GenerateDocumentation.php",
"line": 51,
"function": "get",
"class": "Knuckles\\Scribe\\GroupedEndpoints\\GroupedEndpointsFromApp",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 36,
"function": "handle",
"class": "Knuckles\\Scribe\\Commands\\GenerateDocumentation",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Util.php",
"line": 41,
"function": "Illuminate\\Container\\{closure}",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 93,
"function": "unwrapIfClosure",
"class": "Illuminate\\Container\\Util",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php",
"line": 37,
"function": "callBoundMethod",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Container/Container.php",
"line": 661,
"function": "call",
"class": "Illuminate\\Container\\BoundMethod",
"type": "::"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 183,
"function": "call",
"class": "Illuminate\\Container\\Container",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Command/Command.php",
"line": 312,
"function": "execute",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Command.php",
"line": 153,
"function": "run",
"class": "Symfony\\Component\\Console\\Command\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 1022,
"function": "run",
"class": "Illuminate\\Console\\Command",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 314,
"function": "doRunCommand",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/symfony/console/Application.php",
"line": 168,
"function": "doRun",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Console/Application.php",
"line": 102,
"function": "run",
"class": "Symfony\\Component\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php",
"line": 155,
"function": "run",
"class": "Illuminate\\Console\\Application",
"type": "->"
},
{
"file": "/Users/daveabiola/code/api/artisan",
"line": 37,
"function": "handle",
"class": "Illuminate\\Foundation\\Console\\Kernel",
"type": "->"
}
]
}
Received response:
Request failed with error:
Testing
Testing sections on the application
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/testing" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/testing"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Two-factor authentication
List of 2fa methods
requires authentication
Get all actives 2fa methods available in the platform.
Example request:
curl --request GET \
--get "https://api.test/api/v1/2fa" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/2fa"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Enable a 2fa method
User enables a 2fa method, and it's done in two steps. When a user enables a 2fa method for the first time, we generate recovery codes a list of 10 codes of 8 characters that can be used once to bypass the 2fa security in case the user loses his phone. Endpoints where the 2fa are applied for now: Login, Password Update
Step 1: We initialize the 2fa depending on the method chosen by the user. For the sms & email case, an OTP code will be sent to the user via a specific driver (sms or mail), and for the Google authentication case a QR code will be generated
Step 2: We validate the OTP code entered by the user and enable the 2fa method.
Example request:
curl --request POST \
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/enable?step=1+or+2" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"totp_code\": \"675899\"
}"
const url = new URL(
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/enable"
);
const params = {
"step": "1 or 2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"totp_code": "675899"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Disable a 2fa method
User disable a 2fa method, and it's done in 2 steps:
Step 1: We sent an OTP code for sms and email verification,and for Google auth method the user generate an otp code from the authentication app
Step 2: We validate the OTP code entered by the user, and disable the method.
Example request:
curl --request POST \
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/disable?step=1+or+2" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"totp_code\": \"123456 or ABCDEFGHI(recovery code)\"
}"
const url = new URL(
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/disable"
);
const params = {
"step": "1 or 2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"totp_code": "123456 or ABCDEFGHI(recovery code)"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark a 2fa method as default
When a user has more than one method enabled, he can set one as the default
Example request:
curl --request POST \
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/default" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/default"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Send 2fa code
Use this endpoint to send an otp code in case the user has enabled a 2fa method(Only Email or Sms verification method). It can be used if a route required a 2fa such as the Login endpoint
Example request:
curl --request POST \
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/otp/send" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/2fa/975dcf12-eda2-4437-8c96-6df4e790d074/otp/send"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Generate a 2fa token
Generate a temporal token that will be used by certain endpoint in case the 2fa method has been enabled by the user. For now the token will be used when the user want to update his password and generate new recovery codes.
Example request:
curl --request POST \
"https://api.test/api/v1/2fa/token/generate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"totp_code\": \"675899 or APXAEFENNM(recovery code)\"
}"
const url = new URL(
"https://api.test/api/v1/2fa/token/generate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"totp_code": "675899 or APXAEFENNM(recovery code)"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
2fa token validity
Check if the 2fa token is valid
Example request:
curl --request POST \
"https://api.test/api/v1/2fa/token/valid" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"totp_token\": \"e38ceddc464281b6205191473388d8787270f070\"
}"
const url = new URL(
"https://api.test/api/v1/2fa/token/valid"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"totp_token": "e38ceddc464281b6205191473388d8787270f070"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Renew recovery codes
we generate recovery codes a list of 10 codes of 8 characters that can be used once to bypass the 2fa security in case the user lost his phone.
Example request:
curl --request POST \
"https://api.test/api/v1/2fa/recovery-codes/generate" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"totp_token\": \"e38ceddc464281b6205191473388d8787270f070\"
}"
const url = new URL(
"https://api.test/api/v1/2fa/recovery-codes/generate"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"totp_token": "e38ceddc464281b6205191473388d8787270f070"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Upload
APIs for managing uploads
The list of uploads
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/uploads?per_page=10&type=image&term=image&year=2021&page=1&order_by=created_at%3Adesc" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"per_page\": 41,
\"page\": 50,
\"type\": \"video\",
\"year\": \"2024\",
\"term\": \"nemo\",
\"order_by\": [
\"pariatur\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/uploads"
);
const params = {
"per_page": "10",
"type": "image",
"term": "image",
"year": "2021",
"page": "1",
"order_by": "created_at:desc",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"per_page": 41,
"page": 50,
"type": "video",
"year": "2024",
"term": "nemo",
"order_by": [
"pariatur"
]
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Show the form for creating a new resource.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/show" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/show"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
upload files
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/uploads/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"media\": [
{
\"device_versions\": {
\"card\": \"qui\",
\"mobile\": \"est\",
\"tablet\": \"voluptatem\",
\"desktop\": \"occaecati\"
}
}
]
}"
const url = new URL(
"https://api.test/api/v1/portal/uploads/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"media": [
{
"device_versions": {
"card": "qui",
"mobile": "est",
"tablet": "voluptatem",
"desktop": "occaecati"
}
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update file
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"media\": [
{
\"device_versions\": {
\"card\": \"autem\",
\"mobile\": \"minus\",
\"tablet\": \"optio\",
\"desktop\": \"amet\"
}
}
]
}"
const url = new URL(
"https://api.test/api/v1/portal/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"media": [
{
"device_versions": {
"card": "autem",
"mobile": "minus",
"tablet": "optio",
"desktop": "amet"
}
}
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete uploaded resource
requires authentication
Remove the specified resource from storage.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/uploads/97620161-69c6-4b12-b219-d99e428fbdb2/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Delete multiple uploaded resources
requires authentication
Remove multiple resources from storage.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/uploads/delete-many" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"uploads\": [
\"9762db71-f5a6-41c4-913e-90b8aebad733\",
\"9762db71-f5a6-41c4-913e-90b8aebad733\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/uploads/delete-many"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"uploads": [
"9762db71-f5a6-41c4-913e-90b8aebad733",
"9762db71-f5a6-41c4-913e-90b8aebad733"
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get image version storage link
requires authentication
Get the storage link for the specified image version.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/image/version/storage-link?image_path=uploads%2Fimages%2F2021%2F09%2F9762db71-f5a6-41c4-913e-90b8aebad733.jpg&device_version=card" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"image_path\": \"hic\",
\"image_version\": \"iure\"
}"
const url = new URL(
"https://api.test/api/v1/portal/image/version/storage-link"
);
const params = {
"image_path": "uploads/images/2021/09/9762db71-f5a6-41c4-913e-90b8aebad733.jpg",
"device_version": "card",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"image_path": "hic",
"image_version": "iure"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
User
Retrieve Auth/Request User
requires authentication
Get currently authenticated user.
Example request:
curl --request GET \
--get "https://api.test/api/v1/users/current" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/users/current"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update Password
requires authentication
A user can update their password.
Example request:
curl --request PATCH \
"https://api.test/api/v1/users/975dcf22-21a8-406a-9a83-6b943cea0508/update-password" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"old_password\": \"oldPASSword12@\",
\"new_password\": \"newPASSword123@\"
}"
const url = new URL(
"https://api.test/api/v1/users/975dcf22-21a8-406a-9a83-6b943cea0508/update-password"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"old_password": "oldPASSword12@",
"new_password": "newPASSword123@"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
User Settings
requires authentication
Get settings information for a user.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/975dcf12-eda2-4437-8c96-6df4e790d074/settings" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf12-eda2-4437-8c96-6df4e790d074/settings"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update Personal Info
requires authentication
Allows User/Admin to Update their/user's personal info.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/update-personal-info" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"first_name\": \"Wendy\",
\"last_name\": \"Mike\",
\"email\": \"user@email.com\",
\"phone\": \"+12333333333\",
\"gender\": \"female\",
\"dob\": \"2000-12-31\",
\"country\": \"Nigeria\",
\"state\": \"Lagos\",
\"city\": \"Ikeja\",
\"postcode\": \"100271\",
\"address\": \"1, Lagos Road, Ikeja\",
\"nationality\": \"British\",
\"occupation\": \"Engineering\",
\"passport_number\": \"12347474686\",
\"bio\": \"non\",
\"tshirt_size\": \"xl\",
\"emergency_contact_name\": \"Peter Parker\",
\"emergency_contact_phone\": \"09012345678\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/update-personal-info"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"first_name": "Wendy",
"last_name": "Mike",
"email": "user@email.com",
"phone": "+12333333333",
"gender": "female",
"dob": "2000-12-31",
"country": "Nigeria",
"state": "Lagos",
"city": "Ikeja",
"postcode": "100271",
"address": "1, Lagos Road, Ikeja",
"nationality": "British",
"occupation": "Engineering",
"passport_number": "12347474686",
"bio": "non",
"tshirt_size": "xl",
"emergency_contact_name": "Peter Parker",
"emergency_contact_phone": "09012345678"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Socials
requires authentication
Allows User/Admin to Update their/user's socials info.
Remove Socials
requires authentication
Allows Deletion of socials info.
Set/Switch Active Role
requires authentication
Admin can switch between their assigned roles.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/switch-active-role" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"role\": \"participant\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/switch-active-role"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"role": "participant"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
User Payment Cards
requires authentication
Payment cards added to user's account user.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/cards" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/cards"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Add Payment Card
requires authentication
Add a payment card to user account.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/add-card" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"card_name\": \"Sara Lulu\",
\"card_number\": \"1234123412341234\",
\"expiry_date\": \"01\\/12\\/2026\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/add-card"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"card_name": "Sara Lulu",
"card_number": "1234123412341234",
"expiry_date": "01\/12\/2026"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove Payment Card
requires authentication
Delete a payment card from user account.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/cards/97682ea4-7e58-4984-983e-680b664af0ec/remove" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/cards/97682ea4-7e58-4984-983e-680b664af0ec/remove"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Users' Listing
requires authentication
Get paginated application users' list.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users?deleted=with&role=administrator&term=john%40email&per_page=20&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&year=2023&period=24h&month=1&status=verified" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"per_page\": 34,
\"deleted\": \"with\",
\"order_by\": [
\"quas\"
],
\"role\": \"runthrough_data\",
\"term\": \"wlkxhlwnl\",
\"status\": \"active\",
\"verification\": \"unverified\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users"
);
const params = {
"deleted": "with",
"role": "administrator",
"term": "john@email",
"per_page": "20",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"year": "2023",
"period": "24h",
"month": "1",
"status": "verified",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"per_page": 34,
"deleted": "with",
"order_by": [
"quas"
],
"role": "runthrough_data",
"term": "wlkxhlwnl",
"status": "active",
"verification": "unverified"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Retrieve User Options
requires authentication
Fetch available form options
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Retrieve User
requires authentication
Get specific user by their ref attribute.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/975dcf12-eda2-4437-8c96-6df4e790d074/show" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf12-eda2-4437-8c96-6df4e790d074/show"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Retrieve User by email address
requires authentication
Get specific user by their email attribute.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/Mark@runforcharity.com/_show" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/Mark@runforcharity.com/_show"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export users
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/export?deleted=with&role=administrator&term=john%40email&per_page=20&order_by=first_name%3Adesc%2Clast_name%3Aasc%2Cfull_name%3Adesc&year=2023&period=24h&month=1&status=active" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"per_page\": 64,
\"deleted\": \"with\",
\"order_by\": [
\"beatae\"
],
\"role\": \"content_manager\",
\"term\": \"q\",
\"status\": \"active\",
\"verification\": \"unverified\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users/export"
);
const params = {
"deleted": "with",
"role": "administrator",
"term": "john@email",
"per_page": "20",
"order_by": "first_name:desc,last_name:asc,full_name:desc",
"year": "2023",
"period": "24h",
"month": "1",
"status": "active",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"per_page": 64,
"deleted": "with",
"order_by": [
"beatae"
],
"role": "content_manager",
"term": "q",
"status": "active",
"verification": "unverified"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit User
requires authentication
Show specific user's account information for editing.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/975dcf12-eda2-4437-8c96-6df4e790d074/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf12-eda2-4437-8c96-6df4e790d074/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Login
requires authentication
Admin can log in as a user.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/admin-login-as" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/admin-login-as"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create User
requires authentication
Create a user account.
Example request:
curl --request POST \
"https://api.test/api/v1/portal/users/store" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--form "first_name=Wendy" \
--form "last_name=Mike" \
--form "email=user@email.com" \
--form "phone=+12333333333" \
--form "gender=female" \
--form "dob=2000-12-31" \
--form "roles[]=administrator" \
--form "avatar=@/private/var/folders/jx/nlpz41b53zv_3dyh6c2k29pr0000gn/T/phpkTP7E8"
const url = new URL(
"https://api.test/api/v1/portal/users/store"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
const body = new FormData();
body.append('first_name', 'Wendy');
body.append('last_name', 'Mike');
body.append('email', 'user@email.com');
body.append('phone', '+12333333333');
body.append('gender', 'female');
body.append('dob', '2000-12-31');
body.append('roles[]', 'administrator');
body.append('avatar', document.querySelector('input[name="avatar"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
Received response:
Request failed with error:
Update User
requires authentication
Update edited user account information.
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"first_name\": \"Wendy\",
\"last_name\": \"Mike\",
\"email\": \"user@email.com\",
\"phone\": \"+12333333333\",
\"gender\": \"female\",
\"dob\": \"2000-12-31\",
\"roles\": [
\"administrator\",
\"developer\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"first_name": "Wendy",
"last_name": "Mike",
"email": "user@email.com",
"phone": "+12333333333",
"gender": "female",
"dob": "2000-12-31",
"roles": [
"administrator",
"developer"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Update Role
requires authentication
Update Role assigned to User.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/update-roles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"roles\": [
\"administrator\",
\"developer\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/update-roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"roles": [
"administrator",
"developer"
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Add Many Users to Site
requires authentication
Add multiple users to current site by specifying their ids.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/add-to-site" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"users_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/add-to-site"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"users_ids": [
1,
2
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove User from Site
requires authentication
Multi-remove user(s) from site.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/remove-from-site?force=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"users_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/remove-from-site"
);
const params = {
"force": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"users_ids": [
1,
2
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete Many Users
requires authentication
Delete multiple users' data by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/users/delete?force=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"users_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/delete"
);
const params = {
"force": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"users_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore Many Users
requires authentication
Restore multiple users data by specifying their ids.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"users_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"users_ids": [
1,
2
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Site Users Action
requires authentication
Take an action by specifying their ids and the action.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/take-action" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"users_ids\": [
1,
2
],
\"action\": \"restrict\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users/take-action"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"users_ids": [
1,
2
],
"action": "restrict"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Grant Permission
requires authentication
Admin grant permission to user.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/grant-permission" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"permission_name\": \"suspend-users\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/grant-permission"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"permission_name": "suspend-users"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Revoke Permission
requires authentication
Admin can revoke a user permission.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/revoke-permission" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"permission_name\": \"eligendi\"
}"
const url = new URL(
"https://api.test/api/v1/portal/users/975dcf22-21a8-406a-9a83-6b943cea0508/revoke-permission"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"permission_name": "eligendi"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Multi Assign Roles
requires authentication
Admin can assign multiple users to multiple roles.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/assign-multi-roles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"roles\": [
1,
2
],
\"users\": [
4,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/assign-multi-roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"roles": [
1,
2
],
"users": [
4,
2,
3
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Multi Assign Permissions
requires authentication
Admin can grant multiple users multiple permissions.
Example request:
curl --request PATCH \
"https://api.test/api/v1/portal/users/assign-multi-permissions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"permissions\": [
1,
2
],
\"users\": [
4,
2,
3
]
}"
const url = new URL(
"https://api.test/api/v1/portal/users/assign-multi-permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"permissions": [
1,
2
],
"users": [
4,
2,
3
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Users Roles Stats
requires authentication
Get User Role Stats.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/stats/summary?role=administrator&year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/stats/summary"
);
const params = {
"role": "administrator",
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Users Registration Stats
requires authentication
Get User Registration Chart data.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/users/stats/chart?role=administrator&year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/users/stats/chart"
);
const params = {
"role": "administrator",
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Venues
Manages venues on the application
Paginated venues for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/venues/all?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&city=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"rerum\",
\"country\": \"modi\",
\"page\": 66,
\"per_page\": 70
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/all"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"city": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "rerum",
"country": "modi",
"page": 66,
"per_page": 70
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
The list of venues
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/venues?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&city=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&faqs=with&order_by=name%3Adesc%2Ccreated_at%3Adesc&deleted=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"accusamus\",
\"country\": \"harum\",
\"faqs\": \"with\",
\"page\": 9,
\"per_page\": 52,
\"deleted\": \"without\",
\"order_by\": [
\"delectus\"
],
\"drafted\": \"with\"
}"
const url = new URL(
"https://api.test/api/v1/portal/venues"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"city": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"faqs": "with",
"order_by": "name:desc,created_at:desc",
"deleted": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "accusamus",
"country": "harum",
"faqs": "with",
"page": 9,
"per_page": 52,
"deleted": "without",
"order_by": [
"delectus"
],
"drafted": "with"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Create a venue
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/venues/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/venues/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Store a venue
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/venues/create" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"venue\",
\"site_id\": 2,
\"city_id\": 2,
\"description\": \"Description of the venue\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"noindex\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
{
\"section\": \"Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.\",
\"description\": \"Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\\n\\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\\n\\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\\n\\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\\n\\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\\n\\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.\",
\"details\": [
\"enim\"
]
}
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"molestias\"
],
\"is_draft\": false
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/create"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "venue",
"site_id": 2,
"city_id": 2,
"description": "Description of the venue",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"noindex"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
{
"section": "Mollit tempor eiusmod dolor amet laboris ad officia cillum aute ut consequat.",
"description": "Ad magna dolor eiusmod sint nostrud quis laborum labore sit tempor. Irure irure esse ea eu amet duis enim. Eiusmod esse anim eiusmod exercitation ex. Fugiat sint adipisicing dolore culpa. Et eiusmod et sit aliquip qui. Consectetur deserunt sunt proident exercitation cillum fugiat cillum elit veniam eiusmod qui anim.\n\n Tempor et incididunt laborum excepteur ad aliquip veniam. Ex qui deserunt occaecat non in tempor adipisicing mollit voluptate. Tempor ex eiusmod elit Lorem sint ea. Officia dolore minim Lorem reprehenderit eiusmod ut tempor ex Lorem in enim ex exercitation.\n\n Sunt minim eiusmod excepteur in aute velit aute cupidatat culpa nisi laborum fugiat mollit. Enim consequat do nisi do consequat occaecat cillum. Qui ea et quis amet minim commodo nostrud.\n\n Dolore aliquip incididunt labore ipsum excepteur sint adipisicing aute ea mollit. Eu commodo irure reprehenderit ipsum laboris excepteur consectetur et pariatur. Aliquip ipsum ex occaecat exercitation ut mollit nisi. Irure est nisi consectetur aliquip adipisicing exercitation anim aliqua. Pariatur sint labore non aliquip aliqua fugiat amet esse nisi dolor ad ullamco. Excepteur aute aliquip eiusmod commodo incididunt commodo aliqua aute velit id proident adipisicing est.\n\n Aliqua mollit nisi officia laborum irure sint cillum nulla aliquip velit non tempor officia. Elit veniam cillum consectetur fugiat pariatur exercitation deserunt voluptate officia minim excepteur quis elit ullamco. Enim adipisicing excepteur deserunt eiusmod reprehenderit consequat fugiat exercitation. Dolor sint laborum consequat occaecat adipisicing aliqua enim ad nulla. Cillum exercitation cillum adipisicing ullamco. Anim occaecat officia voluptate enim dolor in consectetur consectetur consectetur Lorem sit id. Sunt eu excepteur ad eu esse.\n\n Id id exercitation reprehenderit voluptate tempor. Excepteur tempor ipsum dolore nulla in ea deserunt nostrud Lorem amet elit ad. Officia id laboris sit enim enim duis cillum veniam non irure commodo veniam duis. Nulla culpa nulla ad laborum. Reprehenderit dolor eiusmod reprehenderit adipisicing laboris Lorem dolore. In eu quis ipsum labore sit irure.",
"details": [
"enim"
]
}
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"molestias"
],
"is_draft": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Get a venue's details.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Edit a venue
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/edit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/edit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Export venues
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/venues/export?faqs=with&order_by=name%3Adesc%2Ccreated_at%3Adesc&deleted=with&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"doloribus\",
\"country\": \"sequi\",
\"faqs\": \"with\",
\"page\": 71,
\"per_page\": 29,
\"deleted\": \"without\",
\"order_by\": [
\"laborum\"
],
\"drafted\": \"with\"
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/export"
);
const params = {
"faqs": "with",
"order_by": "name:desc,created_at:desc",
"deleted": "with",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "doloribus",
"country": "sequi",
"faqs": "with",
"page": 71,
"per_page": 29,
"deleted": "without",
"order_by": [
"laborum"
],
"drafted": "with"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Update a venue
requires authentication
Example request:
curl --request PUT \
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/update" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"site_id\": 1,
\"name\": \"venue name\",
\"city_id\": 1,
\"description\": \"venue description\",
\"meta\": {
\"title\": \"Title\",
\"description\": \"Some description.\",
\"keywords\": [
\"tag\"
],
\"robots\": [
\"noindex\"
],
\"canonical_url\": \"https:\\/\\/example.com\"
},
\"faqs\": [
\"eum\"
],
\"image\": \"97ad9df6-bc08-4729-b95e-3671dc6192c2\",
\"gallery\": [
\"consequuntur\"
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/update"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"site_id": 1,
"name": "venue name",
"city_id": 1,
"description": "venue description",
"meta": {
"title": "Title",
"description": "Some description.",
"keywords": [
"tag"
],
"robots": [
"noindex"
],
"canonical_url": "https:\/\/example.com"
},
"faqs": [
"eum"
],
"image": "97ad9df6-bc08-4729-b95e-3671dc6192c2",
"gallery": [
"consequuntur"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as draft one or many venues
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/venues/draft" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/draft"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Mark as published one or many venues
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/venues/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many venues
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/venues/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Restore one or many venues
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/venues/restore" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete one or many venues (Permanently) Only the administrator can delete a venue permanently.
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/venues/delete/force" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/delete/force"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete the venue's image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-d927-4a44-8fec-3daacee89678/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/image/97ad9df6-d927-4a44-8fec-3daacee89678/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many Faqs
requires authentication
Delete multiple venue FAQS by specifying their ids
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faqs_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faqs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faqs_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Delete One/Many FAQ Details
requires authentication
Delete multiple Venue FAQ details by specifying their ids.
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"faq_details_ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/venues/97ad9df6-bc08-4729-b95e-3671dc6192c2/97ad9df6-bc08-4729-b95e-3671dc6192c2/delete-faq-details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"faq_details_ids": [
1,
2
]
};
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Remove faq details image
requires authentication
Example request:
curl --request DELETE \
"https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/omnis/faq-details-image/et/delete" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8/97f9bd34-499a-4a5e-bd6f-6e0436a0ca78/omnis/faq-details-image/et/delete"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Venue Stats
requires authentication
Get Venue Stats Summary.
Example request:
curl --request GET \
--get "https://api.test/api/v1/portal/venues/stats/summary?year=2022&period=24h" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0"
const url = new URL(
"https://api.test/api/v1/portal/venues/stats/summary"
);
const params = {
"year": "2022",
"period": "24h",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Paginated venues for dropdown fields.
requires authentication
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/venues/all?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&city=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"architecto\",
\"country\": \"rerum\",
\"page\": 43,
\"per_page\": 46
}"
const url = new URL(
"https://api.test/api/v1/client/venues/all"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"city": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "architecto",
"country": "rerum",
"page": 43,
"per_page": 46
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Unauthorized",
"errors": null
}
Received response:
Request failed with error:
Venues - Client
The list of venues
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/venues?country=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d®ion=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&city=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&popular=1&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"term\": \"expedita\",
\"country\": \"sed\",
\"popular\": true,
\"page\": 11,
\"per_page\": 15
}"
const url = new URL(
"https://api.test/api/v1/client/venues"
);
const params = {
"country": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"region": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"city": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"popular": "1",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"term": "expedita",
"country": "sed",
"popular": true,
"page": 11,
"per_page": 15
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"region": [
"The region is invalid."
],
"city": [
"The city is invalid."
]
}
}
Received response:
Request failed with error:
Get the events under a venue
Example request:
curl --request GET \
--get "https://api.test/api/v1/client/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8?category=97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d&start_date=%2222-02-2018%22&end_date=%2222-02-2023%22&price[]=12&price[]=80&virtual_events=include&skip=6&take=9&page=1" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"laboriosam\",
\"start_date\": \"27-05-2024\",
\"end_date\": \"2025-01-07\",
\"price\": [
2
],
\"region\": \"qui\",
\"address\": \"autem\",
\"virtual_events\": \"include\",
\"date\": \"placeat\",
\"page\": 27,
\"per_page\": 21
}"
const url = new URL(
"https://api.test/api/v1/client/venues/987a4070-1092-4e2a-9a81-faf3cbae77e8"
);
const params = {
"category": "97d417f7-082f-4ca8-bc4a-ba9b2cb3fc4d",
"start_date": ""22-02-2018"",
"end_date": ""22-02-2023"",
"price[0]": "12",
"price[1]": "80",
"virtual_events": "include",
"skip": "6",
"take": "9",
"page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "laboriosam",
"start_date": "27-05-2024",
"end_date": "2025-01-07",
"price": [
2
],
"region": "qui",
"address": "autem",
"virtual_events": "include",
"date": "placeat",
"page": 27,
"per_page": 21
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Example response (422):
Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
{
"status": false,
"message": "Please resolve the warnings!",
"errors": {
"category": [
"The category is invalid."
],
"end_date": [
"The end date does not match the format d-m-Y."
],
"price": [
"The price must contain 2 items."
],
"region": [
"The region is invalid."
]
}
}
Received response:
Request failed with error:
Website - Charity Signups (Enquiries)
Manages charity signups (enquiries) from websites
Create a charity signup (enquiry)
Example request:
curl --request POST \
"https://api.test/api/v1/client/charity-signups/create" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"name\": \"Lindsey Lodge Hospice and Healthcare\",
\"number\": 3837340,
\"sector\": \"Cancer - General\",
\"website\": \"https:\\/\\/www.againstbreastcancer.org.uk\\/\",
\"address_1\": \"Sir John Mills House, 12 Whitehorse Mews\",
\"address_2\": \"37 Westminster Bridge Road\",
\"city\": \"London\",
\"postcode\": \"SE1 7QD\",
\"contact_name\": \"Paul Kelleman\",
\"contact_email\": \"russel93@example.com\",
\"contact_phone\": \"+447743780217\",
\"terms_conditions\": true,
\"privacy_policy\": true
}"
const url = new URL(
"https://api.test/api/v1/client/charity-signups/create"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"name": "Lindsey Lodge Hospice and Healthcare",
"number": 3837340,
"sector": "Cancer - General",
"website": "https:\/\/www.againstbreastcancer.org.uk\/",
"address_1": "Sir John Mills House, 12 Whitehorse Mews",
"address_2": "37 Westminster Bridge Road",
"city": "London",
"postcode": "SE1 7QD",
"contact_name": "Paul Kelleman",
"contact_email": "russel93@example.com",
"contact_phone": "+447743780217",
"terms_conditions": true,
"privacy_policy": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
regions
Mark as published one or many regions
requires authentication
Example request:
curl --request POST \
"https://api.test/api/v1/portal/regions/publish" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-Client-Key: 15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0" \
--data "{
\"ids\": [
1,
2
]
}"
const url = new URL(
"https://api.test/api/v1/portal/regions/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
"X-Client-Key": "15efff517947ca8fbf0e87ffafcd6e9c8e778415dfe60f4e570ecbdf76e8ebc0",
};
let body = {
"ids": [
1,
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error: