LianaCMS REST API

SelfHref

href
​string

Paging

Links of a list response. There is no `last` link and no total count.
​object

First page.

​object

Previous page; the offset stops at 0.

​object

Next page. On the last page the link wraps around to offset 0.

Collection

Links of a list response. There is no `last` link and no total count.
href
​string
​object

First page.

​object

Previous page; the offset stops at 0.

​object

Next page. On the last page the link wraps around to offset 0.

Item

id
​integer · int64

User

groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00

UserDate

created
​string · date-time
modified
​string | null · date-time

UserAccountModule

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

SummaryHref

href
​string

UserSummaryOut

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
id
​integer · int64
groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
created
​string · date-time
modified
​string | null · date-time
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null
href
​string

UserSummaries

Meta

response_at
​string · date-time

Server time of the response, ISO 8601 with the server's UTC offset.

Example: 2026-11-22T07:32:46+02:00

Response

​Meta

Error

code
​integer · required

The HTTP status code.

Example: 400
message
​string · required

The general reason. Its wording stays the same, so clients may match on it.

Example: Parameter 'limit' must be between 0 and 200
details
​string

The specific reason, with the identifiers involved. Present only on some 4xx errors (never on 404) when it adds information to message.

Example: limit 500 is out of range 0-200

UserPassword

password
​string · minLength: 8

Plaintext password, at least 8 bytes. It is stored only as a hash and never returned. When a user is created without one, the CMS generates a random 15-character password. Changing the password ends the user's sessions.

Example: correct-horse-battery

UserInPost

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
groups
​integer[] · minItems: 1 · required

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string · required

Unique, compared without regard to case.

Example: user21
email
​string · required

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string · required

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
password
​string · minLength: 8

Plaintext password, at least 8 bytes. It is stored only as a hash and never returned. When a user is created without one, the CMS generates a random 15-character password. Changing the password ends the user's sessions.

Example: correct-horse-battery
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

UserGeneratedPassword

password
​string · minLength: 15 · maxLength: 15

Only when the request sent no password: the 15-character password the CMS generated. It is returned only in this response.

Example: q7Rm2xKp9LwT4zN

UserSinglePOST

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
id
​integer · int64
groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
password
​string · minLength: 15 · maxLength: 15

Only when the request sent no password: the 15-character password the CMS generated. It is returned only in this response.

Example: q7Rm2xKp9LwT4zN
created
​string · date-time
modified
​string | null · date-time
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

UserSinglePOSTOut

​UserSinglePOST[] · maxItems: 1

UserSingle

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
id
​integer · int64
groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
created
​string · date-time
modified
​string | null · date-time
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

UserSingleOut

​UserSingle[] · maxItems: 1

UserInPATCH

All fields are optional, but a body with none of them returns 400.
groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
password
​string · minLength: 8

Plaintext password, at least 8 bytes. It is stored only as a hash and never returned. When a user is created without one, the CMS generates a random 15-character password. Changing the password ends the user's sessions.

Example: correct-horse-battery
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

GroupTypes

string | null · enum
Enum values:
admin
intra
extra
public

Group type as the group editor stores it; null on a group saved without one.

GroupSummary

name
​string
type
​GroupTypes · enum

Group type as the group editor stores it; null on a group saved without one.

Enum values:
admin
intra
extra
public
description
​string | null
access_languages
​string[]

Languages the group has rights to on the current site.

Example: ["FI","EN"]
​object[]

Members of the group that are not deleted, by ascending id. The list is empty unless the caller belongs to a group that manages some group with the users_view right.

GroupSummaryOut

id
​integer · int64
name
​string
type
​GroupTypes · enum

Group type as the group editor stores it; null on a group saved without one.

Enum values:
admin
intra
extra
public
description
​string | null
access_languages
​string[]

Languages the group has rights to on the current site.

Example: ["FI","EN"]
​object[]

Members of the group that are not deleted, by ascending id. The list is empty unless the caller belongs to a group that manages some group with the users_view right.

href
​string

GroupSummaries

GroupSingle

id
​integer · int64
name
​string
type
​GroupTypes · enum

Group type as the group editor stores it; null on a group saved without one.

Enum values:
admin
intra
extra
public
description
​string | null
access_languages
​string[]

Languages the group has rights to on the current site.

Example: ["FI","EN"]
​object[]

Members of the group that are not deleted, by ascending id. The list is empty unless the caller belongs to a group that manages some group with the users_view right.

GroupSingleOut

​GroupSingle[] · maxItems: 1

FormSummary

id
​integer · int64

Section id of the form.

Example: 2
page_id
​integer | null · int64

Id of the page the form is on.

Example: 15
title
​string | null

Name of the form.

Example: Contact us

FormSummaries

SubmissionField

id
​integer

Field id.

Example: 3
title
​string | null
type
​string | null
​array | null

Options of the field. Null when the field has no options or its options come from products or contacts.

values
​(string | null)[]

Submitted values of the field.

Example: ["Yes"]

SubmissionSummary

id
​integer · int64
submitted_when
​string | null · date-time
submitted_by
​integer | null · int64

User id of the submitter; null when submitted anonymously.

Example: 15

Submitted fields, ordered by field id, highest first.

SubmissionSummaryOut

id
​integer · int64
submitted_when
​string | null · date-time
submitted_by
​integer | null · int64

User id of the submitter; null when submitted anonymously.

Example: 15

Submitted fields, ordered by field id, highest first.

href
​string

SubmissionSummaries

SubmissionSingleOut

CategoryProperty

id
​integer
​object | null

Name of the property per language code.

Example: {"FI":"Ominaisuus","EN":"Property"}
​object | null

Description of the property per language code.

Example: {"FI":"Kuvaus","EN":"Description"}
type
​string

Property type, such as short_text, text, wysiwyg, numeric, boolean, link, email, date, price, discount, range, guid, choice, image, file, product, contact, event, news, user, coordinates or group_header.

Example: choice
​array | null

Only present when the type is choice; null when the property has no choices.

required
​boolean
multivalued
​boolean
exportable
​boolean
​object

Only present when the value is copied from another language.

CategorySummary

id
​integer · int64
parent
​integer | null · int64

Id of the parent category. Null when the parent is a module's root category (news, contacts, products or event).

Example: 5
root
​string | null

URI of the module's root category, such as news, events, products or contacts.

Example: products
sites
​integer[]

Ids of the sites the category belongs to.

Example: [1]
permission_view
​array | null

Ids of the groups with the view right, highest first. Null when no group has it.

Example: [4,1]
permission_admin
​array | null

Ids of the groups with the admin right, highest first. Null when no group has it.

Example: [4,3]
​object | null

Name of the category per language code.

Example: {"FI":"Kategoria","EN":"Category"}
​CategoryProperty[]

Properties linked to the category, ordered by id, highest first.

CategoriesSummaries

CategorySingleOut

States

string · enum
Enum values:
processing
failed
done

JobQueueStatusSummary

state
​States · enum
Enum values:
processing
failed
done
message
​string

The failure reason when the job failed, an empty string when it is done, and the job's own status message while it is processing

Example:
eta
​string | null

Always null, the estimated completion time is not available

Example: null

JobQueueSingleWithoutResults

JobQueueResultSummary

href
​string

URL of the batch result resource (/batch/{users|products|contacts|news|events}/{job-queue-id})

Example: https://example.lianacms.com/api/v3/batch/users/4127_6740a1b3c9e0438214756

JobQueueSingleWithResults

​JobQueueResultSummary · required

UserBatchInPost

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
groups
​integer[] · minItems: 1 · required

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string · required

Unique, compared without regard to case.

Example: user21
email
​string · required

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string · required

Display name.

Example: John Tester
password
​string · minLength: 8 · required

Plaintext password, at least 8 bytes. It is stored only as a hash and never returned. When a user is created without one, the CMS generates a random 15-character password. Changing the password ends the user's sessions.

Example: correct-horse-battery
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

UsersPOSTInArray

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
groups
​integer[] · minItems: 1 · required

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string · required

Unique, compared without regard to case.

Example: user21
email
​string · required

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string · required

Display name.

Example: John Tester
password
​string · minLength: 8 · required

Plaintext password, at least 8 bytes. It is stored only as a hash and never returned. When a user is created without one, the CMS generates a random 15-character password. Changing the password ends the user's sessions.

Example: correct-horse-battery
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

JobQueueSingleOut

The job that was started. `href` is the job queue resource (/job_queue/{job-queue-id}) to poll for its progress.
href
​string
​object

UserBatchInPatch

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
id
​integer · int64 · required
groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
password
​string · minLength: 8

Plaintext password, at least 8 bytes. It is stored only as a hash and never returned. When a user is created without one, the CMS generates a random 15-character password. Changing the password ends the user's sessions.

Example: correct-horse-battery
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

UsersPATCHInArray

Profile fields of the Account module. They are returned, and written, only when the Account module is enabled; otherwise they are accepted in requests but ignored. A field without a value is returned as null. In PATCH null clears a field; POST refuses null.
id
​integer · int64 · required
groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
password
​string · minLength: 8

Plaintext password, at least 8 bytes. It is stored only as a hash and never returned. When a user is created without one, the CMS generates a random 15-character password. Changing the password ends the user's sessions.

Example: correct-horse-battery
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

BatchErrors

​object[]

Why each rejected element was rejected, in the same order as items.

index
​integer

Index of the element in the request body

Example: 1
message
​string
details
​string | null

BatchResultStatus

Present instead of items while the job is processing (state 'processing', without errors) or when the whole job failed (state 'failed', with message and errors). Both are returned with HTTP 200.
state
​string · enum
Enum values:
processing
failed
message
​string
​object[]

Why each rejected element was rejected, in the same order as items.

eta
​string | null

Always null

Example: null

UserJobQueue

Rejected user element as given in the request. The fields password, unhashed_password, ssn and iban are replaced with the string '[REDACTED]'.
groups
​integer[] · minItems: 1

Ids of the groups the user is a member of. In a request every group must exist and be one the caller may assign (see Create a user). In PATCH the list replaces the memberships; an empty list is ignored. The user's primary group is set to the first group listed.

Example: [3,5]
username
​string

Unique, compared without regard to case.

Example: user21
email
​string

Must be a valid email address. Uniqueness is not checked.

Example: john.tester@example.com
name
​string

Display name.

Example: John Tester
active
​boolean

Defaults to true when a user is created.

Example: true
valid_to
​string | null · date-time

Expiry time of the account. Takes ISO 8601 (a date alone is accepted). Null clears it in PATCH; POST refuses null.

Example: 2045-02-04T05:24:28+02:00
created
​string · date-time
modified
​string | null · date-time
firstname
​string | null
lastname
​string | null
birthdate
​string | null · date-time

Takes ISO 8601 (a date alone is accepted); returned as a date-time.

Example: 1947-02-04T00:00:00+02:00
city
​string | null
address1
​string | null
address2
​string | null
address3
​string | null
address4
​string | null
postalcode
​string | null
description
​string | null
avatar
​string | null
extra1
​string | null
extra2
​string | null
extra3
​string | null
sex
​string | null · enum
Enum values:
m
f
Example: m
phone
​string | null
company_name
​string | null
company_code
​string | null
company_address
​string | null
company_city
​string | null
company_postalcode
​string | null
company_phone
​string | null
company_www
​string | null
company_field
​string | null
company_size
​string | null
company_state
​string | null
company_country
​string | null
some1
​string | null
some2
​string | null
some3
​string | null

UserJobQueueOut

​object[]

Why each rejected element was rejected, in the same order as items.

Present instead of items while the job is processing (state 'processing', without errors) or when the whole job failed (state 'failed', with message and errors). Both are returned with HTTP 200.

Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.
string

CommentingTypes

string · enum
Enum values:
public
registered
none
Default: public

VisibilityTypes

string · enum
Enum values:
public
private
registered
hidden
Default: public

ProductSummary

​Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]

ProductProperties

A property value set for one language. Exactly these three fields are accepted, otherwise 400. The property must be linked to one of the product's categories, `langcode` must be a site language and the values must suit the property type; more than one value needs a multivalued property. Properties of type keyvalue, range and eventilla cannot be written.
property_id
​integer · int64 · required
langcode
​string · required
​array · required

ProductPropertiesPOST

​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

Product

​Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

ProductBatchInPost

​Translations · required

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
categories
​array | null · required

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

ProductsPOSTInArray

​Translations · required

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
categories
​array | null · required

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

ProductBatchInPatch

id
​integer · int64 · required
​Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

ProductsPATCHInArray

id
​integer · int64 · required
​Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

ProductJobQueue

Rejected product element as given in the request (with `id` for PATCH).
id
​integer · int64
​Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

ProductJobQueueOut

​object[]

Why each rejected element was rejected, in the same order as items.

Present instead of items while the job is processing (state 'processing', without errors) or when the whole job failed (state 'failed', with message and errors). Both are returned with HTTP 200.

ContactNames

firstname
​string

Person contacts only; ignored for organizations.

Example: John
lastname
​string

Person contacts only; ignored for organizations.

Example: Tester

TypePerson

type
​string · enum
Enum values:
person
Default: person

ContactSummary

owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]

ContactProperties

property_id
​integer · required
langcode
​string · required

A site language code.

Example: EN
​array · required

Scalar values (string, number or boolean); dates as ISO 8601 strings.

Example: ["Blue"]

ContactPropertiesPOST

​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

TypePersonParameters

firstname
​string

Person contacts only; ignored for organizations.

Example: John
lastname
​string

Person contacts only; ignored for organizations.

Example: Tester
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

TypePersonPostParameters

firstname
​string · required

Person contacts only; ignored for organizations.

Example: John
lastname
​string · required

Person contacts only; ignored for organizations.

Example: Tester
categories
​integer[] · minItems: 1 · required

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

ContactCompanyNames

​object

Organization contacts only; ignored for persons, whose name is lastname firstname in every site language. Keys are site language codes (any other key returns 400). In PATCH an empty string removes the name in that language.

Example: {"FI":"Yritys Oy","EN":"Company Ltd"}

TypeCompany

type
​string · enum
Enum values:
organization

TypeCompanyParameters

​object

Organization contacts only; ignored for persons, whose name is lastname firstname in every site language. Keys are site language codes (any other key returns 400). In PATCH an empty string removes the name in that language.

Example: {"FI":"Yritys Oy","EN":"Company Ltd"}
type
​string · enum
Enum values:
organization
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

TypeCompanyPostParameters

​object · required

Organization contacts only; ignored for persons, whose name is lastname firstname in every site language. Keys are site language codes (any other key returns 400). In PATCH an empty string removes the name in that language.

Example: {"FI":"Yritys Oy","EN":"Company Ltd"}
type
​string · enum · required
Enum values:
organization
categories
​integer[] · minItems: 1 · required

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

ContactBatchInPost

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · requires: firstname, lastname, categories
type = object · requires: type, names, categories
Properties for Variant 1:
firstname
​string · required

Person contacts only; ignored for organizations.

Example: John
lastname
​string · required

Person contacts only; ignored for organizations.

Example: Tester
categories
​integer[] · minItems: 1 · required

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

ContactsPOSTInArray

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · requires: firstname, lastname, categories
type = object · requires: type, names, categories
Properties for Variant 1:
firstname
​string · required

Person contacts only; ignored for organizations.

Example: John
lastname
​string · required

Person contacts only; ignored for organizations.

Example: Tester
categories
​integer[] · minItems: 1 · required

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

ContactBatchInPatch

Fields of `PATCH /contacts/{contact-id}` plus the required `id`. Person fields (firstname, lastname) and organization fields (names) depend on the contact's type.
id
​integer · int64 · required
anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object
type = object
Properties for Variant 1:
firstname
​string

Person contacts only; ignored for organizations.

Example: John
lastname
​string

Person contacts only; ignored for organizations.

Example: Tester
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

ContactsPATCHInArray

Fields of `PATCH /contacts/{contact-id}` plus the required `id`. Person fields (firstname, lastname) and organization fields (names) depend on the contact's type.
id
​integer · int64 · required
anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object
type = object
Properties for Variant 1:
firstname
​string

Person contacts only; ignored for organizations.

Example: John
lastname
​string

Person contacts only; ignored for organizations.

Example: Tester
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

ContactJobQueue

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object
type = object
Properties for Variant 1:
firstname
​string

Person contacts only; ignored for organizations.

Example: John
lastname
​string

Person contacts only; ignored for organizations.

Example: Tester
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

ContactJobQueueOut

​object[]

Why each rejected element was rejected, in the same order as items.

Present instead of items while the job is processing (state 'processing', without errors) or when the whole job failed (state 'failed', with message and errors). Both are returned with HTTP 200.

NewsProperties

Values of one property in one language. Exactly these three fields are accepted.
property_id
​integer · int64 · required

The property must be linked to one of the item's categories, and may appear once per language.

Example: 5
langcode
​string · required

Language of the values. Must be the item's language (on create, one of the translations keys).

Example: EN
​array · required

Scalar values, checked against the property's type. Replaces the stored values of this property in this language.

Example: ["Blue"]

NewsPOSTMany

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object

Title per language; at least one.

Example: {"FI":"Uutinen","EN":"News"}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​object

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be a news category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​NewsProperties[]

NewsBatchInPost

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object · required

Title per language; at least one.

Example: {"FI":"Uutinen","EN":"News"}
​object · required

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be a news category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​NewsProperties[]

NewsPOSTInArray

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object · required

Title per language; at least one.

Example: {"FI":"Uutinen","EN":"News"}
​object · required

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be a news category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​NewsProperties[]

NewsPATCH

Fields to change in one language version; fields left out are kept.
translation
​string

Title.

Example: Uutinen
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be a news category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.

NewsBatchInPatch

Fields to change in one language version; fields left out are kept.
id
​integer · int64 · required
translation
​string

Title.

Example: Uutinen
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be a news category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.

NewsPATCHInArray

Fields to change in one language version; fields left out are kept.
id
​integer · int64 · required
translation
​string

Title.

Example: Uutinen
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be a news category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.

NewsJobQueue

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object
type = object
Properties for Variant 1:
Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object

Title per language; at least one.

Example: {"FI":"Uutinen","EN":"News"}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​object

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be a news category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​NewsProperties[]

NewsJobQueueOut

​object[]

Why each rejected element was rejected, in the same order as items.

Present instead of items while the job is processing (state 'processing', without errors) or when the whole job failed (state 'failed', with message and errors). Both are returned with HTTP 200.

EventProperties

Values of one property in one language. Exactly these three fields are accepted.
property_id
​integer · int64 · required

The property must be linked to one of the item's categories, and may appear once per language.

Example: 5
langcode
​string · required

Language of the values. Must be the item's language (on create, one of the translations keys).

Example: EN
​array · required

Scalar values, checked against the property's type. Replaces the stored values of this property in this language.

Example: ["Blue"]

EventPOSTMany

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object

Title per language; at least one.

Example: {"FI":"Tapahtuma","EN":"Event"}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​object

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be an event category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​EventProperties[]

EventsBatchInPost

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object · required

Title per language; at least one.

Example: {"FI":"Tapahtuma","EN":"Event"}
​object · required

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be an event category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​EventProperties[]

EventsPOSTInArray

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object · required

Title per language; at least one.

Example: {"FI":"Tapahtuma","EN":"Event"}
​object · required

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be an event category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​EventProperties[]

EventPATCH

Fields to change in one language version; fields left out are kept.
translation
​string

Title.

Example: Tapahtuma
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be an event category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.

EventsBatchInPatch

Fields to change in one language version; fields left out are kept.
id
​integer · int64 · required
translation
​string

Title.

Example: Tapahtuma
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be an event category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.

EventsPATCHInArray

Fields to change in one language version; fields left out are kept.
id
​integer · int64 · required
translation
​string

Title.

Example: Tapahtuma
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be an event category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.

EventsJobQueue

anyOf
At least one variant must match. Multiple variants may match simultaneously.

Decision Table

VariantMatching Criteria
type = object
type = object
Properties for Variant 1:
Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object

Title per language; at least one.

Example: {"FI":"Tapahtuma","EN":"Event"}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​object

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be an event category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​EventProperties[]

EventsJobQueueOut

​object[]

Why each rejected element was rejected, in the same order as items.

Present instead of items while the job is processing (state 'processing', without errors) or when the whole job failed (state 'failed', with message and errors). Both are returned with HTTP 200.

ProductDate

posted
​string | null · date-time

Creation time, ISO 8601 with UTC offset

Example: 2035-02-04T05:24:28+02:00
modified
​string | null · date-time

Time of the last change, ISO 8601 with UTC offset

Example: 2037-02-04T05:24:28+02:00

ProductModifiedBy

modified_by
​integer | null

User id of the last modifier

Example: 65

PropertiesValues

property_id
​integer
langcode
​string
values
​array | null

Values of the property in this language: strings, numbers, booleans or ISO 8601 date-times by property type; file and image properties give the media file id when the file is known. An unset boolean property gives [false]. For keyvalue properties the value is an array of single-pair objects, or null if the stored value cannot be decoded.

Example: [1,2]
properties_href
​string | null

URL of a category the property is linked to (/categories/{category-id})

Example: https://example.lianacms.com/api/v3/categories/12

PropertiesForProducts

​PropertiesValues[]

One element per property and language. Present only with show_properties=true on a list, and always for a single product and for create, update and delete responses. The properties are those linked to the product's categories.

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object
type = array
Properties for Variant 1:
​string[]
​Links

Public URIs of the product per language code. An empty array when the product has no links.

Example: {"FI":["/cms/kategoria/tuote/tuote-1.html"],"EN":[]}

ProductSummaryOut

id
​integer · int64
​Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
posted
​string | null · date-time

Creation time, ISO 8601 with UTC offset

Example: 2035-02-04T05:24:28+02:00
modified
​string | null · date-time

Time of the last change, ISO 8601 with UTC offset

Example: 2037-02-04T05:24:28+02:00
modified_by
​integer | null

User id of the last modifier

Example: 65
​PropertiesValues[]

One element per property and language. Present only with show_properties=true on a list, and always for a single product and for create, update and delete responses. The properties are those linked to the product's categories.

​Links

Public URIs of the product per language code. An empty array when the product has no links.

Example: {"FI":["/cms/kategoria/tuote/tuote-1.html"],"EN":[]}

ProductsSummaries

ProductInPost

​Translations · required

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
categories
​array | null · required

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

ProductInPATCH

​Translations

Product name per language, keyed by language code. On input every key must be a language of the site (case-insensitive) and every value a string, otherwise 400.

Example: {"FI":"Tuotteet","EN":"Products"}
commenting
​CommentingTypes · enum
Enum values:
public
registered
none
Default: public
owner
​integer

User id of the owner. Must be an existing user (400). Defaults to the token's user on create.

Example: 54
valid_from
​string | null · date-time

ISO 8601. Must not be later than valid_to (400). null clears it on update.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string | null · date-time

ISO 8601. null clears it on update.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids. Every id must be a category the user may use (400). On update the list replaces the current categories. In responses to GET only the categories the user may view are listed; the list is null when there are none.

Example: [4,3]
​array | null

On update, each element replaces the values of that property in that language and null deletes all properties of the product.

EventPropertyOut

property_id
​integer
langcode
​string
​array

Values in position order. Integers for numeric, choice and reference types, booleans for boolean, ISO 8601 strings for date, file ids for file and image (or the stored path when no file matches), strings otherwise. Empty values are left out.

Example: [1,2]
properties_href
​string

Link to a category the property is linked to.

Example: https://www.example.com/api/v3/categories/7

EventOut

One language version of an event.
id
​integer · int64
language
​string
translation
​string

Title.

Example: Tapahtuma
intro
​string | null
body
​string | null
commenting
​string | null

Commenting setting, normally public or none. Items saved in the admin UI can also have registered.

Example: public
owner
​integer | null

User id of the owner.

Example: 54
posted
​string | null · date-time
modified
​string | null · date-time
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string | null

Visibility, normally public or hidden. Items saved in the admin UI can also have registered or private.

Example: public
categories
​array | null

Ids of the linked categories, highest first.

Example: [4,3]
​

The other language versions as a map from language code to id; an empty array when there are none.

Example: {"EN":12,"DE":13}
​EventPropertyOut[]

Property values. Present in single items, in write responses and in lists with show_properties=true.

​

Public URIs of the item. In GET responses a map from language code to a list of URIs, or an empty array when the item has no links. After a create, and after an update that changes translation, intro or body, a flat list of the item's URIs.

Example: {"FI":["/tapahtumat/tapahtuma.html"]}

EventOutMany

One language version of an event.
id
​integer · int64
language
​string
translation
​string

Title.

Example: Tapahtuma
intro
​string | null
body
​string | null
commenting
​string | null

Commenting setting, normally public or none. Items saved in the admin UI can also have registered.

Example: public
owner
​integer | null

User id of the owner.

Example: 54
posted
​string | null · date-time
modified
​string | null · date-time
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string | null

Visibility, normally public or hidden. Items saved in the admin UI can also have registered or private.

Example: public
categories
​array | null

Ids of the linked categories, highest first.

Example: [4,3]
​

The other language versions as a map from language code to id; an empty array when there are none.

Example: {"EN":12,"DE":13}
​EventPropertyOut[]

Property values. Present in single items, in write responses and in lists with show_properties=true.

​

Public URIs of the item. In GET responses a map from language code to a list of URIs, or an empty array when the item has no links. After a create, and after an update that changes translation, intro or body, a flat list of the item's URIs.

Example: {"FI":["/tapahtumat/tapahtuma.html"]}
href
​string

EventSummaries

EventInPOSTMany

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object · required

Title per language; at least one.

Example: {"FI":"Tapahtuma","EN":"Event"}
​object · required

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be an event category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​EventProperties[]

EventSummaryResponse

​EventOut[]

EventPOSTSingle

translation
​string

Title.

Example: Event
language
​string

Language of the new version. Must be a site language the item does not have yet.

Example: EN
intro
​string
body
​string
commenting
​string · enum
Enum values:
public
none
Default: public
owner
​string

Owner user id as a JSON string (an integer is refused); the current user when not given.

Example: 54
valid_from
​string · date-time
valid_to
​string · date-time
visibility
​string · enum
Enum values:
public
hidden
Default: public
categories
​integer[]

Category ids. Each must be an event category the user can administer that has a name in language.

Example: [15]
​EventProperties[]

EventInPOSTSingle

translation
​string · required

Title.

Example: Event
language
​string · required

Language of the new version. Must be a site language the item does not have yet.

Example: EN
categories
​integer[] · required

Category ids. Each must be an event category the user can administer that has a name in language.

Example: [15]
intro
​string
body
​string
commenting
​string · enum
Enum values:
public
none
Default: public
owner
​string

Owner user id as a JSON string (an integer is refused); the current user when not given.

Example: 54
valid_from
​string · date-time
valid_to
​string · date-time
visibility
​string · enum
Enum values:
public
hidden
Default: public
​EventProperties[]

EventInDELETE

remove_all_versions
​boolean

Delete all language versions of the item instead of only the one given in the path.

Example: false
Default: false

EventInPATCH

Fields to change in one language version; fields left out are kept.
translation
​string

Title.

Example: Tapahtuma
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be an event category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.

Types

string · enum
Enum values:
person
organization
Default: person

PropertiesValues-2

property_id
​integer
langcode
​string
values
​array | null

Values of the property; empty strings are left out. Integers for numeric, choice and reference properties and for file and image ids, booleans for boolean properties ([false] when unset), ISO 8601 strings for dates, strings otherwise. For keyvalue properties (read-only through the REST API) the value is an array of single-pair objects, or null if the stored value cannot be decoded.

Example: [1,2]
properties_href
​string | null

Link to a category the property belongs to.

Example: https://example.com/api/v3/categories/3

ContactSummaryOut

id
​integer
firstname
​string | null

Null for organizations.

Example: John
lastname
​string | null

Null for organizations.

Example: Tester
type
​Types · enum
Enum values:
person
organization
Default: person
​object | null

Names by language code. Null for persons.

Example: {"FI":"Yritys Oy","EN":"Company Ltd"}
owner
​integer | null
modified_by
​integer | null

Set to the owner when the contact is created; PATCH does not change it.

Example: 54
posted
​string | null · date-time
valid_from
​string | null · date-time
valid_to
​string | null · date-time
modified
​string | null · date-time
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​array | null

Category ids, highest first. GET lists only the categories the caller may view, and null when there are none; POST and PATCH list every category of the contact.

Example: [4,3]

Values of every property of the contact's categories, per property and language. Returned by the list only with show_properties=true, always by the other operations.

​

Public addresses of the contact by language code, or an empty array when the contact has no links.

Example: {"FI":["/cms/kategoria/kontakti/kontakti-1.html"],"EN":[]}

ContactsSummaries

ContactInPost

oneOf
Exactly one variant must match.

Decision Table

VariantMatching Criteria
type = object · requires: firstname, lastname, categories
type = object · requires: type, names, categories
Properties for Variant 1:
firstname
​string · required

Person contacts only; ignored for organizations.

Example: John
lastname
​string · required

Person contacts only; ignored for organizations.

Example: Tester
categories
​integer[] · minItems: 1 · required

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
type
​string · enum
Enum values:
person
Default: person
owner
​integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
​ContactProperties[]

Property values to set. Each entry replaces the values of that property in that language. The property must belong to a category of the contact. In PATCH null deletes every property value of the contact. Values of keyvalue properties cannot be written.

names

Organization contacts only; ignored for persons, whose name is `lastname firstname` in every site language. Keys are site language codes (any other key returns 400). In PATCH an empty string removes the name in that language.
string

owner

integer

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54

valid_from

string · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00

valid_to

string · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00

categories

​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]

ContactInPATCH

All fields are optional. Giving `type` changes the type: changing to person needs firstname and lastname, and type organization always needs names. Without `type`, firstname and lastname apply to a person and names to an organization; fields of the other type are ignored, and a body left with nothing to change returns 400. `modified` is set to the current time; `modified_by` does not change.
type
​Types · enum
Enum values:
person
organization
Default: person
firstname
​string
lastname
​string
​names

Organization contacts only; ignored for persons, whose name is lastname firstname in every site language. Keys are site language codes (any other key returns 400). In PATCH an empty string removes the name in that language.

Example: {"FI":"Yritys Oy","EN":"Company Ltd"}
owner
​owner

Id of an existing user who is not deleted. Defaults to the caller when a contact is created.

Example: 54
valid_from
​valid_from · date-time

ISO 8601. Must not be later than valid_to when both are given.

Example: 2045-02-04T05:24:28+02:00
valid_to
​valid_to · date-time

ISO 8601.

Example: 2050-02-04T05:24:28+02:00
visibility
​VisibilityTypes · enum
Enum values:
public
private
registered
hidden
Default: public
categories
​integer[] · minItems: 1

Ids of contact categories (under the contacts root category) on which the caller's group has admin rights, with the categories right. Any other id returns 400. In PATCH the list replaces the categories and the property values of removed categories are deleted; an empty list is ignored.

Example: [3,4]
​array | null

Each entry replaces the values of that property in that language; null deletes every property value of the contact.

NewsPropertyOut

property_id
​integer
langcode
​string
​array

Values in position order. Integers for numeric, choice and reference types, booleans for boolean, ISO 8601 strings for date, file ids for file and image (or the stored path when no file matches), strings otherwise. Empty values are left out.

Example: [1,2]
properties_href
​string

Link to a category the property is linked to.

Example: https://www.example.com/api/v3/categories/7

NewsOut

One language version of a news item.
id
​integer · int64
language
​string
translation
​string

Title.

Example: Uutinen
intro
​string | null
body
​string | null
commenting
​string | null

Commenting setting, normally public or none. Items saved in the admin UI can also have registered.

Example: public
owner
​integer | null

User id of the owner.

Example: 54
posted
​string | null · date-time
modified
​string | null · date-time
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string | null

Visibility, normally public or hidden. Items saved in the admin UI can also have registered or private.

Example: public
categories
​array | null

Ids of the linked categories, highest first.

Example: [4,3]
​

The other language versions as a map from language code to id; an empty array when there are none.

Example: {"EN":12,"DE":13}
​NewsPropertyOut[]

Property values. Present in single items, in write responses and in lists with show_properties=true.

​

Public URIs of the item. In GET responses a map from language code to a list of URIs, or an empty array when the item has no links. After a create, and after an update that changes translation, intro or body, a flat list of the item's URIs.

Example: {"FI":["/kategoria/uutinen.html"]}

NewsOutMany

One language version of a news item.
id
​integer · int64
language
​string
translation
​string

Title.

Example: Uutinen
intro
​string | null
body
​string | null
commenting
​string | null

Commenting setting, normally public or none. Items saved in the admin UI can also have registered.

Example: public
owner
​integer | null

User id of the owner.

Example: 54
posted
​string | null · date-time
modified
​string | null · date-time
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string | null

Visibility, normally public or hidden. Items saved in the admin UI can also have registered or private.

Example: public
categories
​array | null

Ids of the linked categories, highest first.

Example: [4,3]
​

The other language versions as a map from language code to id; an empty array when there are none.

Example: {"EN":12,"DE":13}
​NewsPropertyOut[]

Property values. Present in single items, in write responses and in lists with show_properties=true.

​

Public URIs of the item. In GET responses a map from language code to a list of URIs, or an empty array when the item has no links. After a create, and after an update that changes translation, intro or body, a flat list of the item's URIs.

Example: {"FI":["/kategoria/uutinen.html"]}
href
​string

NewsSummaries

NewsInPOSTMany

Creates one language version per key of `translations`, linked to each other as versions of one item. Every other map may only have keys that are in `translations`. Language codes are upper case.
​object · required

Title per language; at least one.

Example: {"FI":"Uutinen","EN":"News"}
​object · required

Category ids per language. Every language of translations needs at least one category that has a name in that language; categories without a name in the language are not linked to that version. Every id must be a news category the user can administer.

Example: {"FI":[15,12],"EN":[15,10]}
​object
​object
​object

Commenting per language; public when not given.

Example: {"FI":"public","EN":"none"}
​object

Owner user id per language, as a JSON integer; the current user when not given. The user must exist and not be deleted.

Example: {"FI":54,"EN":57}
​object

Start of validity per language (ISO 8601).

Example: {"FI":"2045-02-04T05:24:28Z","EN":"2045-02-04T05:24:28Z"}
​object

End of validity per language (ISO 8601); must not be before valid_froms of the same language.

Example: {"FI":"2054-02-04T05:24:28Z","EN":"2047-02-04T05:24:28Z"}
​object

Visibility per language; public when not given.

Example: {"FI":"hidden","EN":"public"}
​NewsProperties[]

NewsSummaryResponse

​NewsOut[]

NewsPOSTSingle

translation
​string

Title.

Example: News
language
​string

Language of the new version. Must be a site language the item does not have yet.

Example: EN
intro
​string
body
​string
commenting
​string · enum
Enum values:
public
none
Default: public
owner
​string

Owner user id as a JSON string (an integer is refused); the current user when not given.

Example: 54
valid_from
​string · date-time
valid_to
​string · date-time
visibility
​string · enum
Enum values:
public
hidden
Default: public
categories
​integer[]

Category ids. Each must be a news category the user can administer that has a name in language.

Example: [15]
​NewsProperties[]

NewsInPOSTSingle

translation
​string · required

Title.

Example: News
language
​string · required

Language of the new version. Must be a site language the item does not have yet.

Example: EN
categories
​integer[] · required

Category ids. Each must be a news category the user can administer that has a name in language.

Example: [15]
intro
​string
body
​string
commenting
​string · enum
Enum values:
public
none
Default: public
owner
​string

Owner user id as a JSON string (an integer is refused); the current user when not given.

Example: 54
valid_from
​string · date-time
valid_to
​string · date-time
visibility
​string · enum
Enum values:
public
hidden
Default: public
​NewsProperties[]

NewsInDELETE

remove_all_versions
​boolean

Delete all language versions of the item instead of only the one given in the path.

Example: false
Default: false

NewsInPATCH

Fields to change in one language version; fields left out are kept.
translation
​string

Title.

Example: Uutinen
intro
​string | null
body
​string | null
commenting
​string · enum
Enum values:
public
none
owner
​string

Owner user id as a JSON string (an integer is refused). The user must exist and not be deleted.

Example: 54
valid_from
​string | null · date-time
valid_to
​string | null · date-time
visibility
​string · enum
Enum values:
public
hidden
categories
​integer[]

The complete new set of category ids; each must be a news category the user can administer. Values of properties that belong to removed categories are deleted.

Example: [3,4]
​array | null

Property values to replace. null deletes all property values of the item.