Skip to content

Instantly share code, notes, and snippets.

@boomtrain-support
Last active August 31, 2015 23:08
Show Gist options
  • Save boomtrain-support/a45ccae2d6f605b7dea3 to your computer and use it in GitHub Desktop.
Save boomtrain-support/a45ccae2d6f605b7dea3 to your computer and use it in GitHub Desktop.
POST /resources/:model - Create a new Resource with the specified model type using cURL
curl -u {username}:{password}
-H 'x-app-id: {app_id}'
-X POST
-H 'Content-Type: application-json'
-d '{
"id": "{Resource ID}",
"props": {
"url": "{The Canonical URL}",
"title": "{The Title of the Resource}",
"thumbnail": "{URL of the Hosted Image}",
...
}
}'
'https://api.boomtrain.com/resources/{model}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment