POST drill/…/merge

Appends the contents of one or more source drills to a target drill.

Resource URL

https://www.drillster.com/api/2.1.1/drill/{drill_id}/merge

Parameters

Field Type Description
drill_id
required
String The unique ID of the drill to which the contents of the other drills will be appended.
source
required, repeatable
String The unique ID of the drill or drills that are to be appended to the target drill.

The calling user must be the author of both the target drill and source drill(s). The contents of the source drills are appended to the target drill in the order in which they are specified. The source drills are not deleted.

Response

The changed 2.1.1 Drill object. The returned drill will have the same ID.

Error responses

The following error situations are possible:

ID Response code Description
missing_target 400 (Bad request) No target drill is specified
invalid_target 400 (Bad request) The target drill is unknown, or caller is not authorized to merge it
missing_drills 400 (Bad request) No drills are specified
invalid_drill 400 (Bad request) Given drill is unknown, or caller is not authorized to merge it