Advertisers
Endpoints
Summary
Create Advertiser
List Advertisers
Get Advertiser
Edit Advertiser
Last updated
Last updated
GET /v1/advertisers HTTP/1.1
Host: api.adquick.com
Accept: */*
{
"records": [
{
"id": 1,
"name": "text",
"website": "text",
"brand": null
}
],
"pagination": {
"current_page": 1,
"next_page": null,
"prev_page": null,
"total_pages": 1,
"total_entries": 1
}
}POST /v1/advertisers HTTP/1.1
Host: api.adquick.com
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": "text",
"website": "text",
"brand": null
}{
"id": 1,
"name": "text",
"website": "text",
"brand": null
}GET /v1/advertisers/{id} HTTP/1.1
Host: api.adquick.com
Accept: */*
{
"id": 1,
"name": "text",
"website": "text",
"brand": null
}PATCH /v1/advertisers/{id} HTTP/1.1
Host: api.adquick.com
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"name": "text",
"website": "text",
"brand": null
}{
"id": 1,
"name": "text",
"website": "text",
"brand": null
}POST /advertisers #=> Create advertiser
GET /advertisers #=> List advertisers
GET /advertisers/:id #=> Get specific advertiser
PATCH /advertisers/:id #=> Edit advertiserPOST /advertisers
Expects:
- name
- website
- brand (optional)
Returns:
- id
- name
- websiteGET /advertisers
Returns: paginated array of advertiser objects inside a "records" keyGET /advertisers/:id
Returns:
{
"records": [
{
"id": 1,
"name": "First Advertiser",
"website": "www.first.com",
"brand": null
},
{
"id": 2,
"name": "Second Advertiser",
"website": "www.second.com",
"brand": null
}
],
"pagination": {
"current_page": 2,
"next_page": null,
"prev_page": 1,
"total_pages": 2,
"total_entries": 4
}
}PATCH /advertisers/:id
Expects: any combination of name, website, and/or brand
Returns:
- id