Skip to main content
POST
/
api
/
v1
/
articles
/
{article}
/
external-url
Store external URL for an article
curl --request POST \
  --url https://rankyak.com/api/v1/articles/{article}/external-url \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "external_url": "https://example.com/posts/123"
}'
{
  "id": 123,
  "slug": "<string>",
  "excerpt": "<string>",
  "title": "<string>",
  "meta_title": "<string>",
  "meta_description": "<string>",
  "html": "<string>",
  "markdown": "<string>",
  "header_image_url": "<string>",
  "publish_at": "2023-11-07T05:31:56Z",
  "published_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

article
integer
required

Body

application/json
external_url
string<uri>
required
Example:

"https://example.com/posts/123"

Response

Successful operation

id
integer
slug
string
excerpt
string
title
string
meta_title
string
meta_description
string
html
string
markdown
string
header_image_url
string<uri>
publish_at
string<date-time>
published_at
string<date-time>
I