Update Integration

Updates integration with given attributes.

  • URL

/api/developer/v1/sources/:id

  • Method:

PUT

  • URL Params

Required:

id=[string]

  • Data Params

Dictionary of fields and values to be updated

Optional:

last_polled_at=[DateTime]

  • Success Response:

    • Code: 200
    • Content:
    {
        "response": "success",
        "data": {
            "id": "b6701ec8-fa37-43d0-955b-06366093ffd5",
            "organization_id": null,
            "display_name": "Mike Rundle",
            "deleted_at": null,
            "source_config": {
                "url": "http://feeds.feedburner.com/Flyosity"
            },
            "is_featured": false,
            "is_default": true,
            "is_enabled": true,
            "content_items_count": 15,
            "last_polled_at": "2017-07-03T08:32:08.000Z",
            "logo_url": "http://d2rdbjk9w0dffy.cloudfront.net/assets/rss.png",
            "banner_url": null,
            "source_type": {
                "id": "efad11f1-a18f-4c1c-9f85-382a1382e4a6",
                "name": "rss",
                "display_name": "RSS",
                "identifying_keys": [
                    "url"
                ],
                "required_keys": [
                    "url"
                ],
                "is_singleton": false,
                "is_public": true,
                "default_available": true,
                "available_to_orgs": [],
                "image_url": "http://d2rdbjk9w0dffy.cloudfront.net/assets/rss.png",
                "banner_url": null
            }
        }
    }
  • Error Response:

    • Code: 404 NOT FOUND
    • Content: { "error": "Couldn't find Source with 'id'=efad11f1-a18f-4c1c-9f85-382a1382e4a3" }

OR

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

© 2019 EdCast Inc.