Arguments
shortLinkReqInput
ShortLinkReqInputRequest schema for creation of short link that includes original link, meta data, hash of url, campaign attributes, redirect attributes and social media attributes of short link to be created.
Response
id
StringKey used to uniquely identify document that contains shortlink details.
active
BooleanStatus of the shortlink.
app_redirect
BooleanApplication redirection flag of shortlink.
application
StringThe ID of the sales channel associated with the shortlink.
attribution
AttributionAdditional attributes of shortlink.
campaign
CampaignShortLinkCampaign attributes of shortlink.
count
IntClick count of shortlink.
created_at
StringThe timestamp indicating when a record was initially created.
created_by
StringReference of the creator of the shortlink.
enable_tracking
BooleanFlag to enable tracking of a short link.
expire_at
StringExpiry of the shortlink.
fallback
RedirectTypeFallback attributes of shortlink.
meta
JSONAdditional attributes of shortlink.
personalized
BooleanTo create personalized short links.
redirects
RedirectsRedirection attributes of shortlink.
social_media_tags
SocialMediaTagsSocial media attributes of shortlink.
title
StringName reference of the shortlink.
updated_at
StringThe timestamp indicating when a record was last modified or updated.
url
UrlInfoOriginal web address which will be converted to shortlink.
user_id
StringIdentifier which can uniquely identify the user.
Mutation
1mutation createShortLink($shortLinkReqInput: ShortLinkReqInput) {2 createShortLink(shortLinkReqInput: $shortLinkReqInput) {3 id4 active5 app_redirect6 application7 attribution {8 campaign_cookie_expiry9 }10 campaign {11 medium12 source13 }14 count15 created_at16 created_by17 enable_tracking18 expire_at19 fallback20 meta21 personalized22 redirects {23 force_web24 }25 social_media_tags {26 description27 image28 title29 }30 title31 updated_at32 url {33 hash34 original35 short_url36 }37 user_id38 }39}
Try it
Input Variables
1{2 "shortLinkReqInput": {3 "active": true,4 "attribution": {5 "campaign_cookie_expiry": "campaign_cookie_expiry"6 },7 "campaign": {8 "medium": "medium",9 "source": "source"10 },11 "count": 42,12 "enable_tracking": true,13 "expire_at": "expire_at",14 "hash": "hash",15 "personalized": true,16 "redirects": {17 "android": {18 "link": "link",19 "type": "web"20 },21 "force_web": true,22 "ios": {23 "link": "link",24 "type": "web"25 },26 "web": {27 "link": "link",28 "type": "web"29 }30 },31 "social_media_tags": {32 "description": "A description",33 "image": "image",34 "title": "title"35 },36 "title": "title",37 "url": "https://website.com"38 }39}
Response
1{2 "createShortLink": {3 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",4 "active": true,5 "app_redirect": true,6 "application": "application",7 "attribution": {8 "campaign_cookie_expiry": "campaign_cookie_expiry"9 },10 "campaign": {11 "medium": "medium",12 "source": "source"13 },14 "count": 42,15 "created_at": "created_at",16 "created_by": "created_by",17 "enable_tracking": true,18 "expire_at": "expire_at",19 "fallback": "web",20 "meta": {},21 "personalized": true,22 "redirects": {23 "force_web": true24 },25 "social_media_tags": {26 "description": "A description",27 "image": "image",28 "title": "title"29 },30 "title": "title",31 "updated_at": "updated_at",32 "url": {33 "hash": "hash",34 "original": "original",35 "short_url": "short_url"36 },37 "user_id": "user_id"38 }39}
Was this section helpful?