Skip to main content
POST
/
data-shop
Create a data-shop.
curl --request POST \
  --url https://api-dev.narrative.io/data-shop \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hostname": "<string>",
  "fe_manifest": {}
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "hostname": "<string>",
  "created_by": 123,
  "created_at": "2021-06-24T00:54:40.029056Z",
  "updated_by": 123,
  "updated_at": "2021-06-24T00:54:40.029056Z",
  "compan_id": 345,
  "manifest": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
hostname
string<trimmed-non-empty>
required

A shops hostname.

Minimum string length: 1
fe_manifest
object

Any valid json object is accepted. This allows FE/UI to decide the shape of this.

Response

OK

id
string<uuid>
required
hostname
string<trimmed-non-empty>
required

A shops hostname.

Minimum string length: 1
created_by
integer<int64>
required
created_at
string
required

ISO-8601 instant.

Example:

"2021-06-24T00:54:40.029056Z"

updated_by
integer<int64>
required
updated_at
string
required

ISO-8601 instant.

Example:

"2021-06-24T00:54:40.029056Z"

compan_id
integer<int64>

The id of an existing company

Example:

345

manifest
object

A valid json object. This is partially governed by the passed fe_manifest.