Create Content Item

Creates and Returns json of newly created ContentItem.

  • URL

/api/developer/v1/content_items

  • Method:

POST

  • URL Params

None

  • Data Params

Required:

name=[String]

source_id=[String]

Example Data

  {
  "content_type": "video",
  "description": "Do you think it's a good idea to ...",
  "external_id": "https://talkpython.fm/episodes/...testing.mp3",
  "name": "#63 Validating Python tests with mutation testing",
  "resource_metadata": {
    "buzz_score": "0.64448",
    "description": "Do you think it's a good idea to ...",
     "images": [{"url": "https://....jpg"}],
     "title": "#63 Validating Python tests with mutation testing",
     "url": "https://www.audiosear.ch/media/...testing.mp3"
     },
  "source_id": "3910b116-4c14-43d3-b55b-96a67fa21c43",
  "url": "https://www.audiosear.ch/media/...testing.mp3",
  "content_languages_attributes": [{
        "title": "en title",
        "description": "en description",
        "url": "https://journal.thriveglobal.com/how-psychologists-treat-the-kind-of-thinking-that-leads-to-depression-a690a0cebade2",
        "language_code": "en"
    },
    {
        "title": "fr title",
        "description": "fr description",
        "url": "https://journal.thriveglobal.com/how-psychologists-treat-the-kind-of-thinking-that-leads-to-depression-a690a0cebade2",
        "language_code": "fr"
    }],
  "additional_metadata': {
     "buzz_score": "0.64448",
     "date_added": "2016-06-17T10:37:27.974Z",
     "duration": 3576,
     "identifier": "https://talkpython.fm/episodes/...testing.mp3",
     "itunes_show_id": 979020229,
     "rss_url": "https://talkpython.fm/episodes/rss",
     "show_id": 6282
     }
  }

Optional:

description=[String]

content=[String]

summary=[String]

url=[String]

author=[String]

user_id=[Integer]

external_id=[Array]

content_type=[String]

resource_metadata=[Hash]

  • url=[String]

  • title=[String]

  • description=[String]

  • embed_html=[String]

  • video_url=[String]

  • images=[Array]

  • url=[String]

additional_metadata=[Hash]

duration_metadata=[Hash]

raw_record=[Hash]

taxonomies=[Array]

content_languages_attributes=[Array of object] * url=[String]

  • title=[String]

  • description=[String]

  • language_code

Supported Languages

Langage Code
Arabic ar
Czech cs
Danish da
German de
Greek el
English en
Finnish fi
French fr
French(Cannada) fr-CA
Gujarati gu
Hebrew he
Hindi hi
Hungarian hu
Indonesian id
Italian it
Japanese ja
Korean ko
Lithuanian lt
Marathi mr
Malay ms
Dutch nl
Polish pl
Portuguese pt
Portuguese(Brazil) pt-BR
Romanian ro
Russian ru
Slovak sk
Spanish es
Serbian sr
Swedish sv
Tamil ta
Telugu te
Thai th
Turkish tr
Ukrainian uk
Urdu ur
Vietnamese vi
Chinese zh
Chinese(Traditional) zh-Hant
  • Success Response:

    • Code: 200
    • Content:
     {
    "data": {
      "id": "7c2c4e39-3c26-43bd-9e67-2a37f2a9fe35",
      "name": "Graphic Design Festival Paris",
      "description": "Seems likes you have an Ad blocker in your navigator :(.",
      "summary": "Seems likes you have an Ad blocker in your navigator :(.",
      "url": "https://uigarage.net/graphic-design-festival-paris/",
      "external_id": "https://uigarage.net/?p=10040",
      "tags": [
          {
              "tag": "All",
              "source": "native",
              "tag_type": "keyword"
          },
          {
              "tag": "ux",
              "source": "native",
              "tag_type": "keyword"
          }
      ],
      "author": "Lisa Nettler",
      "source_id": "76e912c1-5c7f-44cb-9d59-67e362b5e180",
      "source_type_id": "efad11f1-a18f-4c1c-9f85-382a1382e4a6",
      "source_type_name": "rss",
      "content_type": "article",
      "organization_id": null,
      "duration_metadata": null,
      "resource_metadata": {
          "url": "https://uigarage.net/graphic-design-festival-paris/",
          "title": "Daily UI Design Inspiration & Patterns",
          "description": "",
          "images": [
              {
                  "url": "https://uigarage.net/wp-content/uploads/2017/02/Screen-Shot-2017-02-03-at-11.05.27-AM.png",
                  "thumbnail_id": "2bd92702-7d09-44a7-a77b-7aa4435cf646",
                  "original_url": "https://d3l67j0gfgxuc5.cloudfront.net/uploads/thumbnail/image/2bd92702-7d09-44a7-a77b-7aa4435cf646/Screen-Shot-2017-02-03-at-11.05.27-AM.png",
                  "thumb_url": "https://d3l67j0gfgxuc5.cloudfront.net/uploads/thumbnail/image/2bd92702-7d09-44a7-a77b-7aa4435cf646/thumb_Screen-Shot-2017-02-03-at-11.05.27-AM.png",
                  "medium_url": "https://d3l67j0gfgxuc5.cloudfront.net/uploads/thumbnail/image/2bd92702-7d09-44a7-a77b-7aa4435cf646/medium_Screen-Shot-2017-02-03-at-11.05.27-AM.png",
                  "large_url": "https://d3l67j0gfgxuc5.cloudfront.net/uploads/thumbnail/image/2bd92702-7d09-44a7-a77b-7aa4435cf646/large_Screen-Shot-2017-02-03-at-11.05.27-AM.png"
              }
          ]
      },
      "additional_metadata": null,
      "nlp_metadata": null,
      "created_at": "2017-02-06T11:06:11.489Z",
      "updated_at": "2017-02-08T18:29:27.296Z",
      "user_id": null,
      "source_display_name": "Daily UI Design Inspiration & Patterns – UI Garage",
      "taxonomies_list": [
          null
      ],
      "taxonomies": [
          {
              "tax": "edcast.technology.user_experience.interaction_design",
              "strength": 0.2864905297756195
          },
          {
              "tax": "edcast.creative.cad.product_design",
              "strength": 0.2712938189506531
          }
      ],
    "content_languages": [
    {
        "content_item_id": "xxxx",
        "title": "en title",
        "description": "en description",
        "url": "https://journal.thriveglobal.com/how-psychologists-treat-the-kind-of-thinking-that-leads-to-depression-a690a0cebade2",
        "language_code": "en"
    },
    {
        "content_item_id": "xxxx",
        "title": "fr title",
        "description": "fr description",
        "url": "https://journal.thriveglobal.com/how-psychologists-treat-the-kind-of-thinking-that-leads-to-depression-a690a0cebade2",
        "language_code": "fr"
    }
    ]      
    }
  }
  • Error Response:

    • Code: 401 UNAUTHORIZED
    • Content: { "error": "You are unauthorized to make this request." }
© 2019 EdCast Inc.