Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

json (required for GET methods, not supported for POST methods)
Source object in its JSON representation... see this page for an explanation of the source format, and this set of pages for an overview of the available source ingest functionality.

...

Info
Code Block
{
	response: {
		action: "Source"
		success: False
		message: "Unable to add new source."
		time: 10
	}
}
Code Block
{
	response: {
		action: "Source"
		success: False
		message: "Unable to update source."
		time: 10
	}
}
Common error messages:
  • Unable to serialize Source JSON: indicates that the JSON object POSTED (or passed via URL parameter) is invalid. Try using JSON Lint or a similar tool to debug.
  • The source ID is invalid: For update requests, a source "_id" or "key" has been specified that does not match any in the database (this often happens with adding a source where the "_id" or "key" from a different system has been left in).
  • User does not have permissions to edit sources shared by this community: You are not the owner of this source, nor a community moderator, not nor a system admin.
  • (curl/wget returns nothing: Normally an indication that a POST has been used with no URL parameter, or a POST has been used with no content.)