Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Subscription plans

7 routes. Paths are relative to https://api.intersink.com/v1.

All groups

List

GET/subscription-plans

Needs a signed-in user (Bearer token or access_token cookie).

The caller's own plans (optional ?status=, paginated).

Parameters

NameTypeDescription
statusstring, queryOne of: "published", "draft", "archived".
pagenumber, queryMinimum 1.
limitnumber, queryMinimum 1.

Response

200. The payload in data is not described in the spec yet.

Create

POST/subscription-plans

Needs a signed-in user (Bearer token or access_token cookie).

Create a plan (title + price required; owner from JWT).

Request body application/json

FieldTypeDescription
titlerequiredstringAt most 150 characters.
descriptionstringAt most 2000 characters.
pricerequirednumberMinimum 0.
intervalstringOne of: "day", "week", "month", "year".
statusstringOne of: "published", "draft", "archived".

Response

201. The payload in data is not described in the spec yet.

Get one

GET/subscription-plans/{id}

Needs a signed-in user (Bearer token or access_token cookie).

A single plan (owner-scoped). id = INTEGER.

Parameters

NameTypeDescription
idrequirednumber, path

Response

200. The payload in data is not described in the spec yet.

Replace

PUT/subscription-plans/{id}

Needs a signed-in user (Bearer token or access_token cookie).

PUT alias for update. id = INTEGER.

Parameters

NameTypeDescription
idrequirednumber, path

Request body application/json

FieldTypeDescription
titlestringAt most 150 characters.
descriptionstringAt most 2000 characters.
pricenumberMinimum 0.
intervalstringOne of: "day", "week", "month", "year".
statusstringOne of: "published", "draft", "archived".

Response

200. The payload in data is not described in the spec yet.

Update

PATCH/subscription-plans/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Update any subset of fields (status:false = hide). Owner only. id = INTEGER.

Parameters

NameTypeDescription
idrequirednumber, path

Request body application/json

FieldTypeDescription
titlestringAt most 150 characters.
descriptionstringAt most 2000 characters.
pricenumberMinimum 0.
intervalstringOne of: "day", "week", "month", "year".
statusstringOne of: "published", "draft", "archived".

Response

200. The payload in data is not described in the spec yet.

Remove

DELETE/subscription-plans/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Hard-delete a plan (owner only). id = INTEGER.

Parameters

NameTypeDescription
idrequirednumber, path

Response

200. The payload in data is not described in the spec yet.

List by creator

GET/subscription-plans/creator/{profileId}

Needs a signed-in user (Bearer token or access_token cookie).

PUBLIC: a creator's AVAILABLE plans (for fans). profileId = user_profile UUID.

Parameters

NameTypeDescription
profileIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.