HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityAcademySubmit a ticketLog In
API Reference

Create contentsource

Create a new contentsource.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

The contentsource that should be created.

Describes a content source used within CMS.

string
length between 2 and 255
^[A-Za-z][_0-9A-Za-z]+$

The unique identifier (key) of the resource.

string
required
length between 1 and 50

Specifies the type of source. For example 'graph' for a GraphQL content source.

string
required
length between 1 and 50

The key of the source that this ContentSource relates to.

string
required
length between 2 and 255
^[A-Za-z][_0-9A-Za-z]+$

Specifies the source type of this source.

string
required
length between 1 and 255

The display name of this ContentSource.

string
enum
required

Represents the base of the corresponding content type.

propertyMappings
object
required

Represents a mapping between a property in an external source and its corresponding property in the CMS. Used to define how external properties are mapped to CMS property identifiers and names.

Headers
cms-skip-validation
array of strings

Indicates which content validation rules should be bypassed. Supported values are '*' (skip all validations), 'data' (skip data validation), and 'references' (skip reference validation). Values can be combined, empty or duplicated values are ignored, and any unknown values result in a validation error. Use with caution as this may allow creation of invalid content that could cause issues in production.

cms-skip-validation
Allowed:
Prefer
array of strings

Indicates client preference for the response content as per IETF RFC7240. Currently only supports 'return=representation' which can be used to indicate a preference to receive a representation of the resource that has been altered in the response.

Prefer
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json