Create a subscriber
POST/subscriptions/subscribers
Create a subscriber
Request
Query Parameters
- application/json
Body
data SubscriberCreaterequired
Possible values: [subscription_subscriber]
attributes SubscriberAttributesrequired
The unique identifier.
Possible values: >= 3 characters and <= 1024 characters
The name of the subscriber.
Possible values: >= 3 characters and <= 1024 characters
The email of the subscriber.
Responses
- 201
- 400
- 500
Success. The subscriber is created.
- application/json
- Schema
- Example (from schema)
Schema
data Subscriber
The unique identifier.
Possible values: [subscription_subscriber]
attributes SubscriberAttributesrequired
The unique identifier.
Possible values: >= 3 characters and <= 1024 characters
The name of the subscriber.
Possible values: >= 3 characters and <= 1024 characters
The email of the subscriber.
The date and time a resource was updated.
The date and time a resource was created.
meta SubscriberMetarequired
The owner of a resource, either store or organization.
timestamps Timestampsrequired
The date and time a resource was updated.
The date and time a resource was created.
{
  "data": {
    "id": "00000000-0000-0000-0000-000000000000",
    "type": "subscription_subscriber",
    "attributes": {
      "account_id": "00000000-0000-0000-0000-000000000000",
      "name": "John Doe",
      "email": "john.doe@example.com",
      "updated_at": "2017-01-10T11:41:19.244842Z",
      "created_at": "2017-01-10T11:41:19.244842Z"
    },
    "meta": {
      "owner": "store",
      "timestamps": {
        "updated_at": "2017-01-10T11:41:19.244842Z",
        "created_at": "2017-01-10T11:41:19.244842Z"
      }
    }
  }
}
Bad request. The request failed validation.
- application/json
- Schema
- Example (from schema)
- missing-name
Schema
- Array [
- ]
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "title": "Validation Error",
      "status": "400",
      "detail": "data.attributes.name: \"name\" is required"
    }
  ]
}
Internal server error. There was a system failure in the platform.
- application/json
- Schema
- Example (from schema)
- internal-server-error
Schema
- Array [
- ]
errors Error[]required
The HTTP response code of the error.
A brief summary of the error.
Optional additional detail about the error.
Additional supporting meta data for the error.
{
  "errors": [
    {
      "status": 500,
      "title": "Internal server error",
      "detail": "An internal error has occurred.",
      "meta": {
        "missing_ids": [
          "e7d50bd5-1833-43c0-9848-f9d325b08be8"
        ]
      }
    }
  ]
}
{
  "errors": [
    {
      "title": "Internal Server Error",
      "status": "500"
    }
  ]
}