Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.67 KB

create_a_publication.markdown

File metadata and controls

55 lines (42 loc) · 1.67 KB

Publication API

Create a publication

POST /api/v1/albums/:album_id/publications

Request

Headers

Authorization: Token token="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTQ3NTk1NDMsImlhdCI6MTU1NDc0NTE0MywidXNlcl9pZCI6IjI2NjZhODhiLWMzN2ItNDY2Ny1hZTMxLWI5MjIxNTJiMGVmOCJ9.On77oJVhqm8kzvSJQwpSYNp8o3CuZZkl6rDVhnj--qg"
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /api/v1/albums/00100000123BB245/publications

Response

Headers

Cache-Control: no-cache, no-store
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Type: application/json; charset=utf-8
X-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NTQ3NTk1NDMsImlhdCI6MTU1NDc0NTE0MywidXNlcl9pZCI6IjI2NjZhODhiLWMzN2ItNDY2Ny1hZTMxLWI5MjIxNTJiMGVmOCJ9.On77oJVhqm8kzvSJQwpSYNp8o3CuZZkl6rDVhnj--qg
Vary: Accept-Encoding
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
X-Request-Id: faa73957-f944-4045-90dd-411e40cf3ae2
X-Runtime: 0.018503
X-Frame-Options: DENY
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Content-Length: 323

Status

200 OK

Body

{
  "public_id": "c663a187-1e66-4cbb-8782-e4a3eb49e766",
  "thumbnail": "https://localhost:5001/publications/c663a187-1e66-4cbb-8782-e4a3eb49e766/thumbnail",
  "title": "Album published on 2019-04-08",
  "description": "0 photos available\nPowered by SharinPix",
  "aux_text": "shared an album:",
  "entity_id": "",
  "views_count": 0,
  "opens_count": 0
}