Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
220 lines (163 sloc) 3.75 KB

Client Mailing Subscriptions


Create or update a mailing subscriptions for a project.

🔒 Only available if authenticated as a client. See clients.

Process Flow

This a flow chart describes the process….

Response and error codes:

A successful request will return HTTP status 201 (created).

If an error occurs the HTTP return code will be 422 (unprocessable entity). More error codes.

URL Parameters

Parameter Example Required Description
language en yes

The subscription is marked with the language you use in your URL. Newsletter authors write their content in a specific lang which you can target with the subscription lang. To target a lang see api setting lang.

client_id volksfreund yes

The client permalink.

project_id 4425 yes

Project id as an integer number ≥ 14.

JSON Parameters

JSON parameters have to be provided in the body of the request with the Content-Type header set to "application/json". The parameters are part of a flat JSON document without any nesting. Some parameters are required, others are optional.


  "email": "",
  "first_name": "Peter",
  "last_name": "Paul",
  "active": true

Supported Parameters

Parameter Example Types Required Description
email string yes

The email of the user

first_name Peter string yes

The first name of the user

last_name Paul string yes

The last name of the user

active true boolean yes

State of the subscription: active/inactive

Response Attributes

Root Attributes

Attribute Types Example Description
status string accepted

HTTP status code as a descriptive string. For a list of codes, see Example: "accepted" for code 202

status_code number 202

HTTP status code as an integer number, e.g. 202.

Response Links

Linkname Description


Location where the created/updated resource can be viewed or more information about it can be gathered.

Response Example

  "status": "created",
  "status_code": 201,
  "links": [